From: Zhenhua Luo Date: Fri, 14 Dec 2012 20:18:13 +0000 (+0000) Subject: usdpaa: add recipe X-Git-Tag: 2.1~534^2~324 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=bfe7fd6f548546e491c3db9481195a8a30666c53;p=meta-freescale.git usdpaa: add recipe use external git tree to build usdpaa for t4/b4 Signed-off-by: Zhenhua Luo --- 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 index 00000000..697beade --- /dev/null +++ b/meta-fsl-ppc/recipes-tools/usdpaa/usdpaa_git.bb @@ -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"