Add config file check to see if we create kernel DT sym link to enable use of firmware DT

This commit is contained in:
Peter Robinson 2019-03-30 01:09:06 +00:00
parent d6082cf854
commit 5a26b77b90
1 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,18 @@ KERNEL_VERSION="$2"
#BOOT_DIR_ABS="$3"
#KERNEL_IMAGE="$4"
[ -f /etc/u-boot.conf ] && source /etc/u-boot.conf || true
[ -z "$FIRMWAREDT" ] || FirmwareDT=$FIRMWAREDT
if [[ $FirmwareDT == "True" ]]
then
# if we want to use firmware DT we remove symlink to current kernel DT
if [ -h /boot/dtb ]; then
rm -f /boot/dtb
fi
exit 0
fi
# Setup a /boot/dtb -> /boot/dtb-$newest_kernel_version symlink so that
# u-boot can find the correct dtb to load.
#