]> code.ossystems Code Review - meta-freescale.git/commitdiff
pkc-firmware: add recipe for sdk v1.6
authorZhenhua Luo <zhenhua.luo@freescale.com>
Sat, 14 Jun 2014 06:25:22 +0000 (14:25 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 8 Jul 2014 10:14:48 +0000 (18:14 +0800)
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
meta-fsl-ppc/recipes-bsp/pkc-firmware/pkc-firmware_git.bb [new file with mode: 0644]

diff --git a/meta-fsl-ppc/recipes-bsp/pkc-firmware/pkc-firmware_git.bb b/meta-fsl-ppc/recipes-bsp/pkc-firmware/pkc-firmware_git.bb
new file mode 100644 (file)
index 0000000..3cc5d44
--- /dev/null
@@ -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)"
+