mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
u-boot-boundary: Update to v2018.07
From: Ian Coolidge <ian@boundarydevices.com> Compatible with nitrogem8m board Blog post: https://boundarydevices.com/u-boot-v2018-07/ Signed-off-by: Ian Coolidge <ian@boundarydevices.com> Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
66f45b2833
commit
f5573c6b9c
|
@ -1,15 +0,0 @@
|
|||
DESCRIPTION = "U-Boot for Boundary Devices boards"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
|
||||
|
||||
PV = "v2017.03.imx8m+git${SRCPV}"
|
||||
|
||||
SRCREV = "962210405277c99520aa4c5185c5aa2d589fbd1d"
|
||||
SRCBRANCH = "boundary-imx_v2017.03_4.9.51_imx8m_ga"
|
||||
SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit dtc-145
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
@ -1,11 +1,11 @@
|
|||
DESCRIPTION = "U-Boot for Boundary Devices boards"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
|
||||
|
||||
PV = "v2017.07+git${SRCPV}"
|
||||
PV = "v2018.07+git${SRCPV}"
|
||||
|
||||
SRCREV = "445823ef2abfff2fc1c63cc53c57c1e139f88b1b"
|
||||
SRCBRANCH = "boundary-v2017.07"
|
||||
SRCREV = "f35ba6cfbe5a0f039ec14e790e212564e98c84d6"
|
||||
SRCBRANCH = "boundary-v2018.07"
|
||||
SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
|
@ -0,0 +1 @@
|
|||
/dev/mmcblk0boot0 0x1fe000 0x2000 0x1000
|
|
@ -1,7 +1,11 @@
|
|||
require u-boot-boundary-common_${PV}.inc
|
||||
|
||||
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||
DEPENDS = "mtd-utils"
|
||||
DEPENDS += "mtd-utils bison-native"
|
||||
|
||||
FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/arm:"
|
||||
FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/arm:"
|
||||
FILESEXTRAPATHS_prepend_mx8 := "${THISDIR}/${PN}/aarch64:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://fw_env.config \
|
||||
|
@ -15,7 +19,7 @@ inherit uboot-config
|
|||
|
||||
do_compile () {
|
||||
oe_runmake ${UBOOT_MACHINE}
|
||||
oe_runmake env
|
||||
oe_runmake envtools
|
||||
}
|
||||
|
||||
do_install () {
|
|
@ -1,6 +0,0 @@
|
|||
require recipes-bsp/u-boot/u-boot.inc
|
||||
require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
|
||||
|
||||
PROVIDES += "u-boot"
|
||||
|
||||
COMPATIBLE_MACHINE = "(nitrogen8m)"
|
|
@ -1,6 +0,0 @@
|
|||
require recipes-bsp/u-boot/u-boot.inc
|
||||
require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
|
||||
|
||||
PROVIDES += "u-boot"
|
||||
|
||||
COMPATIBLE_MACHINE = "(nitrogen6x-lite|nitrogen6x|nitrogen6sx|nitrogen7)"
|
17
recipes-bsp/u-boot/u-boot-boundary_2018.07.bb
Normal file
17
recipes-bsp/u-boot/u-boot-boundary_2018.07.bb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require recipes-bsp/u-boot/u-boot.inc
|
||||
require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
|
||||
|
||||
DEPENDS += "bison-native"
|
||||
|
||||
PROVIDES += "u-boot"
|
||||
|
||||
BOOT_TOOLS = "imx-boot-tools"
|
||||
|
||||
do_deploy_append_mx8mq () {
|
||||
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
||||
install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
|
||||
install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
|
||||
install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "(nitrogen6x-lite|nitrogen6x|nitrogen6sx|nitrogen7|nitrogen8m)"
|
|
@ -1,45 +0,0 @@
|
|||
require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
|
||||
|
||||
DEPENDS = "u-boot-mkimage-native"
|
||||
|
||||
inherit deploy
|
||||
|
||||
BOOTSCRIPT ??= "${S}/board/boundary/bootscripts/bootscript-yocto.txt"
|
||||
BOOTSCRIPT_use-mainline-bsp ??= "${S}/board/boundary/bootscripts/bootscript-mainline.txt"
|
||||
|
||||
UPGRADESCRIPT = "${S}/board/boundary/bootscripts/upgrade.txt"
|
||||
|
||||
do_mkimage () {
|
||||
uboot-mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 \
|
||||
-n "boot script" -d ${BOOTSCRIPT} ${S}/boot.scr
|
||||
|
||||
uboot-mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 \
|
||||
-n "upgrade script" -d ${UPGRADESCRIPT} ${S}/upgrade.scr
|
||||
}
|
||||
|
||||
addtask mkimage after do_compile before do_install
|
||||
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
do_install () {
|
||||
install -D -m 644 ${S}/boot.scr ${D}/boot.scr
|
||||
install -D -m 644 ${S}/upgrade.scr ${D}/upgrade.scr
|
||||
}
|
||||
|
||||
do_deploy () {
|
||||
install -D -m 644 ${D}/boot.scr \
|
||||
${DEPLOYDIR}/boot.scr-${MACHINE}-${PV}-${PR}
|
||||
install -D -m 644 ${D}/upgrade.scr \
|
||||
${DEPLOYDIR}/upgrade.scr-${MACHINE}-${PV}-${PR}
|
||||
|
||||
cd ${DEPLOYDIR}
|
||||
rm -f boot.scr-${MACHINE} upgrade.scr-${MACHINE}
|
||||
ln -sf boot.scr-${MACHINE}-${PV}-${PR} boot.scr-${MACHINE}
|
||||
ln -sf upgrade.scr-${MACHINE}-${PV}-${PR} upgrade.scr-${MACHINE}
|
||||
}
|
||||
|
||||
addtask deploy after do_install before do_build
|
||||
|
||||
FILES_${PN} += "/"
|
||||
|
||||
COMPATIBLE_MACHINE = "(nitrogen8m)"
|
|
@ -42,4 +42,4 @@ addtask deploy after do_install before do_build
|
|||
|
||||
FILES_${PN} += "/"
|
||||
|
||||
COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite|nitrogen6sx|nitrogen7)"
|
||||
COMPATIBLE_MACHINE = "(nitrogen6x-lite|nitrogen6x|nitrogen6sx|nitrogen7|nitrogen8m)"
|
Loading…
Reference in New Issue
Block a user