From 8155d6044389fac460a9457b91371af5c9ea6c3b 2017-01-28 09:20:01 From: Denis Mosolov Date: 2017-01-28 09:20:01 Subject: [PATCH] Describe BASEDIR in README --- diff --git a/README.md b/README.md index 48491c8..916d1a1 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,12 @@ Set cipher specification string. `aes-xts*` ciphers are strongly recommended. ##### `CRYPTFS_XTSKEYSIZE`=512 Sets key size in bits. The argument has to be a multiple of 8. +--- + +#### Build settings: +##### `BASEDIR`=$(pwd)/images/${RELEASE} +Path to a directory where the script stores all temporary files during generating the image. + ## Understanding the script The functions of this script that are required for the different stages of the bootstrapping are split up into single files located inside the `bootstrap.d` directory. During the bootstrapping every script in this directory gets executed in lexicographical order: diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 6cec1cc..f459f23 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -66,7 +66,7 @@ FBTURBO_URL=${FBTURBO_URL:=https://github.com/ssvb/xf86-video-fbturbo.git} UBOOT_URL=${UBOOT_URL:=git://git.denx.de/u-boot.git} # Build directories -BASEDIR="$(pwd)/images/${RELEASE}" +BASEDIR=${BASEDIR:=$(pwd)/images/${RELEASE}} BUILDDIR="${BASEDIR}/build" # Chroot directories