[yocto] [meta-chip][RFC PATCH 1/3] u-boot-chip: Deploy the sunxi-spl-with-ecc.bin file.
drew.moseley at mender.io
drew.moseley at mender.io
Fri Jun 16 14:15:38 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 0a45a2f..8f54067 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..f12fae6 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}
+}
\ No newline at end of file
--
2.7.4
More information about the yocto
mailing list