[meta-freescale] [meta-fsl-arm][PATCH 35/41] fmc: add recipe
ting.liu at nxp.com
ting.liu at nxp.com
Fri Jun 24 03:41:30 PDT 2016
From: Ting Liu <ting.liu at nxp.com>
Signed-off-by: Ting Liu <ting.liu at nxp.com>
---
recipes-dpaa/fmc/fmc_git.bb | 48 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 recipes-dpaa/fmc/fmc_git.bb
diff --git a/recipes-dpaa/fmc/fmc_git.bb b/recipes-dpaa/fmc/fmc_git.bb
new file mode 100644
index 0000000..f9d70bd
--- /dev/null
+++ b/recipes-dpaa/fmc/fmc_git.bb
@@ -0,0 +1,48 @@
+SUMMARY = "Frame Manager Configuration tool"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a504ab5a8ff235e67c7301214749346c"
+
+DEPENDS = "libxml2 fmlib tclap"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/fmc.git;branch=sdk-v1.9.x"
+SRCREV = "a079d2c844edd85dff85a317a63198e7988bcd09"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \
+ FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \
+ TCLAP_HEADER_PATH="${STAGING_INCDIR}" '
+EXTRA_OEMAKE_virtclass-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \
+ FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \
+ TCLAP_HEADER_PATH="${STAGING_INCDIR}" '
+
+EXTRA_OEMAKE_PLATFORM ?= ""
+EXTRA_OEMAKE_PLATFORM_b4 = "b4860qds"
+EXTRA_OEMAKE_PLATFORM_t2 = "b4860qds"
+EXTRA_OEMAKE_PLATFORM_t4 = "b4860qds"
+EXTRA_OEMAKE_PLATFORM_t1 = "t1040qds"
+EXTRA_OEMAKE_PLATFORM_fsl-lsch2 = "ls1043"
+
+do_compile () {
+ oe_runmake MACHINE=${EXTRA_OEMAKE_PLATFORM} -C source
+}
+
+do_install () {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/source/fmc ${D}${bindir}
+
+ install -d ${D}${sysconfdir}/fmc/config
+ install -m 644 ${S}/etc/fmc/config/hxs_pdl_v3.xml ${D}${sysconfdir}/fmc/config
+
+ install -d ${D}/${includedir}/fmc
+ install ${S}/source/fmc.h ${D}${includedir}/fmc
+
+ install -d ${D}${libdir}
+ install ${S}/source/libfmc.a ${D}${libdir}
+}
+
+PARALLEL_MAKE = ""
+BBCLASSEXTEND = "native"
+COMPATIBLE_MACHINE = "(qoriq-ppc|fsl-lsch2)"
--
1.9.2
More information about the meta-freescale
mailing list