From 13143a84e45f06728db7f6a0722098eb01b3a236 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 29 Jun 2016 12:54:17 -0400 Subject: Add tamper.hex to firmware tarball; start adding support scripts; more minor build process cleanup. --- Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0ff5e25..4d3900b 100644 --- a/Makefile +++ b/Makefile @@ -28,11 +28,7 @@ REPO_UPLOAD_URI := rsync://apt.cryptech.is/alpha/ FIRMWARE_TARBALL := source/cryptech-alpha-firmware.tar.gz BITSTREAM := build/core/platform/alpha/build/alpha_fmc.bit ELVES := build/sw/stm32/projects/bootloader/bootloader.elf build/sw/stm32/projects/hsm/hsm.elf -FIRMWARE_BINARY := ${ELVES} ${ELVES:.elf=.bin} -FIRMWARE_ALL := ${BITSTREAM} ${FIRMWARE_BINARY} - -RTL_SOURCE := $(shell find source/core -name .git -prune -o -type f -print) -SW_SOURCE := $(shell find source/sw source/user -name .git -prune -o -type f -print) +TAMPER := build/user/ln5/tamper/tamper.hex # Command to generate a new changelog containing one entry. # Does nothing if the changelog already exists. @@ -61,13 +57,12 @@ firmware: shadow ${FIRMWARE_TARBALL} shadow: ./build-shadow-tree.py -${FIRMWARE_TARBALL}: ${BITSTREAM} $(sort ${ELVES} ${ELVES:.elf=.bin}) - ./build-firmware-package.py $(basename $@) $^ - gzip -9f $(basename $@) +${FIRMWARE_TARBALL}: ${BITSTREAM} $(sort ${ELVES} ${ELVES:.elf=.bin}) ${TAMPER} + ./build-firmware-package.py $@ $^ bitstream: ${BITSTREAM} -${BITSTREAM}: ${RTL_SOURCE} +${BITSTREAM}: $(shell find source/core -name .git -prune -o -type f -print) ${MAKE} -C build/core/platform/alpha/build ${ELVES:.elf=.bin}: shadow elves @@ -75,7 +70,13 @@ ${ELVES:.elf=.bin}: shadow elves elves: ${MAKE} -C build/sw/stm32 distclean bootloader hsm +${TAMPER}: tamper + +tamper: + ${MAKE} -C $(dir ${TAMPER}) + dsc: + rm -f ${PACKAGE_NAME}_*.dsc ${PACKAGE_NAME}_*.tar.xz ${PACKAGE_NAME}_*_source.build ${PACKAGE_NAME}_*_source.changes cd source; ${DCH} cd source; debuild -S -uc -us @@ -95,4 +96,4 @@ upload: ${RSYNC} --ignore-existing ${REPO_BASE}/ ${REPO_UPLOAD_URI} ${RSYNC} --delete --delete-delay ${REPO_BASE}/ ${REPO_UPLOAD_URI} -.PHONY: all init clean firmware shadow bitstream elves dsc pbuilder homebrew upload enchilada sandblast +.PHONY: all init clean firmware shadow bitstream elves tamper dsc pbuilder homebrew upload enchilada sandblast -- cgit v1.2.3