mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-21 12:21:49 +03: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
31 lines
548 B
Plaintext
31 lines
548 B
Plaintext
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")
|