Patchwork [meta-fsl-ppc,v2,34/38] pkc-firmware: add recipe for sdk v1.6

login
register
mail settings
Submitter ting.liu@freescale.com
Date July 3, 2014, 9:42 a.m.
Message ID <1404380572-14814-35-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/74921/
State Accepted
Headers show

Comments

ting.liu@freescale.com - July 3, 2014, 9:42 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-bsp/pkc-firmware/pkc-firmware_git.bb |   41 ++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 recipes-bsp/pkc-firmware/pkc-firmware_git.bb

Patch

diff --git a/recipes-bsp/pkc-firmware/pkc-firmware_git.bb b/recipes-bsp/pkc-firmware/pkc-firmware_git.bb
new file mode 100644
index 0000000..3cc5d44
--- /dev/null
+++ b/recipes-bsp/pkc-firmware/pkc-firmware_git.bb
@@ -0,0 +1,41 @@ 
+DESCRIPTION = "U-boot firmware for c293pcie support "
+HOMEPAGE = "http://u-boot.sf.net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+
+INHIBIT_DEFAULT_DEPS = "1"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc"
+
+inherit deploy
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/pkc-firmware.git;nobranch=1"
+SRCREV = "b891873c1eea7a7d53f9472ea601712897cb17b7"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
+
+do_compile () {
+    unset LDFLAGS
+    unset CFLAGS
+    unset CPPFLAGS
+    oe_runmake C293QDS_36BIT_SDCARD
+}
+
+do_install(){
+    install -d ${D}${sysconfdir}/crypto/
+    install ${S}/u-boot.bin ${D}${sysconfdir}/crypto/pkc-firmware.bin
+}
+
+do_deploy(){
+    install -d ${DEPLOYDIR}/pkc-firmware
+    install ${S}/u-boot.bin ${DEPLOYDIR}/pkc-firmware/pkc-firmware.bin
+}
+
+addtask deploy after do_install
+
+FILES_{PN} += "/etc/crypto/pkc-firmware.bin"
+COMPATIBLE_MACHINE = "(c293pcie)"
+