From: Chunrong Guo <chunrong....@nxp.com> --- recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch | 27 +++++++++++++++++++++++ recipes-dpaa2/dce/dce_git.bb | 19 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 recipes-dpaa2/dce/dce/Makefile-obey-LDFLAGS.patch create mode 100644 recipes-dpaa2/dce/dce_git.bb
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 0000000..de8ae0c --- /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....@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 0000000..fb38636 --- /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)" -- 1.9.0 -- _______________________________________________ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale