Patchwork [meta-fsl-ppc,25/26] skmm: add recipe

login
register
mail settings
Submitter Ting Liu
Date June 27, 2013, 9:25 a.m.
Message ID <1372325114-4423-16-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52447/
State Accepted
Delegated to: Zhenhua Luo
Headers show

Comments

Ting Liu - June 27, 2013, 9:25 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

SKMM is the application for PCIe endpoint.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-tools/skmm/skmm_git.bb |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 recipes-tools/skmm/skmm_git.bb

Patch

diff --git a/recipes-tools/skmm/skmm_git.bb b/recipes-tools/skmm/skmm_git.bb
new file mode 100644
index 0000000..224e556
--- /dev/null
+++ b/recipes-tools/skmm/skmm_git.bb
@@ -0,0 +1,33 @@ 
+DESCRIPTION = "SKMM application for PCIe endpoint"
+SECTION = "skmm"
+LICENSE = "BSD & GPLv2"
+LIC_FILES_CHKSUM = "file://Makefile;endline=30;md5=39e58bedc879163c9338596e52df5b1f"
+
+DEPENDS = "libedit"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git"
+SRCREV = "80d8393a2033b3b0cc8f885702d7b288956f3a37"
+
+COMPATIBLE_MACHINE = "(p4080ds|t4240qds)"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'MACHINE=${MACHINE}'
+
+export LIBEDIT_CFLAGS="$(pkg-config --cflags libedit)"
+export LIBEDIT_LDFLAGS="$(pkg-config --libs --static libedit)"
+
+do_compile () {
+	export ARCH=${TARGET_ARCH}
+	oe_runmake HOST=x86_64 clean
+	oe_runmake HOST=x86_64
+	oe_runmake HOST=powerpc clean
+	oe_runmake HOST=powerpc
+}
+
+do_install () {
+	oe_runmake ARCH=${TARGET_ARCH} HOST=x86_64 install DESTDIR=${D}
+	oe_runmake ARCH=${TARGET_ARCH} HOST=powerpc install DESTDIR=${D}
+}
+
+FILES_${PN} += "/home/root/.skmm/*"