|
@@ -121,34 +121,6 @@ class Win32Spawn:
|
|
|
|
|
|
return proc.wait()
|
|
return proc.wait()
|
|
|
|
|
|
-# generate cconfig.h file
|
|
|
|
-def GenCconfigFile(env, BuildOptions):
|
|
|
|
- # The cconfig.h will NOT generate in the lastest RT-Thread code.
|
|
|
|
- # When you want to use it, you can uncomment out the following code.
|
|
|
|
-
|
|
|
|
- # if rtconfig.PLATFORM in ['gcc']:
|
|
|
|
- # contents = ''
|
|
|
|
- # if not os.path.isfile('cconfig.h'):
|
|
|
|
- # import gcc
|
|
|
|
- # gcc.GenerateGCCConfig(rtconfig)
|
|
|
|
-
|
|
|
|
- # # try again
|
|
|
|
- # if os.path.isfile('cconfig.h'):
|
|
|
|
- # f = open('cconfig.h', 'r')
|
|
|
|
- # if f:
|
|
|
|
- # contents = f.read()
|
|
|
|
- # f.close()
|
|
|
|
-
|
|
|
|
- # prep = PatchedPreProcessor()
|
|
|
|
- # prep.process_contents(contents)
|
|
|
|
- # options = prep.cpp_namespace
|
|
|
|
-
|
|
|
|
- # BuildOptions.update(options)
|
|
|
|
-
|
|
|
|
- # # add HAVE_CCONFIG_H definition
|
|
|
|
- # env.AppendUnique(CPPDEFINES = ['HAVE_CCONFIG_H'])
|
|
|
|
- pass
|
|
|
|
-
|
|
|
|
def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = []):
|
|
def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = []):
|
|
|
|
|
|
global BuildOptions
|
|
global BuildOptions
|
|
@@ -312,9 +284,6 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
|
# found or something like that).
|
|
# found or something like that).
|
|
rtconfig.POST_ACTION = ''
|
|
rtconfig.POST_ACTION = ''
|
|
|
|
|
|
- # generate cconfig.h file
|
|
|
|
- GenCconfigFile(env, BuildOptions)
|
|
|
|
-
|
|
|
|
# auto append '_REENT_SMALL' when using newlib 'nano.specs' option
|
|
# auto append '_REENT_SMALL' when using newlib 'nano.specs' option
|
|
if rtconfig.PLATFORM in ['gcc'] and str(env['LINKFLAGS']).find('nano.specs') != -1:
|
|
if rtconfig.PLATFORM in ['gcc'] and str(env['LINKFLAGS']).find('nano.specs') != -1:
|
|
env.AppendUnique(CPPDEFINES = ['_REENT_SMALL'])
|
|
env.AppendUnique(CPPDEFINES = ['_REENT_SMALL'])
|