mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-14 00:37:21 +00:00
20 lines
361 B
Text
20 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")
|