[yocto] [meta-chip][PATCH V3 2/4] u-boot-chip: Deploy the sunxi-spl-with-ecc.bin file.
drew.moseley at mender.io
drew.moseley at mender.io
Wed Jun 28 18:12:04 PDT 2017
From: Drew Moseley <drew.moseley at mender.io>
Signed-off-by: Drew Moseley <drew.moseley at mender.io>
---
conf/machine/chip.conf | 1 +
recipes-bsp/u-boot/u-boot-chip_git.bb | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/conf/machine/chip.conf b/conf/machine/chip.conf
index dad1bdb..f053976 100644
--- a/conf/machine/chip.conf
+++ b/conf/machine/chip.conf
@@ -21,6 +21,7 @@ KERNEL_IMAGETYPE = "zImage"
KERNEL_DEVICETREE = "sun5i-r8-chip.dtb"
SPL_BINARY = "sunxi-spl.bin"
+SPL_ECC_BINARY = "sunxi-spl-with-ecc.bin"
UBOOT_BINARY = "u-boot-dtb.bin"
UBOOT_MACHINE = "CHIP_defconfig"
diff --git a/recipes-bsp/u-boot/u-boot-chip_git.bb b/recipes-bsp/u-boot/u-boot-chip_git.bb
index 8e2be50..6de2e9d 100644
--- a/recipes-bsp/u-boot/u-boot-chip_git.bb
+++ b/recipes-bsp/u-boot/u-boot-chip_git.bb
@@ -19,7 +19,13 @@ SRC_URI = " \
S = "${WORKDIR}/git"
do_compile_append() {
+ install ${B}/spl/${SPL_ECC_BINARY} ${B}/${SPL_ECC_BINARY}
install ${B}/spl/${SPL_BINARY} ${B}/${SPL_BINARY}
}
COMPATIBLE_MACHINE = "chip"
+
+do_deploy_append() {
+ install -m 644 ${B}/${SPL_ECC_BINARY} ${DEPLOYDIR}/${SPL_ECC_BINARY}-${PV}-${PR}
+ ln -sf ${SPL_ECC_BINARY}-${PV}-${PR} ${DEPLOYDIR}/${SPL_ECC_BINARY}
+}
--
2.7.4
More information about the yocto
mailing list