mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
37fb330b36
* Improve RNG error handling * Sync RTC shadow registers on Stop mode exit * Implement working STOP2 mode * Fix formatting * FuriHal: disable SWD pins if debug is disabled * Power: cleanup battery info view, handle zero current report from gauge * Fbt: add command line argument for extra global defines * FuriHal: cleanup debug defines in power and os, drop deep_insomnia counter. * Add a setting to disable deep sleep * Clean up furi_hal_power * FuriHal,FapLoader,Debug: implement debug in stop mode, workaround resume in stop * FuriHal: document OS and power subsystems debugging * Furi: enable debug interface on crash --------- Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
48 lines
1 KiB
Text
48 lines
1 KiB
Text
Import("ENV")
|
|
|
|
|
|
ENV.AppendUnique(
|
|
CFLAGS=[
|
|
"-std=gnu17",
|
|
],
|
|
CXXFLAGS=[
|
|
"-std=c++17",
|
|
"-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-address-of-packed-member",
|
|
"-Wredundant-decls",
|
|
"-Wdouble-promotion",
|
|
"-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",
|
|
],
|
|
)
|