]> code.ossystems Code Review - meta-freescale.git/commitdiff
ppfe-firmware: update recipes
authorChunrong Guo <chunrong.guo@nxp.com>
Thu, 9 Nov 2017 04:11:15 +0000 (12:11 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 10 Nov 2017 15:57:12 +0000 (13:57 -0200)
*Deploy the binary in ls1012a/u-boot/ folder as it is standalone
The ppfe-firmware is a standalone tool, deploy the binary like
other images like u-boot/kernel/rcw.

*fix missing binary in ls1012a/u-boot/ folder

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb

index ab0015a19dda9a4c4b6c3b933d70d56fef05476f..9c93d3333595f33a8cfe5bf6a4756008da3e53c0 100644 (file)
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://Freescale-Binary-EULA;md5=f1c407c0fccab5cd0bf9b92565f
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+inherit deploy
+
 SRC_URI = "git://github.com/qoriq-open-source/engine-pfe-bin.git;nobranch=1"
 SRCREV = "97cd13d3070d7199e62881bc495b332194b67edd"
 
@@ -11,11 +13,20 @@ S = "${WORKDIR}/git"
 
 do_install () {
     install -d ${D}/lib/firmware
+    install -d ${D}/boot/engine-pfe-bin
     install -m 644 ${S}/Freescale-Binary-EULA ${D}/lib/firmware
     install -m 755 ${S}/ls1012a/slow_path/*.elf ${D}/lib/firmware
+    install -m 755 ${S}/ls1012a/u-boot/* ${D}/boot/engine-pfe-bin
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/engine-pfe-bin
+    cp -r ${D}/boot/engine-pfe-bin/* ${DEPLOYDIR}/engine-pfe-bin
 }
 
-FILES_${PN} += "/lib/firmware"
+addtask deploy after do_install
+
+FILES_${PN} += "/lib/firmware /boot/"
 INSANE_SKIP_${PN} += "arch already-stripped"
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_SYSROOT_STRIP = "1"