diff mbox

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

Message ID 8ea37c4933defe39037016edaebf8ed6fd73e1c8.1388663778.git.christian.braunersorensen@prevas.dk
State Superseded
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 2, 2014, 11:57 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} \