'os_irq_illegalinstruction.S', 'os_irq_stackoverflowexception.S', 'os_irq_unimplementedmodule.S', ] ], OSCFG_PATH) env.GenerateZigbeeStack( [join(BUILDGEN_DIR, f) for f in [ 'zps_gen.h', 'zps_gen.c', ]], ZPSCFG_PATH) # Compile the generated sources genlib = env.StaticLibrary( join('$BUILD_DIR', 'Gen'), # output [ env.File(join(BUILDGEN_DIR, f)) for f in [ 'pdum_gen.c', 'pdum_apdu.S', 'os_gen.c', 'os_irq.S', 'os_irq_alignment.S', 'os_irq_buserror.S', 'os_irq_illegalinstruction.S', 'os_irq_stackoverflowexception.S', 'os_irq_unimplementedmodule.S', 'zps_gen.c' ] ]) #includes = env.MatchSourceFiles(env.subst('$PROJECT_INCLUDE_DIR'), ['+<**/os_msg_types.h>']) #print("Found os_msg_types.h: %s" % includes) env.Prepend( CPPPATH=[ BUILDGEN_DIR, # Not ideal, but os_gen.c requires os_msg_types.h from the project source... join('$PROJECT_INCLUDE_DIR', 'Common', 'Source'), ],
# Process libraries # # There is no difference in processing between lib and feature libs = mbed_config.get("libs").copy() libs.update(mbed_config.get("features")) # # Process Core files from framework # env.Append(CPPPATH=[ join(FRAMEWORK_DIR, d) for d in mbed_config.get("core").get("inc_dirs") ], LIBS=[ env.File(join(FRAMEWORK_DIR, d)) for d in mbed_config.get("core").get("libraries") ]) env.Append(CPPPATH=[ FRAMEWORK_DIR, join(FRAMEWORK_DIR, "platformio", "variants", variant) ]) # If RTOS is enabled then some of the files from Core depdend on it if MBED_RTOS: for d in mbed_config.get("libs").get("rtos").get("inc_dirs"): env.Append(CPPPATH=[join(FRAMEWORK_DIR, "rtos", d)]) core_src_files = mbed_config.get("core").get("s_sources") + mbed_config.get( "core").get("c_sources") + mbed_config.get("core").get("cpp_sources")