Files
Arch-R/projects/Amlogic/bootloader/release
Andre Heider a93d8ffadc image: clean up bootloader/release files
All required bootloader files are already copied by the u-boot package
(using the corresponding bootloader/install script) to the system's
/usr/share/bootloader directory. The dtb files are copied by the linux
package to the same spot.

Use that single source for the release tarballs instead of various
build directories.
2020-02-10 08:53:39 +01:00

29 lines
771 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/dtb"
case ${DEVICE:-$PROJECT} in
AMLGX)
cp -a "$SRCDIR"/*gxbb*.dtb "$DSTDIR/dtb"
cp -a "$SRCDIR"/*gxl*.dtb "$DSTDIR/dtb"
cp -a "$SRCDIR"/*gxm*.dtb "$DSTDIR/dtb"
;;
AMLG12)
cp -a "$SRCDIR"/*g12a*.dtb "$DSTDIR/dtb"
cp -a "$SRCDIR"/*g12b*.dtb "$DSTDIR/dtb"
;;
*)
cp -a "$SRCDIR"/*.dtb "$DSTDIR/dtb"
;;
esac