aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-21 23:05:38 -0400
committerRob Austein <sra@hactrn.net>2016-06-21 23:05:38 -0400
commit480b0f009c0f56f0d570bb4e76d78781db5c0bda (patch)
tree0132aec2f942dbdb004ba71b6df02970891ede9f /Makefile
parentd630816f9bbb6e1aec4d6fa583ca7ca5045c4f18 (diff)
First cut at package builder.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 38d1a78..d8c159d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# basic build sequence before we start messing with packaging scripts,
# version numbers, and other forms of entertainment. Expect changes.
-all: bitstream elves
+all: bitstream elves package
bitstream:
cd core/platform/alpha/build; ${MAKE}
@@ -10,6 +10,16 @@ bitstream:
elves:
cd sw/stm32; ${MAKE} bootloader hsm
+PACKAGE_FILES = 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
+
+package: bitstream elves
+ python build-package.py package.tar ${PACKAGE_FILES}
+ gzip -9f package.tar
+
clean:
git clean -dfx
git submodule foreach git clean -dfx