bcm2835-bootloader: support multiple distroconfig files in update/release

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2023-02-02 14:02:19 +01:00
parent 813e9a29bb
commit 4337d4ff7e
2 changed files with 11 additions and 7 deletions

View File

@ -47,10 +47,12 @@ else
fi
fi
# Add distro config file
if [ -f $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt ]; then
cp -p $SYSTEM_ROOT/usr/share/bootloader/distroconfig.txt $BOOT_ROOT
# Add distro config files
for distro in "$SYSTEM_ROOT/usr/share/bootloader/distroconfig"*.txt ; do
if [ -f "${distro}" ]; then
cp -p "${distro}" $BOOT_ROOT
fi
done
# mount $BOOT_ROOT r/o
sync

View File

@ -15,6 +15,8 @@ mkdir -p $RELEASE_DIR/3rdparty/bootloader
if [ -f $INSTALL/usr/share/bootloader/config.txt ]; then
cp -PR $INSTALL/usr/share/bootloader/config.txt $RELEASE_DIR/3rdparty/bootloader/
fi
if [ -f $INSTALL/usr/share/bootloader/distroconfig.txt ]; then
cp -PR $INSTALL/usr/share/bootloader/distroconfig.txt $RELEASE_DIR/3rdparty/bootloader/
for distro in "$INSTALL/usr/share/bootloader/distroconfig"*.txt ; do
if [ -f "${distro}" ]; then
cp -PR "${distro}" $RELEASE_DIR/3rdparty/bootloader/
fi
done