flipperzero-firmware/site_scons/cc.scons
Georgii Surkov 37fb330b36
[FL-3226] Deep Sleep Idle (#2569)
* 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>
2023-04-14 00:47:38 +10:00

49 lines
1.0 KiB
Plaintext

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",
],
)