mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
fbt: building core with respect for debug flag (#1347)
* fbt: building `core` with respect for debug flag * fbt: added size output for firmware elf * Infrared: fix cli Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -39,7 +39,17 @@ env = ENV.Clone(
|
||||
],
|
||||
# You can add other entries named after libraries
|
||||
# If they are present, they have precedence over Default
|
||||
}
|
||||
},
|
||||
# for furi_check to respect build type
|
||||
"core": {
|
||||
"CCFLAGS": [
|
||||
"-Os",
|
||||
],
|
||||
"CPPDEFINES": [
|
||||
"NDEBUG",
|
||||
"FURI_DEBUG" if ENV["DEBUG"] else "FURI_NDEBUG",
|
||||
],
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
@@ -191,6 +201,7 @@ fwelf = fwenv["FW_ELF"] = fwenv.Program(
|
||||
# Make it depend on everything child builders returned
|
||||
Depends(fwelf, lib_targets)
|
||||
AddPostAction(fwelf, fwenv["APPBUILD_DUMP"])
|
||||
AddPostAction(fwelf, Action("@$SIZECOM"))
|
||||
|
||||
|
||||
fwhex = fwenv["FW_HEX"] = fwenv.HEXBuilder("${FIRMWARE_BUILD_CFG}")
|
||||
|
||||
Reference in New Issue
Block a user