1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 08:08:51 +00:00

build: include vendorheader.bin in source tree

This commit is contained in:
Pavol Rusnak 2017-04-01 20:21:02 +02:00
parent 1f07f310b3
commit 7cb7a90d27
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,6 @@ before_install:
install:
- sudo apt-get install -y build-essential gcc-multilib gcc-arm-embedded
- sudo apt-get install python3-pil
script:
- make build_cross

View File

@ -24,6 +24,9 @@ vendor: ## update git submodules
res: ## update resources
./tools/res_collect
vendorheader: ## contruct default vendor header
./tools/build_vendorheader '0000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000' 2 1.1 SatoshiLabs assets/satoshilabs_120.png micropython/firmware/vendorheader.bin
## emulator commands:
run: ## run unix port

View File

@ -400,9 +400,6 @@ QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB -DN_ARM -DN_XTENSA
all: $(BUILD)/$(TARGET).bin
$(SRCDIR_FW)/firmware/vendorheader.bin: assets/satoshilabs_120.png
./tools/build_vendorheader '0000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000' 2 1.1 SatoshiLabs assets/satoshilabs_120.png micropython/firmware/vendorheader.bin
$(BUILD_FW)/firmware/vendorheader.o: $(SRCDIR_FW)/firmware/vendorheader.bin
$(Q)$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
--rename-section .data=.vendorheader,alloc,load,readonly,contents \

View File

@ -1,2 +1 @@
build/
vendorheader.bin

Binary file not shown.