unleashed-firmware/lib/drivers/SConscript

23 lines
406 B
Python
Raw Normal View History

Import("env")
env.Append(
CPPPATH=[
"#/lib/drivers",
],
2023-07-17 07:51:15 +00:00
SDK_HEADERS=[
File("cc1101_regs.h"),
File("st25r3916_reg.h"),
File("st25r3916.h"),
2023-07-17 07:51:15 +00:00
],
)
libenv = env.Clone(FW_LIB_NAME="hwdrivers")
libenv.ApplyLibFlags()
sources = Glob("*.c", source=True)
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
libenv.Install("${LIB_DIST_DIR}", lib)
Return("lib")