44 lines
1.3 KiB
BlitzBasic
44 lines
1.3 KiB
BlitzBasic
# Copyright (C) 2024,2025, Digi International Inc.
|
|
|
|
require u-boot-dey.inc
|
|
LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
|
|
|
|
DEPENDS += "flex-native bison-native"
|
|
DEPENDS += "python3-setuptools-native"
|
|
|
|
SRCBRANCH = "v2023.10/maint"
|
|
SRCREV = "${AUTOREV}"
|
|
|
|
SRC_URI += " \
|
|
${@oe.utils.conditional('TRUSTFENCE_SIGN_FIT_STM', '1', 'file://fit_signature.cfg', '', d)} \
|
|
"
|
|
|
|
SRC_URI:append:ccmp15 = " \
|
|
${@oe.utils.conditional('TRUSTFENCE_COPRO_ENABLED', '1' , 'file://0001-ARM-dts-ccmp15-add-signed-firmware-support-for-RPROC.patch', '', d)} \
|
|
"
|
|
|
|
SRC_URI:append:ccmp25 = " \
|
|
${@oe.utils.conditional('TRUSTFENCE_COPRO_ENABLED', '1' , 'file://0001-ARM-dts-ccmp25-add-signed-firmware-support-for-RPROC.patch', '', d)} \
|
|
"
|
|
|
|
install_helper_files() {
|
|
# Install dtbs from UBOOT_DEVICETREE to datadir, so that kernel
|
|
# can use it for signing, and kernel will deploy after signs it.
|
|
if [ -n "${UBOOT_DEVICETREE}" ]; then
|
|
for devicetree in ${UBOOT_DEVICETREE}; do
|
|
install -Dm 0644 ${B}/${config}/arch/arm/dts/${devicetree}.dtb ${D}${datadir}/${devicetree}.dtb
|
|
done
|
|
else
|
|
bbwarn "${UBOOT_DEVICETREE} not found"
|
|
fi
|
|
}
|
|
|
|
do_install:append() {
|
|
# Copy additional files, so kernel can use it when creating the FIT image
|
|
if [ "${KERNEL_IMAGETYPE}" = "fitImage" ]; then
|
|
install_helper_files
|
|
fi
|
|
}
|
|
|
|
COMPATIBLE_MACHINE = "(ccmp2|ccmp1)"
|