1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

build: use COPT in all SConscript files

This commit is contained in:
Pavol Rusnak 2018-07-09 21:03:25 +02:00
parent d897d5e23c
commit 820798998b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 10 additions and 5 deletions

View File

@ -99,7 +99,8 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -120,7 +120,8 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -89,7 +89,8 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -89,7 +89,8 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -246,7 +246,8 @@ env.Replace(
OBJCOPY='objcopy', )
env.Replace(
CCFLAGS='-Os '
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-std=gnu99 -Wall -Werror -Wuninitialized '
'-fdata-sections -ffunction-sections ' + CCFLAGS_MOD,