blob: 6e8b4016eb679ca3f9948e3872092ce8a65be2e7 (
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
31
32
33
34
|
all: stage0.stamp stage1.stamp stage2.stamp stage3.stamp
stage0.stamp:
mkdir -p fs/cryptech-builder
sudo /usr/sbin/debootstrap --foreign jessie fs
sudo tar -C fs -xf Xilinx_ISE_DS_Lin_14.7_1015_1.tar
sudo tar -C fs -c . | docker import - cryptech-builder:stage0
sudo rm -rf fs
touch $@
stage1.stamp: stage0.stamp
docker run -it --name cryptech-builder-stage1 \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
cryptech-builder:stage0 \
/cryptech-builder/Builder1
docker commit cryptech-builder-stage1 cryptech-builder:stage1
docker container rm cryptech-builder-stage1
touch $@
stage2.stamp: stage1.stamp
docker run -it --name cryptech-builder-stage2 \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
cryptech-builder:stage1 \
/cryptech-builder/Builder2
docker commit cryptech-builder-stage2 cryptech-builder:stage2
docker container rm cryptech-builder-stage2
touch $@
stage3.stamp: stage2.stamp
docker build -t cryptech-builder .
touch $@
clean:
rm -f *.stamp
|