u-boot: visionfive2: Add u-boot-starfive_v2021.10

Add u-boot-starfive_v2021.10.bb recipe to build U-Boot v2021.10
from https://github.com/starfive-tech/u-boot

Signed-off-by: Alexey Firago <alexey.firago@gmail.com>
This commit is contained in:
Alexey Firago 2023-03-02 19:10:23 +00:00 committed by Khem Raj
parent ed0e5ea92b
commit 971466319a

View file

@ -0,0 +1,41 @@
require recipes-bsp/u-boot/u-boot-common.inc
require recipes-bsp/u-boot/u-boot.inc
LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
BRANCH:visionfive2 = "JH7110_VisionFive2_devel"
SRC_URI = "git://github.com/starfive-tech/u-boot.git;protocol=https;branch=${BRANCH} \
file://tftp-mmc-boot.txt \
"
SRC_URI:append:visionfive2 = " \
file://uEnv-visionfive2.txt \
"
# tag VF2_v2.11.5
SRCREV:visionfive2 = "688befadf1d337dee3593e6cc0fe1c737cc150bd"
DEPENDS:append = " u-boot-tools-native"
# Overwrite this for your server
TFTP_SERVER_IP ?= "127.0.0.1"
do_configure:prepend() {
sed -i -e 's,@SERVERIP@,${TFTP_SERVER_IP},g' ${WORKDIR}/tftp-mmc-boot.txt
mkimage -O linux -T script -C none -n "U-Boot boot script" \
-d ${WORKDIR}/tftp-mmc-boot.txt ${WORKDIR}/${UBOOT_ENV_BINARY}
}
do_deploy:append:visionfive2() {
install -m 644 ${WORKDIR}/uEnv-visionfive2.txt ${DEPLOYDIR}/uEnv.txt
}
COMPATIBLE_MACHINE = "(visionfive2)"
TOOLCHAIN = "gcc"
# U-boot sets O=... which needs it to build outside of S
B = "${WORKDIR}/build"