[meta-freescale] [meta-fsl-arm][PATCH 41/41] usdpaa-apps: add recipe
ting.liu at nxp.com
ting.liu at nxp.com
Fri Jun 24 03:41:36 PDT 2016
From: Ting Liu <ting.liu at nxp.com>
Signed-off-by: Ting Liu <ting.liu at nxp.com>
---
recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb | 62 +++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
create mode 100644 recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb
diff --git a/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb b/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb
new file mode 100644
index 0000000..c056dea
--- /dev/null
+++ b/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb
@@ -0,0 +1,62 @@
+DESCRIPTION = "User-Space Data-Path Acceleration Architecture Demo Applications"
+LICENSE = "BSD & GPLv2"
+LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=d2a5d894118910d49993347f3f6e0f1e"
+
+inherit pkgconfig
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+DEPENDS = "libxml2 libedit ncurses fmc usdpaa dpa-offload libnl"
+DEPENDS_append_b4 = " ipc-ust"
+
+RDEPENDS_${PN} = "libgcc bash"
+RDEPENDS_${PN}_append_b4 = " ipc-ust"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/usdpaa/usdpaa-apps.git;branch=sdk-v2.0.x"
+SRCREV = "835cbceb4f76de1b493fea5dbe43a90f516b6f35"
+
+S = "${WORKDIR}/git"
+
+WRAP_ARCH ?= "${TARGET_ARCH}"
+WRAP_ARCH_fsl-lsch2 = "arm64"
+EXTRA_OEMAKE = 'CC="${CC}" LD="${LD}" AR="${AR}" ARCH="${WRAP_ARCH}"'
+
+SOC ?= "P4080"
+SOC_b4 = "B4860"
+SOC_t1 = "T1040"
+SOC_t2 = "T2080"
+SOC_t4 = "T4240"
+SOC_fsl-lsch2 = "LS1043"
+
+FMAN_VARIANT ?= "P4080"
+FMAN_VARIANT_b4 = "FMAN_V3H"
+FMAN_VARIANT_t1 = "FMAN_V3L"
+FMAN_VARIANT_t2 = "FMAN_V3H"
+FMAN_VARIANT_t4 = "FMAN_V3H"
+FMAN_VARIANT_fsl-lsch2 = "LS1043"
+
+do_compile_prepend () {
+ export SOC=${SOC}
+ export FMC_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmc"
+ export FMLIB_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/fmd \
+ -I ${STAGING_INCDIR}/fmd/Peripherals \
+ -I ${STAGING_INCDIR}/fmd/integrations \
+ -D${FMAN_VARIANT}"
+ export USDPAA_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/usdpaa"
+ export DPAOFFLOAD_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/dpa-offload"
+ export LIBNL_EXTRA_CFLAGS="-I ${STAGING_INCDIR}/libnl3"
+ export LIBNL_EXTRA_LDFLAGS="-lnl-3 -lnl-route-3"
+ 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 () {
+ export SOC=${SOC}
+ oe_runmake install LIBDIR=${BASELIB} DESTDIR=${D}
+}
+
+PARALLEL_MAKE = ""
+FILES_${PN} += "/root/SOURCE_THIS /usr/etc/"
+COMPATIBLE_MACHINE = "(qoriq-ppc|fsl-lsch2)"
--
1.9.2
More information about the meta-freescale
mailing list