mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 16:29:12 +00:00
c894948d4f
OFW PR 1742 by hedger keeping api version the same to allow compatibility it might be changed in next releases if api changes are destructive
30 lines
548 B
Text
30 lines
548 B
Text
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/mbedtls",
|
|
"#/lib/mbedtls/include",
|
|
],
|
|
)
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="mbedtls")
|
|
libenv.ApplyLibFlags()
|
|
|
|
libenv.AppendUnique(
|
|
CCFLAGS=[
|
|
# Required for lib to be linkable with .faps
|
|
"-mword-relocations",
|
|
"-mlong-calls",
|
|
],
|
|
)
|
|
|
|
sources = [
|
|
"mbedtls/library/des.c",
|
|
"mbedtls/library/sha1.c",
|
|
"mbedtls/library/platform_util.c",
|
|
]
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|