mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
21 lines
361 B
Text
21 lines
361 B
Text
|
Import("env")
|
||
|
|
||
|
env.Append(
|
||
|
CPPPATH=[
|
||
|
"#/lib/littlefs",
|
||
|
],
|
||
|
CPPDEFINES=[
|
||
|
("LFS_CONFIG", "lfs_config.h"),
|
||
|
],
|
||
|
)
|
||
|
|
||
|
|
||
|
libenv = env.Clone(FW_LIB_NAME="littlefs")
|
||
|
libenv.ApplyLibFlags()
|
||
|
|
||
|
sources = Glob("littlefs/*.c", source=True)
|
||
|
|
||
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
||
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
||
|
Return("lib")
|