diff mbox

[2/4] dupdate-image: if fwupdate is present, copy it into the image

Message ID bdbd8b07a280f68dfabc157040e70aca69daf1e7.1388736224.git.christian.braunersorensen@prevas.dk
State Superseded
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 3, 2014, 8:04 a.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 classes/dupdate-image.oeclass | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox

Patch

diff --git a/classes/dupdate-image.oeclass b/classes/dupdate-image.oeclass
index f8af6a2..3f94b0b 100644
--- a/classes/dupdate-image.oeclass
+++ b/classes/dupdate-image.oeclass
@@ -63,6 +63,13 @@  do_rstage_dupdate_script () {
 }
 do_rstage_dupdate_script[dirs] = "${RSTAGE_DIR}"
 
+do_rstage[postfuncs] += "do_rstage_fwupdate"
+do_rstage_fwupdate () {
+    if [ -f ${SRCDIR}/fwupdate ]; then
+        cp ${SRCDIR}/fwupdate ${RSTAGE_DIR}
+    fi
+}
+
 do_deploy[postfuncs] += "do_deploy_dupdate_image"
 do_deploy_dupdate_image () {
 	install -m 664 ${B}/${IMAGE_BASENAME}${DUPDATE_IMAGE_EXT} \