aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-09 06:34:17 +0200
committerSven Gothel <[email protected]>2021-07-09 06:34:17 +0200
commit7dfa8df2507c7ad335c1f91599edf8714c5f3d3a (patch)
tree9c40cdd8462f06129be75b46bdeae44ac219738b
parent2797e50dc3f2f99b0c3d4d19f08eeed758701425 (diff)
Enable EXPORT_IMAGE for stage3a '-litex', useful for basic xorg no-desktop initial writable rootfs
Adding/renaming build scripts accordingly
-rwxr-xr-xscripts/01-build-rw-lightx.sh52
-rwxr-xr-xscripts/02-build-ro-smalldesk.sh (renamed from scripts/01-build.sh)1
-rw-r--r--stage3a/EXPORT_IMAGE4
3 files changed, 57 insertions, 0 deletions
diff --git a/scripts/01-build-rw-lightx.sh b/scripts/01-build-rw-lightx.sh
new file mode 100755
index 0000000..bfc0d12
--- /dev/null
+++ b/scripts/01-build-rw-lightx.sh
@@ -0,0 +1,52 @@
+#! /bin/sh
+
+sdir=`dirname $(readlink -f $0)`
+rootdir=`dirname $sdir`
+
+export CUSTOM_NAME="MyMachine"
+export CUSTOM_VERSION="2.1"
+
+export PI_GEN="pi-gen (custom branch)"
+
+# export RELEASE=bullseye
+export RELEASE=buster
+
+export TARGET_ARCH="arm64"
+
+export APT_PROXY=http://jordan:3142
+
+# Produce a read-only rootfs
+# export ROOTFS_RO=1
+export REDUCED_FOOTPRINT=1
+
+export IMG_NAME="${CUSTOM_NAME}-${CUSTOM_VERSION}-${TARGET_ARCH}"
+export WORK_DIR="/data/${CUSTOM_NAME}-${CUSTOM_VERSION}-${TARGET_ARCH}-work"
+export IMG_FILENAME=${IMG_NAME}
+
+export DEPLOY_DIR=/data/diskimages
+export DEPLOY_ZIP=0
+
+#export USE_QEMU=1
+
+export TARGET_HOSTNAME=raspi04
+
+export LOCALE_DEFAULT=en_US.UTF-8
+export KEYBOARD_KEYMAP=us
+export KEYBOARD_LAYOUT="English (US)"
+export TIMEZONE_DEFAULT="Europe/Berlin"
+
+export FIRST_USER_NAME="pi"
+export FIRST_USER_PASS="pi"
+export ENABLE_SSH=1
+# export PUBKEY_SSH_FIRST_USER="ssh-rsa long-number my@machine"
+# export PUBKEY_ONLY_SSH=1
+
+# export STAGE_LIST="stage0 stage1 stage2 stage3a stage3b stage4 stage5"
+export STAGE_LIST="stage0 stage1 stage2 stage3a"
+
+touch ${rootdir}/stage2/SKIP_IMAGES
+# touch ${rootdir}/stage3a/SKIP_IMAGES
+# touch ${rootdir}/stage3b/SKIP_IMAGES
+# touch ${rootdir}/stage4/SKIP_IMAGES
+
+./build.sh
diff --git a/scripts/01-build.sh b/scripts/02-build-ro-smalldesk.sh
index 9cd8228..3e67947 100755
--- a/scripts/01-build.sh
+++ b/scripts/02-build-ro-smalldesk.sh
@@ -45,6 +45,7 @@ export ENABLE_SSH=1
export STAGE_LIST="stage0 stage1 stage2 stage3a stage3b"
touch ${rootdir}/stage2/SKIP_IMAGES
+touch ${rootdir}/stage3a/SKIP_IMAGES
# touch ${rootdir}/stage3b/SKIP_IMAGES
# touch ${rootdir}/stage4/SKIP_IMAGES
diff --git a/stage3a/EXPORT_IMAGE b/stage3a/EXPORT_IMAGE
new file mode 100644
index 0000000..495decf
--- /dev/null
+++ b/stage3a/EXPORT_IMAGE
@@ -0,0 +1,4 @@
+IMG_SUFFIX="-litex"
+if [ "${USE_QEMU}" = "1" ]; then
+ export IMG_SUFFIX="${IMG_SUFFIX}-qemu"
+fi