Add build tagging and rtl8139 network card kernel drivers

This commit is contained in:
markmental 2026-09-10 21:51:07 -04:00
commit f2e7864a00
5 changed files with 86 additions and 5 deletions

28
board/mentalnet/post-image.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
#
# post-image.sh - publish the Mentalnet ISO under a unique build name
#
# Invoked by Buildroot (BR2_ROOTFS_POST_IMAGE_SCRIPT) with the
# binaries directory as first argument.
#
# The ISO is copied to mentalnet-gnulinux-intel32-<stamp>.iso so that
# uploads to hypervisors (Proxmox in particular) can never be confused
# with a previous build's storage volume, and its SHA256 is printed
# for the build log.
set -e
BINARIES_DIR="${1}"
ISO="${BINARIES_DIR}/rootfs.iso9660"
[ -f "${ISO}" ] || exit 0
# reuse the stamp recorded by post-build.sh so the ISO name matches
# the build id visible inside the guest; fall back to a fresh stamp
STAMP="$(cat "${BINARIES_DIR}/.mn-build-stamp" 2>/dev/null || date +%Y%m%d-%H%M%S)"
OUT="${BINARIES_DIR}/mentalnet-gnulinux-intel32-${STAMP}.iso"
cp "${ISO}" "${OUT}"
echo "Published: ${OUT}"
sha256sum "${OUT}"