aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3162badf3e31b2ae4054bb394f593069ef227665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: build

build: stage0.stamp stage1.stamp stage2.stamp # stage3.stamp

debug: stage2.stamp
	docker container prune -f
	mkdir -p framebuf
	docker run -it --mount type=bind,source=$(abspath framebuf),target=/framebuf xilinx:intalled

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 $@

stage1.stamp: stage0.stamp
	cd stage1; docker build -t xilinx:loaded .
	touch $@

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