diff --git a/SConscript.boardloader b/SConscript.boardloader index c1cb5f78..60638cbb 100644 --- a/SConscript.boardloader +++ b/SConscript.boardloader @@ -101,7 +101,8 @@ env.Replace( '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' - '-fstack-protector-all -ffreestanding ' + '-ffreestanding ' + '-fstack-protector-all ' + CCFLAGS_MOD, CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', LINKFLAGS='-nostdlib -T embed/boardloader/memory.ld --gc-sections -Map=build/boardloader/boardloader.map --warn-common', diff --git a/SConscript.bootloader b/SConscript.bootloader index b1913ec7..e144fc76 100644 --- a/SConscript.bootloader +++ b/SConscript.bootloader @@ -120,7 +120,8 @@ env.Replace( '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' - '-fstack-protector-all -ffreestanding ' + '-ffreestanding ' + '-fstack-protector-all ' + CCFLAGS_MOD, CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', LINKFLAGS='-nostdlib -T embed/bootloader/memory.ld --gc-sections -Map=build/bootloader/bootloader.map --warn-common', diff --git a/SConscript.prodtest b/SConscript.prodtest index 456c8aae..0b21d0c6 100644 --- a/SConscript.prodtest +++ b/SConscript.prodtest @@ -96,7 +96,8 @@ env.Replace( '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' - '-fstack-protector-all -ffreestanding ' + '-ffreestanding ' + '-fstack-protector-all ' + CCFLAGS_MOD, CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', LINKFLAGS='-nostdlib -T embed/prodtest/memory.ld --gc-sections -Map=build/prodtest/prodtest.map --warn-common', diff --git a/SConscript.reflash b/SConscript.reflash index 5e576f84..0e1f4036 100644 --- a/SConscript.reflash +++ b/SConscript.reflash @@ -96,7 +96,8 @@ env.Replace( '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common ' '-mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' - '-fstack-protector-all -ffreestanding ' + '-ffreestanding ' + '-fstack-protector-all ' + CCFLAGS_MOD, CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', LINKFLAGS='-nostdlib -T embed/reflash/memory.ld --gc-sections -Map=build/reflash/reflash.map --warn-common',