diff options
| author | aozima <[email protected]> | 2018-02-06 20:07:28 +0800 |
|---|---|---|
| committer | aozima <[email protected]> | 2018-02-06 20:07:28 +0800 |
| commit | 19433e0cf5a311ff27e341834675cc218bf34655 (patch) | |
| tree | 78228fd332c391b40b72c104141634a1b3a78fe3 /bsp/lpc43xx | |
| parent | e20fb2f5b2130093191f818d307bb9cc30b0bc28 (diff) | |
update SConscript: support scons 3.
Diffstat (limited to 'bsp/lpc43xx')
| -rw-r--r-- | bsp/lpc43xx/M0/SConstruct | 4 | ||||
| -rw-r--r-- | bsp/lpc43xx/M4/SConstruct | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bsp/lpc43xx/M0/SConstruct b/bsp/lpc43xx/M0/SConstruct index c7967d02f6..c0d1d2fdc0 100644 --- a/bsp/lpc43xx/M0/SConstruct +++ b/bsp/lpc43xx/M0/SConstruct @@ -29,7 +29,7 @@ if rtconfig.CROSS_TOOL == 'gcc': import glob # Remove the .o for M0 left on the drivers dir. for i in glob.glob(GetCurrentDir() + '/../drivers/*.o'): - print 'RM %s' % i + print('RM %s' % i) os.unlink(i) if sys.platform.startswith('linux'): @@ -40,7 +40,7 @@ if rtconfig.CROSS_TOOL == 'gcc': else: # Assume Windows. ocwd = os.getcwdu() - print 'TODO: remove the object files in ../Libraries' + print('TODO: remove the object files in ../Libraries') os.chdir(ocwd) # do building diff --git a/bsp/lpc43xx/M4/SConstruct b/bsp/lpc43xx/M4/SConstruct index 7b02b732d4..a6390025a3 100644 --- a/bsp/lpc43xx/M4/SConstruct +++ b/bsp/lpc43xx/M4/SConstruct @@ -26,14 +26,14 @@ Export('rtconfig') objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) if rtconfig.CROSS_TOOL == 'gcc': - print 'build M0 code first' + print('build M0 code first') if sys.platform.startswith('linux'): import glob ocwd = os.getcwdu() os.chdir('../M0') res = os.system('scons') if res: - print 'build M0 exit with code %d\n' % res + print('build M0 exit with code %d\n' % res) sys.exit(res) os.chdir(ocwd) res = os.system('cd ../Libraries/; find -name \*.o -exec rm {} \;') @@ -47,7 +47,7 @@ if rtconfig.CROSS_TOOL == 'gcc': # Remove the .o for M0 left on the drivers dir. for i in glob.glob(GetCurrentDir() + '/../drivers/*.o'): - print 'RM %s' % i + print('RM %s' % i) os.unlink(i) # do building |
