mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
u-boot: use helper function
This commit is contained in:
parent
2c632fb048
commit
4b358ada4d
@ -55,27 +55,15 @@ makeinstall_target() {
|
|||||||
|
|
||||||
# Only install u-boot.img et al when building a board specific image
|
# Only install u-boot.img et al when building a board specific image
|
||||||
if [ -n "$UBOOT_SYSTEM" ]; then
|
if [ -n "$UBOOT_SYSTEM" ]; then
|
||||||
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/install ]; then
|
find_file_path bootloader/install && . ${FOUND_PATH}
|
||||||
. $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/install
|
|
||||||
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/install ]; then
|
|
||||||
. $PROJECT_DIR/$PROJECT/bootloader/install
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Always install the update script
|
# Always install the update script
|
||||||
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/update.sh ]; then
|
find_file_path bootloader/update.sh && cp -av ${FOUND_PATH} $INSTALL/usr/share/bootloader
|
||||||
cp -av $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/update.sh $INSTALL/usr/share/bootloader
|
|
||||||
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/update.sh ]; then
|
|
||||||
cp -av $PROJECT_DIR/$PROJECT/bootloader/update.sh $INSTALL/usr/share/bootloader
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Always install the canupdate script
|
# Always install the canupdate script
|
||||||
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/canupdate.sh ]; then
|
if find_file_path bootloader/canupdate.sh; then
|
||||||
cp -av $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/canupdate.sh $INSTALL/usr/share/bootloader
|
cp -av ${FOUND_PATH} $INSTALL/usr/share/bootloader
|
||||||
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/canupdate.sh ]; then
|
|
||||||
cp -av $PROJECT_DIR/$PROJECT/bootloader/canupdate.sh $INSTALL/usr/share/bootloader
|
|
||||||
fi
|
|
||||||
if [ -f $INSTALL/usr/share/bootloader/canupdate.sh ]; then
|
|
||||||
sed -e "s/@PROJECT@/${DEVICE:-$PROJECT}/g" \
|
sed -e "s/@PROJECT@/${DEVICE:-$PROJECT}/g" \
|
||||||
-i $INSTALL/usr/share/bootloader/canupdate.sh
|
-i $INSTALL/usr/share/bootloader/canupdate.sh
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user