mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 10:58:21 +00:00
build: use COPT in all SConscript files
This commit is contained in:
parent
d897d5e23c
commit
820798998b
@ -99,7 +99,8 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
@ -120,7 +120,8 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
@ -89,7 +89,8 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
@ -89,7 +89,8 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
@ -246,7 +246,8 @@ env.Replace(
|
|||||||
OBJCOPY='objcopy', )
|
OBJCOPY='objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS='-Os '
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-std=gnu99 -Wall -Werror -Wuninitialized '
|
'-std=gnu99 -Wall -Werror -Wuninitialized '
|
||||||
'-fdata-sections -ffunction-sections ' + CCFLAGS_MOD,
|
'-fdata-sections -ffunction-sections ' + CCFLAGS_MOD,
|
||||||
|
Loading…
Reference in New Issue
Block a user