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.
This commit is contained in:
@@ -5,10 +5,6 @@ set -e
|
|||||||
|
|
||||||
. "${CONFIGDIR:=${PWD}}"/config
|
. "${CONFIGDIR:=${PWD}}"/config
|
||||||
|
|
||||||
cp -uv \
|
if [ -f "${CONFIGDIR}"/post-build.sh ]; then
|
||||||
/usr/${target}/boot/*.bin \
|
. "${CONFIGDIR}"/post-build.sh
|
||||||
/usr/${target}/boot/*.dat \
|
fi
|
||||||
/usr/${target}/boot/*.elf \
|
|
||||||
/usr/${target}/usr/share/u-boot/u-boot.bin \
|
|
||||||
config.txt \
|
|
||||||
"$1"/efi-part/
|
|
||||||
|
|||||||
9
yellow/post-build.sh
Normal file
9
yellow/post-build.sh
Normal 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/
|
||||||
Reference in New Issue
Block a user