{statusMsg}
- >
+
);
}
diff --git a/install-eggs-arm.sh b/install-eggs-arm.sh
new file mode 100644
index 0000000..fbd5da6
--- /dev/null
+++ b/install-eggs-arm.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# install-eggs.sh
+#
+# Local installer of CHICKEN eggs required for building.
+#
+# ISC License
+#
+# Copyright 2023 Brmlab, z.s.
+# Dominik Pantůček
+#
+# Permission to use, copy, modify, and/or distribute this software
+# for any purpose with or without fee is hereby granted, provided
+# that the above copyright notice and this permission notice appear
+# in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
+# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+# Source root directory
+owd=$(pwd)
+cd $(dirname "$0")
+SRCDIR=$(pwd)
+cd "$owd"
+
+# Make temporary prefix directory (eggs shared throwaway files)
+TMPDIR=$(mktemp -d)
+
+# Installs given egg locally
+chicken_install() {
+ echo "Installing $1 ..."
+ # CHICKEN_INSTALL_PREFIX="$TMPDIR" \
+ # CHICKEN_REPOSITORY_PATH="$SRCDIR/eggs-arm":`./cross-chicken-arm/bin/arm-chicken-install -repository` \
+ # CHICKEN_INSTALL_REPOSITORY="$SRCDIR/eggs-arm" \
+ # ./cross-chicken-arm/bin/arm-chicken-install "$1" 2>&1 | \
+ # sed -u 's/^/ /'
+# CHICKEN_INSTALL_PREFIX="$TMPDIR" \
+ ./cross-chicken-arm/bin/arm-chicken-install "$1" 2>&1 | \
+ sed -u 's/^/ /'
+}
+
+# Removes throwaway files
+chicken_cleanup() {
+ echo "Cleaning up ..."
+ rm -fr ${TMPDIR}
+}
+
+# Always cleanup
+trap chicken_cleanup INT QUIT
+
+# Install required eggs
+chicken_install spiffy
+chicken_install openssl
+chicken_install postgresql
+
+# Normal termination cleanup
+chicken_cleanup
diff --git a/install-eggs.sh b/install-eggs.sh
index 08c098c..2bcb95c 100644
--- a/install-eggs.sh
+++ b/install-eggs.sh
@@ -57,7 +57,6 @@ chicken_install openssl
chicken_install spiffy
chicken_install postgresql
chicken_install json
-chicken_install posix-groups
# Normal termination cleanup
chicken_cleanup
diff --git a/tools/build-in-qemu.sh b/tools/build-in-qemu.sh
index ebd2093..a14913f 100644
--- a/tools/build-in-qemu.sh
+++ b/tools/build-in-qemu.sh
@@ -1,28 +1,4 @@
#!/bin/sh
-#
-# build-in-qemu.sh
-#
-# Expects running armhf qemu system, builds the binary inside.
-#
-# ISC License
-#
-# Copyright 2025 Brmlab, z.s.
-# Dominik Pantůček
-#
-# Permission to use, copy, modify, and/or distribute this software
-# for any purpose with or without fee is hereby granted, provided
-# that the above copyright notice and this permission notice appear
-# in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
-# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
-# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
-# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
if [ -z "$1" ] ; then
echo "Usage: $0 password"
diff --git a/tools/run-build-qemu-system.sh b/tools/run-build-qemu-system.sh
deleted file mode 100644
index c76d8b8..0000000
--- a/tools/run-build-qemu-system.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-#
-# run-build-qemu-system.sh
-#
-# Runs the emulated armhf system for building the application.
-#
-# ISC License
-#
-# Copyright 2025 Brmlab, z.s.
-# Dominik Pantůček
-#
-# Permission to use, copy, modify, and/or distribute this software
-# for any purpose with or without fee is hereby granted, provided
-# that the above copyright notice and this permission notice appear
-# in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
-# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
-# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
-# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
-# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-
-qemu-system-armhf \
- -machine raspi2b \
- -nographic \
- -dtb bcm2710-rpi-3-b-plus.dtb \
- -m 1G \
- -smp 4 \
- -kernel kernel7.img \
- -sd 2019-04-08-raspbian-stretch.img \
- -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootdelay=1 dwc_otg.fiq_fsm_enable=0" \
- -usb \
- -device usb-net,netdev=net0 \
- -netdev user,id=net0,hostfwd=tcp::2222-:22