meta-nuvoton: npcm7xx-bootblock: version the download name
Rename the bootblock image as it is being downloaded to contain the
current version string.
Currently, all versions of the bootblock are downloaded with the same
file name. This breaks mirroring and reproducibility of builds since
multiple versions can't be kept in a mirror at once.
Change-Id: Ic77877acb385caaa061b509dc6db2b3ac5d61dea
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
diff --git a/recipes-bsp/images/npcm7xx-bootblock_10.10.09.bb b/recipes-bsp/images/npcm7xx-bootblock_10.10.09.bb
index 3f2178b..22774cf 100644
--- a/recipes-bsp/images/npcm7xx-bootblock_10.10.09.bb
+++ b/recipes-bsp/images/npcm7xx-bootblock_10.10.09.bb
@@ -4,7 +4,7 @@
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-FILENAME = "Poleg_bootblock.bin"
+FILENAME = "Poleg_bootblock_${PV}.bin"
S = "${WORKDIR}"
@@ -20,7 +20,7 @@
inherit deploy
do_deploy () {
- install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/
+ install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Poleg_bootblock.bin
}
addtask deploy before do_build after do_compile