mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
14dabf523a
* changes for xPack 12.3 * support for gcc 13.2 * Update tools name * Add new linux toolchain * Fixed copro submodule * Fix gdb-py * Fixes for c++ apps * Fix gdb-py3, add udev rules * Fixed udev rules location * Add MacOS arm, fix fbt toolchain download * Fixed downloading error file * fbt: fixed linker warnings; removed gcc 10 from list of supported toolchains * ufbt: fixed supported toolchain versions * nfc: replaced local malloc with calloc * restored code with Warray-bounds to older state * Update fbtenv.cmd * Suppressing warnings * Bump to 25 * Bump to 26 * lint: reformatted macros for new clang-format * Bump to 27 * Fix m type word * Bump to 28 * furi: added FURI_DEPRECATED macro * scripts: toolchain download on Windows: fixing partially extracted cases Co-authored-by: DrunkBatya <drunkbatya.js@gmail.com>
50 lines
1.1 KiB
Text
50 lines
1.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-error=deprecated-declarations",
|
|
"-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",
|
|
"-Wl,--no-warn-rwx-segment",
|
|
],
|
|
)
|