aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-dpaa2
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2017-04-19 15:56:36 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2017-05-02 17:54:58 -0300
commit447567249094f977464e4848815f46e76a4a8af9 (patch)
tree10f006acfa84b1c06e8a30c289698fda3430f6c2 /recipes-dpaa2
parentd90fd90c278d7960881a27aac43ff9ca678a5805 (diff)
downloadmeta-freescale-447567249094f977464e4848815f46e76a4a8af9.tar.gz
meta-freescale-447567249094f977464e4848815f46e76a4a8af9.tar.bz2
meta-freescale-447567249094f977464e4848815f46e76a4a8af9.zip
dce: add recipes
Signed-off-by: Chunrong Guo <B40290@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-dpaa2')
-rw-r--r--recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch27
-rw-r--r--recipes-dpaa2/dce/dce_git.bb19
2 files changed, 46 insertions, 0 deletions
diff --git a/recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch b/recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch
new file mode 100644
index 00000000..de8ae0c8
--- /dev/null
+++ b/recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch
@@ -0,0 +1,27 @@
+Subject: [PATCH] Makefile:Obey LDFLAGS in Makefile
+
+This avoids a "QA Issue: No GNU_HASH in the elf binary"
+
+Upstream-Status: Pending
+
+Signed-off-by:Chunrong Guo <chunrong.guo@nxp.com>
+
+--- a/Makefileold 2017-04-19 15:32:36.512525035 +0800
++++ b/Makefile 2017-04-19 15:34:29.560521121 +0800
+@@ -46,13 +46,13 @@
+ all: basic_dce_test basic_dce_perf basic_dce_sanity
+
+ basic_dce_test: tests/basic_dce_test.o libdce.a
+- $(CC) $(CFLAGS) $^ -o $@
++ $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
+
+ basic_dce_perf: tests/basic_dce_perf.o libdce.a
+- $(CC) $(CFLAGS) $^ -o $@
++ $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
+
+ basic_dce_sanity: tests/basic_dce_sanity.o libdce.a
+- $(CC) $(CFLAGS) $^ -o $@
++ $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
+
+ libdce.a: $(OBJS)
+ $(AR) rcs $@ $(OBJS)
diff --git a/recipes-dpaa2/dce/dce_git.bb b/recipes-dpaa2/dce/dce_git.bb
new file mode 100644
index 00000000..fb38636e
--- /dev/null
+++ b/recipes-dpaa2/dce/dce_git.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Decompression Compression Engine Userspace Utils"
+SECTION = "dpaa2"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3bb80dec5c1b94d99a1422cbfd96192c"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/dce.git;nobranch=1 \
+ file://Makefile-obey-LDFLAGS.patch \
+"
+SRCREV = "c31f81667f5cebb3e5331c50655473301672e4de"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
+
+do_install () {
+ oe_runmake install DESTDIR=${D}
+}
+
+COMPATIBLE_MACHINE = "(ls2080a|ls2088a)"