mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 16:49:53 +00:00
26 lines
807 B
Plaintext
26 lines
807 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
SRCDIR="$BUILD/image/system/usr/share/bootloader"
|
|
DSTDIR="$RELEASE_DIR/3rdparty/bootloader"
|
|
|
|
mkdir -p "$DSTDIR"
|
|
cp -a "$SRCDIR"/*.scr "$SRCDIR"/*script "$DSTDIR"
|
|
|
|
if find_file_path "bootloader/${UBOOT_SYSTEM}.ini"; then
|
|
cp -av "${FOUND_PATH}" "$DSTDIR/boot.ini"
|
|
fi
|
|
|
|
mkdir -p "$DSTDIR/amlogic"
|
|
ln -sf "$DSTDIR/amlogic" "$DSTDIR/dtb"
|
|
case ${DEVICE:-$PROJECT} in
|
|
AMLGX)
|
|
cp -a "$SRCDIR"/*gxbb*.dtb "$DSTDIR/amlogic"
|
|
cp -a "$SRCDIR"/*gxl*.dtb "$DSTDIR/amlogic"
|
|
cp -a "$SRCDIR"/*gxm*.dtb "$DSTDIR/amlogic"
|
|
cp -a "$SRCDIR"/*g12a*.dtb "$DSTDIR/amlogic"
|
|
cp -a "$SRCDIR"/*g12b*.dtb "$DSTDIR/amlogic"
|
|
cp -a "$SRCDIR"/*sm1*.dtb "$DSTDIR/amlogic"
|
|
;;
|
|
esac
|