mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
fix(legacy): fix emulator build on darwin
This commit is contained in:
parent
250f09245b
commit
105f203a1f
@ -10,11 +10,12 @@ PYTHON ?= python
|
|||||||
ifeq ($(EMULATOR),1)
|
ifeq ($(EMULATOR),1)
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
LD := $(CC)
|
LD := $(CC)
|
||||||
OBJCOPY := objcopy
|
OBJCOPY := true
|
||||||
OBJDUMP := objdump
|
OBJDUMP := true
|
||||||
AR := ar
|
AR := ar
|
||||||
AS := as
|
AS := as
|
||||||
|
|
||||||
|
CONFFLAG ?= -DCONFIDENTIAL=''
|
||||||
OPTFLAGS ?= -O3
|
OPTFLAGS ?= -O3
|
||||||
DBGFLAGS ?= -g3 -ggdb3
|
DBGFLAGS ?= -g3 -ggdb3
|
||||||
CPUFLAGS ?=
|
CPUFLAGS ?=
|
||||||
@ -30,6 +31,7 @@ AS := $(PREFIX)as
|
|||||||
OPENOCD := openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
OPENOCD := openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
||||||
GDB := $(PREFIX)gdb --nx -ex 'set remotetimeout unlimited' -ex 'set confirm off' -ex 'target remote 127.0.0.1:3333' -ex 'monitor reset halt'
|
GDB := $(PREFIX)gdb --nx -ex 'set remotetimeout unlimited' -ex 'set confirm off' -ex 'target remote 127.0.0.1:3333' -ex 'monitor reset halt'
|
||||||
|
|
||||||
|
CONFFLAG ?= -DCONFIDENTIAL='__attribute__((section("confidential")))'
|
||||||
OPTFLAGS ?= -O3
|
OPTFLAGS ?= -O3
|
||||||
DBGFLAGS ?= -g -DNDEBUG
|
DBGFLAGS ?= -g -DNDEBUG
|
||||||
CPUFLAGS ?= -mcpu=cortex-m3 -mthumb
|
CPUFLAGS ?= -mcpu=cortex-m3 -mthumb
|
||||||
@ -66,8 +68,8 @@ CFLAGS += $(OPTFLAGS) \
|
|||||||
-fstack-protector-all \
|
-fstack-protector-all \
|
||||||
$(CPUFLAGS) \
|
$(CPUFLAGS) \
|
||||||
$(FPUFLAGS) \
|
$(FPUFLAGS) \
|
||||||
|
$(CONFFLAG) \
|
||||||
-DSTM32F2 \
|
-DSTM32F2 \
|
||||||
-DCONFIDENTIAL='__attribute__((section("confidential")))' \
|
|
||||||
-DRAND_PLATFORM_INDEPENDENT=1 \
|
-DRAND_PLATFORM_INDEPENDENT=1 \
|
||||||
-I$(TOOLCHAIN_DIR)/include \
|
-I$(TOOLCHAIN_DIR)/include \
|
||||||
-I$(TOP_DIR) \
|
-I$(TOP_DIR) \
|
||||||
|
Loading…
Reference in New Issue
Block a user