aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-02-17 13:26:19 +0000
committerRob Austein <sra@hactrn.net>2019-02-17 13:26:19 +0000
commiteeca7cda27fbc8cc11933b1b061491c98ada6553 (patch)
treec4ad5ab4191243a33b58ff38ec366ed0fe4daf23 /Makefile
parent0820895f73dfc41f37bb63365290815c861013cf (diff)
OK, that blew out on disk space, try again
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2573890..b34a496 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ XILINX_LICENSE := Xilinx.lic
BOOTSTRAP_IMAGE := cryptech-builder:bootstrap
BOOTSTRAP_CONTAINER := cryptech-builder-bootstrap
CRYPTECH_BASE_FILE := cryptech-builder-base-image.xz
-XILINX_PKGDIR := fs/$(basename ${XILINX_TARBALL})
+XILINX_PKGDIR := $(basename ${XILINX_TARBALL})
ifneq (./,$(sort $(dir ${XILINX_TARBALL} ${XILINX_LICENSE})))
$(error XILINX_TARBALL and XILINX_LICENSE must be in this directory for bind mount)
@@ -19,18 +19,16 @@ ${CRYPTECH_BASE_FILE}: ${XILINX_TARBALL} ${XILINX_LICENSE} Builder Ratinox
rm -rf fs
mkdir fs
sudo /usr/sbin/debootstrap --foreign jessie fs
+ sudo tar -C fs -xf ${XILINX_TARBALL}
+ test -d fs/${XILINX_PKGDIR}
sudo tar -C fs -c . | docker import - ${BOOTSTRAP_IMAGE}
sudo rm -rf fs
- mkdir fs
- tar -C fs -xf ${XILINX_TARBALL}
- test -d ${XILINX_PKGDIR}
docker run -it --name ${BOOTSTRAP_CONTAINER} \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
- --env 'XILINX_PKGDIR=/cryptech-builder/${XILINX_PKGDIR}' \
+ --env 'XILINX_PKGDIR=/${XILINX_PKGDIR}' \
--env 'XILINX_LICENSE=${XILINX_LICENSE}' \
${BOOTSTRAP_IMAGE} \
/cryptech-builder/Builder
- rm -rf fs
-mogrify -verbose -format png *.xwd && rm *.xwd
docker export ${BOOTSTRAP_CONTAINER} | xz -v >${CRYPTECH_BASE_FILE}.tmp
docker container rm -f ${BOOTSTRAP_CONTAINER}