# SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_RKBIN="$(get_build_dir rkbin)" PKG_SOC="px30" PKG_DATAFILE="$PKG_RKBIN/bin/rk33/rk3326_ddr_333MHz_v1.15.bin" PKG_LOADER="$PKG_RKBIN/bin/rk33/rk3326_miniloader_v1.20.bin" PKG_BL31="$PKG_RKBIN/bin/rk33/rk3326_bl31_v1.21.elf" PKG_BL32="$PKG_RKBIN/bin/rk33/rk3326_bl32_v1.15.bin" PKG_LOAD_ADDR="0x00200000" if [ -n "$PKG_DATAFILE" -a -n "$PKG_LOADER" ]; then tools/mkimage -n $PKG_SOC -T rksd -d "$PKG_DATAFILE" idbloader.img cat "$PKG_LOADER" >> idbloader.img cp -av idbloader.img $INSTALL/usr/share/bootloader fi if [ -n "$PKG_LOAD_ADDR" ]; then $PKG_RKBIN/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img $PKG_LOAD_ADDR cp -av uboot.img $INSTALL/usr/share/bootloader fi cat >$INSTALL/usr/share/bootloader/boot.ini <trust.ini <trust.ini < "${LE_TMP}/extlinux/$(basename ${dtb}).conf" LABEL ${DISTRO} LINUX /${KERNEL_NAME} FDT /$(basename ${dtb}) APPEND boot=UUID=@BOOT_UUID@ disk=UUID=@DISK_UUID@ quiet ${EXTRA_CMDLINE} EOF cp -a "${LE_TMP}/extlinux/$(basename ${dtb}).conf" $INSTALL/usr/share/bootloader/extlinux done