mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 19:53:08 +00:00
28 lines
587 B
Text
28 lines
587 B
Text
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/drivers",
|
|
"#/lib/FreeRTOS-Kernel/include",
|
|
"#/lib/FreeRTOS-Kernel/portable/GCC/ARM_CM4F",
|
|
"#/lib/FreeRTOS-glue",
|
|
],
|
|
CPPDEFINES=[
|
|
"HAVE_FREERTOS",
|
|
],
|
|
)
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="freertos")
|
|
libenv.ApplyLibFlags()
|
|
|
|
|
|
sources = libenv.Glob("FreeRTOS-Kernel/*.c", source=True)
|
|
sources += [
|
|
"FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c",
|
|
"FreeRTOS-glue/cmsis_os2.c",
|
|
]
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|