From f0013b0318bebe8f6e25fafce00cd7f753fa9207 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 8 Dec 2017 19:30:46 +0100 Subject: [PATCH] sconscript: typo - split stack protector and freestanding options --- SConscript.boardloader | 3 ++- SConscript.bootloader | 3 ++- SConscript.prodtest | 3 ++- SConscript.reflash | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/SConscript.boardloader b/SConscript.boardloader index c1cb5f78b9..60638cbb9a 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 b1913ec719..e144fc76ae 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 456c8aae19..0b21d0c676 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 5e576f84ea..0e1f40360f 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',