mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
build: make it easier to build binaries optimized for debugging (#267)
This commit is contained in:
parent
a94ea094a0
commit
d897d5e23c
@ -99,7 +99,7 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS='-Os '
|
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
||||||
'-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,7 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS='-Os '
|
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
@ -310,7 +310,7 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
COPT='-Os',
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
CCFLAGS='$COPT '
|
CCFLAGS='$COPT '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
|
@ -89,7 +89,7 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS='-Os '
|
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
||||||
'-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,7 @@ env.Replace(
|
|||||||
OBJCOPY='arm-none-eabi-objcopy', )
|
OBJCOPY='arm-none-eabi-objcopy', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
CCFLAGS='-Os '
|
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
|
||||||
'-g3 '
|
'-g3 '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '
|
||||||
|
Loading…
Reference in New Issue
Block a user