[core] Organize GCC compilation flags

This commit is contained in:
Kuba Szczodrzyński
2023-03-04 17:19:24 +01:00
parent 3113b387c3
commit 6b92aac1da
20 changed files with 102 additions and 143 deletions

View File

@@ -21,30 +21,14 @@ queue.AppendPublic(
"-mthumb",
"-mcmse",
"-mfloat-abi=soft",
"-g",
"-gdwarf-3",
"-Os",
"-MMD",
"-fstack-usage",
"-fdata-sections",
"-ffunction-sections",
"-fmessage-length=0",
"-fno-common",
"-fno-short-enums",
"-fomit-frame-pointer",
"-fsigned-char",
],
CFLAGS=[
"-std=gnu99",
"-Wall",
"-Wpointer-arith",
"-Wno-write-strings",
"-Wno-maybe-uninitialized",
],
CXXFLAGS=[
"-std=c++11",
"-fno-exceptions",
"-fno-rtti",
"-fno-use-cxa-atexit",
],
CPPDEFINES=[
@@ -68,19 +52,9 @@ queue.AppendPublic(
"-mthumb",
"-mcmse",
"-mfloat-abi=soft",
"-g",
"--specs=nosys.specs",
"-nostartfiles",
"-nodefaultlibs",
"-nostdlib",
"-Os",
"-Wl,--gc-sections",
"-Wl,--warn-section-align",
"-Wl,--cref",
"-Wl,--build-id=none",
"-Wl,--use-blx",
"-Wl,--undefined=gRamStartFun",
"-Wl,-no-enum-size-warning",
"-Wl,-wrap,aesccmp_construct_mic_iv",
"-Wl,-wrap,aesccmp_construct_mic_header1",
"-Wl,-wrap,aesccmp_construct_ctr_preload",
@@ -362,6 +336,11 @@ queue.AddLibrary(
"+<src/include>",
"+<src/include/netif>",
],
options=dict(
CFLAGS=[
"-Wno-implicit-function-declaration",
],
),
)
# Sources - mbedTLS