Move post-build script to configdir

The base Aimee OS build does not need any post-installation tasks.
Custom builds can provide a `post-build.sh` script to implement the
tasks they need.  For example, builds targeting Raspberry Pi devices
can use this script to install the firmware files.
master
Dustin 2023-03-17 10:56:34 -05:00
parent 6b262ca0fb
commit ee408805e2
3 changed files with 12 additions and 7 deletions

View File

@ -5,10 +5,6 @@ set -e
. "${CONFIGDIR:=${PWD}}"/config
cp -uv \
/usr/${target}/boot/*.bin \
/usr/${target}/boot/*.dat \
/usr/${target}/boot/*.elf \
/usr/${target}/usr/share/u-boot/u-boot.bin \
config.txt \
"$1"/efi-part/
if [ -f "${CONFIGDIR}"/post-build.sh ]; then
. "${CONFIGDIR}"/post-build.sh
fi

9
yellow/post-build.sh Normal file
View File

@ -0,0 +1,9 @@
# vim: set ft=sh sw=4 ts=4 sts=4 et :
cp -uv \
/usr/${target}/boot/*.bin \
/usr/${target}/boot/*.dat \
/usr/${target}/boot/*.elf \
/usr/${target}/usr/share/u-boot/u-boot.bin \
"${CONFIGDIR}"/config.txt \
"$1"/efi-part/