aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-02-11 07:39:38 +0000
committerRob Austein <sra@hactrn.net>2019-02-11 07:39:38 +0000
commite556e6643e5d2300a38e4373bde45e83178becaf (patch)
treec9e271d04b8564e0680bb1d58a25045db50d7ac8 /Makefile
parent6f526cc4567cb551feb4cae121f9a067d491f711 (diff)
debootstrap, XiLinx installation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 22 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 624b534..3162bad 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,30 @@
-all: debug
+all: build
-build: build-stage1 build-stage2 # build-stage3
+build: stage0.stamp stage1.stamp stage2.stamp # stage3.stamp
-debug: build-stage2
+debug: stage2.stamp
docker container prune -f
mkdir -p framebuf
docker run -it --mount type=bind,source=$(abspath framebuf),target=/framebuf xilinx:intalled
-build-stage1:
- cd stage1; docker build -t xilinx:loadonly .
+stage0.stamp:
+ mkdir -p stage0/jessie_chroot
+ cd stage0; sudo /usr/sbin/debootstrap --foreign jessie jessie_chroot
+ sudo tar -C stage0/jessie_chroot -c . | docker import - xilinx:debootstrap
+ sudo rm -rf stage0/jessie_chroot
+ touch $@
-build-stage2:
- cd stage2; docker build -t xilinx:intalled .
+stage1.stamp: stage0.stamp
+ cd stage1; docker build -t xilinx:loaded .
+ touch $@
-build-stage3:
- cd stage3; docker build -t cryptech-alpha .
+stage2.stamp: stage1.stamp
+ cd stage2; docker build -t xilinx:installed .
+ touch $@
+
+stage3.stamp: stage2.stamp
+ cd stage3; docker build -t cryptech-alpha-builder .
+ touch $@
+
+clean:
+ rm -f *.stamp