50 lines
1.4 KiB
BlitzBasic
50 lines
1.4 KiB
BlitzBasic
# Copyright (C) 2022-2024 Digi International
|
|
|
|
require u-boot-dey.inc
|
|
LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
|
|
|
|
DEPENDS += "flex-native bison-native"
|
|
DEPENDS += "python3-setuptools-native"
|
|
|
|
SRCBRANCH = "v2021.10/master"
|
|
SRCREV = "${AUTOREV}"
|
|
|
|
UBOOT_FIT_CFG_FRAGMENTS = " \
|
|
file://fit_legacy.cfg \
|
|
file://fit_signature.cfg \
|
|
"
|
|
|
|
SRC_URI += " \
|
|
${@oe.utils.conditional('TRUSTFENCE_SIGN', '1', '${UBOOT_FIT_CFG_FRAGMENTS}', '', d)} \
|
|
"
|
|
|
|
install_helper_files() {
|
|
# Install UBOOT_ENV_BINARY to datadir, so that kernel can use it
|
|
# to include it into the FIT image.
|
|
if [ -f "${D}/boot/${UBOOT_ENV_BINARY}" ]; then
|
|
install -Dm 0644 ${D}/boot/${UBOOT_ENV_BINARY} ${D}${datadir}/${UBOOT_ENV_IMAGE}
|
|
ln -sf ${UBOOT_ENV_IMAGE} ${D}${datadir}/${UBOOT_ENV_BINARY}
|
|
else
|
|
bbwarn "${D}/boot/${UBOOT_ENV_BINARY} not found"
|
|
fi
|
|
|
|
# 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 [ "${TRUSTFENCE_FIT_IMG}" = "1" ]; then
|
|
install_helper_files
|
|
fi
|
|
}
|
|
|
|
COMPATIBLE_MACHINE = "(ccmp1)"
|