Allwinner: Enable DT overlays support
This commit is contained in:
@ -4,9 +4,11 @@
|
||||
SRCDIR="$BUILD/image/system/usr/share/bootloader"
|
||||
DSTDIR="$RELEASE_DIR/3rdparty/bootloader"
|
||||
|
||||
mkdir -p "$DSTDIR"
|
||||
mkdir -p "$DSTDIR/overlays"
|
||||
if [ -n "$UBOOT_SYSTEM" ]; then
|
||||
cp -a "$SRCDIR/u-boot-sunxi-with-spl.bin" "$DSTDIR"
|
||||
fi
|
||||
|
||||
cp -a "$SRCDIR"/sun*-${DEVICE,,}-*.dtb "$DSTDIR"
|
||||
|
||||
cp -a "$SRCDIR"/overlays/sun*-${DEVICE,,}-*.dtbo "$DSTDIR"/overlays
|
||||
|
@ -27,6 +27,13 @@ fi
|
||||
fi
|
||||
done
|
||||
|
||||
# update Device Tree Overlays
|
||||
if [ -d $SYSTEM_ROOT/usr/share/bootloader/overlays ]; then
|
||||
echo "*** updating Device Tree Overlays ..."
|
||||
mkdir -p /flash/overlays
|
||||
cp -p $SYSTEM_ROOT/usr/share/bootloader/overlays/* /flash/overlays
|
||||
fi
|
||||
|
||||
# update bootloader files
|
||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/u-boot-sunxi-with-spl.bin ]; then
|
||||
echo "*** updating U-Boot on: $BOOT_DISK ..."
|
||||
|
@ -61,3 +61,6 @@
|
||||
|
||||
# debug tty path
|
||||
DEBUG_TTY="/dev/console"
|
||||
|
||||
# additional packages to install:
|
||||
ADDITIONAL_PACKAGES="dt-overlays"
|
||||
|
Reference in New Issue
Block a user