Merge pull request #1151 from fewtarius/dev

Only build resource image if we want a resource image.
This commit is contained in:
fewtarius 2023-03-09 17:09:00 -05:00 committed by GitHub
commit e7da036049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,9 +229,9 @@ make_target() {
KERNEL_TARGET="${KERNEL_UIMAGE_TARGET}"
fi
#if [ "${PKG_SOC}" = "rk356x" ]; then
if [ "${TRUST_LABEL}" = "resource" ]; then
kernel_make ${KERNEL_TARGET} ${KERNEL_MAKE_EXTRACMD} ARCH=arm64 ${DEVICE_DTB[0]}.img
#fi
fi
}
makeinstall_target() {
@ -243,12 +243,12 @@ makeinstall_target() {
cp -v ${dtb} ${INSTALL}/usr/share/bootloader
fi
done
#if [ "${PKG_SOC}" = "rk356x" ]; then
if [ "${TRUST_LABEL}" = "resource" ]; then
ARCH=arm64 scripts/mkimg --dtb ${DEVICE_DTB[0]}.dtb
ARCH=arm64 scripts/mkmultidtb.py ${PKG_SOC}
cp -v resource.img ${INSTALL}/usr/share/bootloader
ARCH=${TARGET_ARCH}
#fi
fi
elif [ "${BOOTLOADER}" = "bcm2835-bootloader" ]; then
mkdir -p ${INSTALL}/usr/share/bootloader/overlays