mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-23 19:00:43 +03:00
21 lines
361 B
Plaintext
21 lines
361 B
Plaintext
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")
|