[Cryptech-Commits] [user/sra/alpha-releng/firmware] branch master updated: Tweak dependencies so we don't rebuild (particularly the bitstream) unnecessarily.
git at cryptech.is
git at cryptech.is
Thu Jun 23 20:38:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch master
in repository user/sra/alpha-releng/firmware.
The following commit(s) were added to refs/heads/master by this push:
new 5a310ac Tweak dependencies so we don't rebuild (particularly the bitstream) unnecessarily.
5a310ac is described below
commit 5a310ac47beb5590a21a409168d8b271ff1bc11c
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Jun 23 16:38:11 2016 -0400
Tweak dependencies so we don't rebuild (particularly the bitstream) unnecessarily.
---
Makefile | 22 ++++++++++++----------
sw/stm32 | 2 +-
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index c6654e0..fc98e1d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,23 +4,25 @@
export GNUPGHOME := /home/aptbot/gnupg
-TARBALL := package.tar.gz
-
-FIRMWARE := sw/stm32/projects/bootloader/bootloader.bin \
- sw/stm32/projects/bootloader/bootloader.elf \
- sw/stm32/projects/hsm/hsm.bin \
- sw/stm32/projects/hsm/hsm.elf \
- core/platform/alpha/build/alpha_fmc.bit
+TARBALL := package.tar.gz
+BITSTREAM := core/platform/alpha/build/alpha_fmc.bit
+BINARIES := sw/stm32/projects/bootloader/bootloader.bin sw/stm32/projects/hsm/hsm.bin
+FIRMWARE := ${BITSTREAM} ${BINARIES} ${BINARIES:.bin=.elf}
+RTLSOURCE := $(shell find core -name .git -prune -o -path core/platform/alpha/build -prune -o -type f -print)
all: bitstream elves package
-bitstream:
+bitstream: ${BITSTREAM}
+
+${BITSTREAM}: ${RTLSOURCE}
cd core/platform/alpha/build; ${MAKE}
+${BINARIES}: elves
+
elves:
cd sw/stm32; ${MAKE} bootloader hsm
-package: bitstream elves ${TARBALL}
+package: ${TARBALL}
${TARBALL}: ${FIRMWARE}
./build-package.py $(basename $@) $^
@@ -30,4 +32,4 @@ clean:
git clean -dfx
git submodule foreach git clean -dfx
-.PHONY: bitstream elves package clean
+.PHONY: all bitstream elves package clean
diff --git a/sw/stm32 b/sw/stm32
index 85582f7..164c253 160000
--- a/sw/stm32
+++ b/sw/stm32
@@ -1 +1 @@
-Subproject commit 85582f7a86de10c0e5ad234d6b6f40135549f3da
+Subproject commit 164c253976d24a39a5a19b5831a693ece53445fe
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list