diff options
| author | bigamgic <[email protected]> | 2020-07-04 22:32:02 +0800 |
|---|---|---|
| committer | bigamgic <[email protected]> | 2020-07-04 22:32:02 +0800 |
| commit | f333dcabe39b529e5a7cc0b02daef49ca2caa855 (patch) | |
| tree | f09d89e1b63c92942e6c0aa47ee2f8f59aa44af9 /bsp/raspberry-pi/raspi4-32/driver/SConscript | |
| parent | 7e5373e733d8ca779883a88377a3860ec4f8cb41 (diff) | |
raspi4 spi0 driver can run
Diffstat (limited to 'bsp/raspberry-pi/raspi4-32/driver/SConscript')
| -rw-r--r-- | bsp/raspberry-pi/raspi4-32/driver/SConscript | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bsp/raspberry-pi/raspi4-32/driver/SConscript b/bsp/raspberry-pi/raspi4-32/driver/SConscript index 533df8ac31..64c764c1b3 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/SConscript +++ b/bsp/raspberry-pi/raspi4-32/driver/SConscript @@ -4,6 +4,16 @@ cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd, str(Dir('#'))] -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) +group = DefineGroup('driver', src, depend = [''], CPPPATH = CPPPATH) + +# build for sub-directory +list = os.listdir(cwd) +objs = [] + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) +group = group + objs Return('group') |
