mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-15 11:31:43 +00:00
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:
parent
ed0e5ea92b
commit
971466319a
1 changed files with 41 additions and 0 deletions
41
recipes-bsp/u-boot/u-boot-starfive_v2021.10.bb
Normal file
41
recipes-bsp/u-boot/u-boot-starfive_v2021.10.bb
Normal 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"
|
Loading…
Add table
Reference in a new issue