Files
Arch-R/projects/Rockchip/bootloader/release

24 lines
758 B
Plaintext
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
2018-07-16 20:45:36 +02:00
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
2017-11-01 22:57:41 +01:00
2022-09-11 01:06:20 +02:00
SRCDIR="${BUILD}"/image/system/usr/share/bootloader
DSTDIR="${RELEASE_DIR}"/3rdparty/bootloader
mkdir -p "${DSTDIR}"
2022-09-11 01:06:20 +02:00
if [ -n "${UBOOT_SYSTEM}" ]; then
if [ -f "${SRCDIR}"/"${UBOOT_FIT_IMAGE}" ]; then
cp -av "${SRCDIR}"/"${UBOOT_FIT_IMAGE}" "${DSTDIR}" && \
ln -sfv "${UBOOT_FIT_IMAGE}" "${DSTDIR}"/idbloader.img || exit 1
if [ "${ROCKCHIP_LEGACY_BOOT}" = "1" ]; then
touch "${DSTDIR}"/.rockchip_boot_chain_old
else
touch "${DSTDIR}"/.rockchip_boot_chain_new
2017-11-01 22:57:41 +01:00
fi
2022-09-11 01:06:20 +02:00
else
echo "release: bootloader image ${SRCDIR}/${UBOOT_FIT_IMAGE} does not exist."
exit 1
2017-11-01 22:57:41 +01:00
fi
2022-09-11 01:06:20 +02:00
fi
2017-11-01 22:57:41 +01:00
2022-09-11 01:06:20 +02:00
cp -av "${SRCDIR}"/"${DEVICE,,}"*.dtb "${DSTDIR}"