mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 19:33:15 +01:00
Generalize the configuration processing so that the top-level SConstruct only processes the ARCH symbol and prepares the PLATFORM and SUBARCH entries so as to write the config.h. Everything is now entered in the environment so the SConscript files can be responsible fo rthe processing.
This commit is contained in:
@@ -30,12 +30,12 @@ sources = \
|
||||
Glob('glue/' + environment['ARCH'] + '/*.[cS]') + \
|
||||
Glob('platform/' + environment['PLATFORM'] + '/*.[cS]')
|
||||
|
||||
for item in environment['driverList'] :
|
||||
for item in environment['DRIVER'] :
|
||||
path = 'drivers/' + item
|
||||
if not os.path.isdir(path):
|
||||
feature , device = item.split ( '/' )
|
||||
raise ValueError, 'Driver ' + device + ' for ' + feature + ' not available.'
|
||||
sources += Glob('drivers/' + item + '/*.[cS]')
|
||||
sources += Glob(path + '/*.[cS]')
|
||||
|
||||
objects = environment.Object(sources)
|
||||
Depends(objects, environment['configFiles'])
|
||||
|
||||
Reference in New Issue
Block a user