blob: 2ddd1e450e69aed5167d88ad9ecee029f7964ab9 (
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
|
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/stage1
docker commit -c 'USER builder' cryptech-builder-stage1 cryptech-builder:stage2
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/stage2
docker commit -c 'USER builder' 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
|