]> code.ossystems Code Review - meta-freescale.git/commitdiff
usdpaa: add recipe
authorZhenhua Luo <zhenhua.luo@freescale.com>
Fri, 14 Dec 2012 20:18:13 +0000 (20:18 +0000)
committerMatthew McClintock <msm@freescale.com>
Wed, 30 Jan 2013 23:11:01 +0000 (17:11 -0600)
use external git tree to build usdpaa for t4/b4

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
meta-fsl-ppc/recipes-tools/usdpaa/usdpaa_git.bb [new file with mode: 0644]

diff --git a/meta-fsl-ppc/recipes-tools/usdpaa/usdpaa_git.bb b/meta-fsl-ppc/recipes-tools/usdpaa/usdpaa_git.bb
new file mode 100644 (file)
index 0000000..697bead
--- /dev/null
@@ -0,0 +1,33 @@
+DESCRIPTION = "User-Space Data-Path Acceleration Architecture drivers"
+SECTION = "usdpaa"
+LICENSE = "BSD & GPLv2"
+LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
+
+inherit pkgconfig
+
+DEPENDS = "libxml2 libedit ncurses readline flib"
+RDEPENDS_${PN} = "libgcc"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa.git"
+SRCREV = "53c621f783c9d10d46828854120a3ebd58389779"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'V=1 CC="${CC}" LD="${LD}" AR="${AR}"'
+
+do_compile_prepend () {
+       export ARCH=${TARGET_ARCH}
+       export LIBXML2_CFLAGS="$(pkg-config --cflags libxml-2.0)"
+       export LIBXML2_LDFLAGS="$(pkg-config --libs --static libxml-2.0)"
+       export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
+       export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
+}
+
+do_install () {
+       oe_runmake ARCH=${TARGET_ARCH} install DESTDIR=${D}
+}
+
+PARALLEL_MAKE_pn-${PN} = ""
+
+FILES_${PN} += "/root/SOURCE_THIS /usr/etc/"
+RDEPENDS_${PN} += "bash"