mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Allwinner: Enable DT overlays support
This commit is contained in:
parent
f6c6183a83
commit
7f522fe8dd
@ -4,9 +4,11 @@
|
|||||||
SRCDIR="$BUILD/image/system/usr/share/bootloader"
|
SRCDIR="$BUILD/image/system/usr/share/bootloader"
|
||||||
DSTDIR="$RELEASE_DIR/3rdparty/bootloader"
|
DSTDIR="$RELEASE_DIR/3rdparty/bootloader"
|
||||||
|
|
||||||
mkdir -p "$DSTDIR"
|
mkdir -p "$DSTDIR/overlays"
|
||||||
if [ -n "$UBOOT_SYSTEM" ]; then
|
if [ -n "$UBOOT_SYSTEM" ]; then
|
||||||
cp -a "$SRCDIR/u-boot-sunxi-with-spl.bin" "$DSTDIR"
|
cp -a "$SRCDIR/u-boot-sunxi-with-spl.bin" "$DSTDIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -a "$SRCDIR"/sun*-${DEVICE,,}-*.dtb "$DSTDIR"
|
cp -a "$SRCDIR"/sun*-${DEVICE,,}-*.dtb "$DSTDIR"
|
||||||
|
|
||||||
|
cp -a "$SRCDIR"/overlays/sun*-${DEVICE,,}-*.dtbo "$DSTDIR"/overlays
|
||||||
|
@ -27,6 +27,13 @@ fi
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
# update bootloader files
|
||||||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/u-boot-sunxi-with-spl.bin ]; then
|
if [ -f $SYSTEM_ROOT/usr/share/bootloader/u-boot-sunxi-with-spl.bin ]; then
|
||||||
echo "*** updating U-Boot on: $BOOT_DISK ..."
|
echo "*** updating U-Boot on: $BOOT_DISK ..."
|
||||||
|
@ -61,3 +61,6 @@
|
|||||||
|
|
||||||
# debug tty path
|
# debug tty path
|
||||||
DEBUG_TTY="/dev/console"
|
DEBUG_TTY="/dev/console"
|
||||||
|
|
||||||
|
# additional packages to install:
|
||||||
|
ADDITIONAL_PACKAGES="dt-overlays"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user