Files
meta-pengwyn/recipes-bsp/u-boot-tools_2023.01.bb
T

75 lines
2.6 KiB
BlitzBasic

require u-boot-tools.inc
FILESEXTRAPATHS:prepend := "${THISDIR}/files2:"
SRC_URI = " \
${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH} \
file://board.c \
file://board.h \
file://Kconfig \
file://MAINTAINERS \
file://Makefile \
file://mux.c \
file://am335x_pengwyn.h \
file://am335x-pengwyn.dts \
file://am335x-pengwyn-u-boot.dtsi \
file://0001-add-pengwyn-dts-to-makefile.patch \
file://0002-add-target-pengwyn.patch \
file://0003-misc-board-failed.patch \
file://0010-log-compile-err.patch \
file://0021-debug.patch \
"
# Pengwyn defconfig
SRC_URI += " \
file://defconfig/pengwyn_fit_kern_defconfig \
file://defconfig/pengwyn_fit_uboot_defconfig \
file://defconfig/pengwyn_fitimage_defconfig \
file://defconfig/pengwyn_dmverity_defconfig \
file://defconfig/pengwyn_defconfig \
"
# U-Boot environment variables file
SRC_URI += " \
file://env/uEnv_fit_kern_verity.txt \
file://env/uEnv_fit_kernel.txt \
file://env/uEnv_verity.txt \
file://env/uEnv.txt \
"
# Tag: v2023.01
SRCREV = "62e2ad1ceafbfdf2c44d3dc1b6efc81e768a96b9"
S = "${WORKDIR}/git"
do_configure:prepend() {
install -d ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/board.c ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/board.h ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/Kconfig ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/MAINTAINERS ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/Makefile ${S}/board/silica/pengwyn
install -m 0644 ${WORKDIR}/mux.c ${S}/board/silica/pengwyn
install -d ${S}/configs
if [ "${SCLE_DM_VERITY}" = '1' ]; then
if [ "${KERNEL_IMAGETYPE}" = "fitImage" ]; then
install -m 0644 ${WORKDIR}/defconfig/pengwyn_fitimage_defconfig ${S}/configs/pengwyn_defconfig
else
install -m 0644 ${WORKDIR}/defconfig/pengwyn_dmverity_defconfig ${S}/configs/pengwyn_defconfig
fi
else
if [ "${KERNEL_IMAGETYPE}" = "fitImage" ]; then
install -m 0644 ${WORKDIR}/defconfig/pengwyn_fitimage_defconfig ${S}/configs/pengwyn_defconfig
else
install -m 0644 ${WORKDIR}/defconfig/pengwyn_defconfig ${S}/configs/pengwyn_defconfig
fi
fi
install -d ${S}/include/configs/
install -m 0644 ${WORKDIR}/am335x_pengwyn.h ${S}/include/configs/
install -d ${S}/arch/arm/dts
install -m 0644 ${WORKDIR}/am335x-pengwyn.dts ${S}/arch/arm/dts
install -m 0644 ${WORKDIR}/am335x-pengwyn-u-boot.dtsi ${S}/arch/arm/dts
}