1
0
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:
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', ) 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 '

View File

@ -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 '

View File

@ -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 '

View File

@ -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 '

View File

@ -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,