1
0

Allwinner: Enable DT overlays support

This commit is contained in:
Jernej Skrabec
2020-12-24 18:00:39 +01:00
parent f6c6183a83
commit 7f522fe8dd
3 changed files with 13 additions and 1 deletions
projects/Allwinner

@ -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"