mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +00:00
build: fix build via error in SConscript.prodtest
This commit is contained in:
parent
42164c41e3
commit
1f2c25e743
@ -78,6 +78,15 @@ env.Replace(
|
|||||||
env.Replace(
|
env.Replace(
|
||||||
TREZOR_MODEL=env.get('ENV').get('TREZOR_MODEL', 'T'), )
|
TREZOR_MODEL=env.get('ENV').get('TREZOR_MODEL', 'T'), )
|
||||||
|
|
||||||
|
if env.get('TREZOR_MODEL') == 'T':
|
||||||
|
CPU_ASFLAGS = '-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16'
|
||||||
|
CPU_CCFLAGS = '-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mtune=cortex-m4 '
|
||||||
|
CPU_MODEL = 'STM32F427xx'
|
||||||
|
else:
|
||||||
|
CPU_ASFLAGS = '-mthumb -mcpu=cortex-m3 -mfloat-abi=soft'
|
||||||
|
CPU_CCFLAGS = '-mthumb -mtune=cortex-m3 -mcpu=cortex-m3 -mfloat-abi=soft '
|
||||||
|
CPU_MODEL = 'STM32F405xx'
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
|
||||||
CCFLAGS='$COPT '
|
CCFLAGS='$COPT '
|
||||||
|
Loading…
Reference in New Issue
Block a user