mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 13:21:44 +03:00
380ec2ac46
* fbt: added -Wundef to compiler options; libs: various small fixes for missing defines; desktop: proper access to current RTOS config * apps: fixes for FURI_DEBUG handling * rpc: unified definition checks * Cleanup various defines use * Cleanup configs and move SVCall ISR priority configuration to furi_hal_interrupts Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
Import("ENV")
|
|
|
|
|
|
ENV.AppendUnique(
|
|
CFLAGS=[
|
|
"-std=gnu2x",
|
|
"-Wstrict-prototypes",
|
|
],
|
|
CXXFLAGS=[
|
|
"-std=c++20",
|
|
"-fno-rtti",
|
|
"-fno-use-cxa-atexit",
|
|
"-fno-exceptions",
|
|
"-fno-threadsafe-statics",
|
|
"-ftemplate-depth=4096",
|
|
],
|
|
CCFLAGS=[
|
|
"-mcpu=cortex-m4",
|
|
"-mfloat-abi=hard",
|
|
"-mfpu=fpv4-sp-d16",
|
|
"-mthumb",
|
|
# "-MMD",
|
|
# "-MP",
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Werror",
|
|
"-Wno-error=deprecated-declarations",
|
|
"-Wno-address-of-packed-member",
|
|
"-Wredundant-decls",
|
|
"-Wdouble-promotion",
|
|
"-Wundef",
|
|
"-fdata-sections",
|
|
"-ffunction-sections",
|
|
"-fsingle-precision-constant",
|
|
"-fno-math-errno",
|
|
# Generates .su files with stack usage information
|
|
# "-fstack-usage",
|
|
"-g",
|
|
],
|
|
CPPDEFINES=[
|
|
"_GNU_SOURCE",
|
|
*GetOption("extra_defines"),
|
|
],
|
|
LINKFLAGS=[
|
|
"-mcpu=cortex-m4",
|
|
"-mfloat-abi=hard",
|
|
"-mfpu=fpv4-sp-d16",
|
|
"-mlittle-endian",
|
|
"-mthumb",
|
|
"-Wl,--no-warn-rwx-segment",
|
|
],
|
|
)
|