mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
24 lines
356 B
Plaintext
24 lines
356 B
Plaintext
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/tlsf",
|
|
],
|
|
)
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="tlsf")
|
|
libenv.ApplyLibFlags()
|
|
|
|
libenv.Append(
|
|
CPPDEFINES=[
|
|
"CONFIG_MALLOC_ALIGNMENT=4",
|
|
],
|
|
)
|
|
|
|
sources = [File("tlsf/tlsf.c")]
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|