|
@@ -39,7 +39,17 @@ env = ENV.Clone(
|
|
|
],
|
|
],
|
|
|
# You can add other entries named after libraries
|
|
# You can add other entries named after libraries
|
|
|
# If they are present, they have precedence over Default
|
|
# 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
|
|
# Make it depend on everything child builders returned
|
|
|
Depends(fwelf, lib_targets)
|
|
Depends(fwelf, lib_targets)
|
|
|
AddPostAction(fwelf, fwenv["APPBUILD_DUMP"])
|
|
AddPostAction(fwelf, fwenv["APPBUILD_DUMP"])
|
|
|
|
|
+AddPostAction(fwelf, Action("@$SIZECOM"))
|
|
|
|
|
|
|
|
|
|
|
|
|
fwhex = fwenv["FW_HEX"] = fwenv.HEXBuilder("${FIRMWARE_BUILD_CFG}")
|
|
fwhex = fwenv["FW_HEX"] = fwenv.HEXBuilder("${FIRMWARE_BUILD_CFG}")
|