projects/Amlogic: amend device trees update

* remove useless mesaage - users will have to use one of device trees we provide and they all include le-dt-id except for C2, where the message is useless
* fix updating device tree for C2
This commit is contained in:
kszaq 2018-01-28 20:29:33 +01:00
parent 7257e584ba
commit ac2da7e857

View File

@ -51,8 +51,6 @@ for arg in $(cat /proc/cmdline); do
if [ -f "/proc/device-tree/le-dt-id" ] ; then
LE_DT_ID=$(cat /proc/device-tree/le-dt-id)
else
echo "*** remember to update your device tree! ***"
fi
if [ -f "$UPDATE_DTB_IMG" ] ; then
@ -76,6 +74,15 @@ for arg in $(cat /proc/cmdline); do
;;
esac
fi
for all_dtb in /flash/*.dtb /flash/DTB; do
dtb=$(basename $all_dtb)
if [ -f $SYSTEM_ROOT/usr/share/bootloader/$dtb ]; then
echo "*** updating Device Tree Blob: $dtb ..."
mount -o rw,remount $BOOT_ROOT
cp -p $SYSTEM_ROOT/usr/share/bootloader/$dtb $BOOT_ROOT
fi
done
;;
disk=*)
echo "*** updating DISK partition label ..."