diff options
| author | Bernard Xiong <[email protected]> | 2019-01-11 09:44:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-11 09:44:43 +0800 |
| commit | 40ca27d994184d2a65a7ec518bbf9b9a70700ea1 (patch) | |
| tree | a11db7ef7f223ffe2f95f7f47964e73f16821777 /libcpu/ppc | |
| parent | 0720c3a3dcfafae2a40f44fa1bcfbf782513ba41 (diff) | |
| parent | 3a3c6c51f890fd4ee5fac446778c6beea24ebd26 (diff) | |
Merge pull request #2161 from RT-Thread/libcpu_SConscript
Libcpu sconscript
Diffstat (limited to 'libcpu/ppc')
| -rw-r--r-- | libcpu/ppc/SConscript | 18 | ||||
| -rw-r--r-- | libcpu/ppc/common/SConscript | 14 | ||||
| -rw-r--r-- | libcpu/ppc/common/ptrace.h | 28 | ||||
| -rw-r--r-- | libcpu/ppc/ppc405/SConscript | 14 |
4 files changed, 60 insertions, 14 deletions
diff --git a/libcpu/ppc/SConscript b/libcpu/ppc/SConscript new file mode 100644 index 0000000000..36a214327b --- /dev/null +++ b/libcpu/ppc/SConscript @@ -0,0 +1,18 @@ +# RT-Thread building script for bridge + +import os +from building import * + +Import('rtconfig') + +cwd = GetCurrentDir() +group = [] +list = os.listdir(cwd) + +# add common code files +group = group + SConscript(os.path.join(cwd, 'common', 'SConscript')) + +# cpu porting code files +group = group + SConscript(os.path.join(cwd, rtconfig.CPU, 'SConscript')) + +Return('group') diff --git a/libcpu/ppc/common/SConscript b/libcpu/ppc/common/SConscript new file mode 100644 index 0000000000..b0ae20ba02 --- /dev/null +++ b/libcpu/ppc/common/SConscript @@ -0,0 +1,14 @@ +# RT-Thread building script for component + +from building import * + +Import('rtconfig') + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') +CPPPATH = [cwd] +ASFLAGS = '' + +group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) + +Return('group') diff --git a/libcpu/ppc/common/ptrace.h b/libcpu/ppc/common/ptrace.h index d60e7fdcef..72ef31bfbc 100644 --- a/libcpu/ppc/common/ptrace.h +++ b/libcpu/ppc/common/ptrace.h @@ -21,20 +21,20 @@ #define PPC_REG unsigned long struct pt_regs { - PPC_REG gpr[32]; - PPC_REG nip; - PPC_REG msr; - PPC_REG orig_gpr3; /* Used for restarting system calls */ - PPC_REG ctr; - PPC_REG link; - PPC_REG xer; - PPC_REG ccr; - PPC_REG mq; /* 601 only (not used at present) */ - /* Used on APUS to hold IPL value. */ - PPC_REG trap; /* Reason for being here */ - PPC_REG dar; /* Fault registers */ - PPC_REG dsisr; - PPC_REG result; /* Result of a system call */ + PPC_REG gpr[32]; + PPC_REG nip; + PPC_REG msr; + PPC_REG orig_gpr3; /* Used for restarting system calls */ + PPC_REG ctr; + PPC_REG link; + PPC_REG xer; + PPC_REG ccr; + PPC_REG mq; /* 601 only (not used at present) */ + /* Used on APUS to hold IPL value. */ + PPC_REG trap; /* Reason for being here */ + PPC_REG dar; /* Fault registers */ + PPC_REG dsisr; + PPC_REG result; /* Result of a system call */ }__attribute__((packed)) CELL_STACK_FRAME_t; #endif diff --git a/libcpu/ppc/ppc405/SConscript b/libcpu/ppc/ppc405/SConscript new file mode 100644 index 0000000000..b0ae20ba02 --- /dev/null +++ b/libcpu/ppc/ppc405/SConscript @@ -0,0 +1,14 @@ +# RT-Thread building script for component + +from building import * + +Import('rtconfig') + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') +CPPPATH = [cwd] +ASFLAGS = '' + +group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) + +Return('group') |
