Skip to content
Snippets Groups Projects
Commit bc9e1635 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

u-boot-imx: Add recipe for v2021.04 to keep it after meta-freescale upgrade

meta-frescale now uses a newer version of u-boot. We keep the old recipe
here until we also updated u-boot for our devices.
parent f79fbee6
No related branches found
No related tags found
1 merge request!270u-boot-imx: Add copy of 2021.04 version to keep it after layer upgrade.
Pipeline #27875 passed with stage
in 13 seconds
DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRCBRANCH = "lf_v2021.04"
SRC_URI = "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https;branch=${SRCBRANCH}"
SRCREV = "263b27e076a0f6e5dcc80227a235f0af73718342"
LOCALVERSION ?= "-imx_v2021.04_5.10.72_2.2.0"
DEPENDS += "flex-native bison-native bc-native dtc-native"
S = "${WORKDIR}/git"
B = "${WORKDIR}/build"
inherit fsl-u-boot-localversion
BOOT_TOOLS = "imx-boot-tools"
# Copyright (C) 2013-2016 Freescale Semiconductor
# Copyright 2018 (C) O.S. Systems Software LTDA.
# Copyright (C) 2017-2021 NXP
require recipes-bsp/u-boot/u-boot.inc
require u-boot-imx-common_${PV}.inc
PROVIDES += "u-boot"
inherit uuu_bootloader_tag
UUU_BOOTLOADER = ""
UUU_BOOTLOADER:mx6-nxp-bsp = "${UBOOT_BINARY}"
UUU_BOOTLOADER:mx7-nxp-bsp = "${UBOOT_BINARY}"
UUU_BOOTLOADER_TAGGED = ""
UUU_BOOTLOADER_TAGGED:mx6-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}"
UUU_BOOTLOADER_TAGGED:mx7-nxp-bsp = "u-boot-tagged.${UBOOT_SUFFIX}"
do_deploy:append:mx8m-nxp-bsp() {
# Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary
if [ -n "${UBOOT_CONFIG}" ]
then
for config in ${UBOOT_MACHINE}; do
i=$(expr $i + 1);
for type in ${UBOOT_CONFIG}; do
j=$(expr $j + 1);
if [ $j -eq $i ]
then
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type}
fi
done
unset j
done
unset i
fi
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment