mux-server: Fix build warnings caused by external toolchain
PATCH 1/1 mux-server: Fix build warnings caused by external toolchain
This patch resolves the warning:
QA Issue: No GNU_HASH in the elf binary
caused by external toolchain sourcery.
--- ...001-Makefile-Fix-the-warning-during-build.patch | 31 ++++++++++++++++++++++ .../mux-server/mux-server_1.02.bb | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 recipes-virtualization/mux-server/mux-server/0001-Makefile-Fix-the-warning-during-build.patch
recipes-virtualization/mux-server/mux-server/0001-Makefile-Fix-the-warning-during-build.patch new file +31 -0
@@ -0,0 +1,31 @@ +From bcb58c751a7ff82095642d2c9424a7ae18bca3c6 Mon Sep 17 00:00:00 2001 +From: Sujith Haridasan <[email protected]> +Date: Wed, 27 Apr 2016 16:49:09 +0530 +Subject: [PATCH] Makefile: Fix the warning during build + +Fix QA Issue: No GNU_HASH in the elf binary +This warning is caused when built with external +toolchain sourcery. + +Signed-off-by: Sujith H <[email protected]> +Signed-off-by: Sujith Haridasan <[email protected]> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index c41030d..fa69b6f 100644 +--- a/Makefile ++++ b/Makefile +@@ -36,7 +36,7 @@ HOSTCC_OPTS_C= -Wall \ + all: mux_server + + mux_server: mux_server.c +- $(HOSTCC) $(HOSTCC_OPTS) $(HOSTCC_OPTS_C) -o $@ $< -lpthread ++ $(HOSTCC) $(HOSTCC_OPTS) $(HOSTCC_OPTS_C) -o $@ $< -lpthread ${LDFLAGS} + + clean: + rm -f mux_server +-- +1.9.1 +
recipes-virtualization/mux-server/mux-server_1.02.bb +3 -1
@@ -3,7 +3,9 @@ SECTION = "mux-server" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "git://git.freescale.com/ppc/sdk/hypervisor/mux_server.git;branch=master" +SRC_URI = "git://git.freescale.com/ppc/sdk/hypervisor/mux_server.git;branch=master \ + file://0001-Makefile-Fix-the-warning-during-build.patch \ + " SRCREV = "3e4c6a44a81bb5cf2996830e8034d26850f80efc" S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
Quoted 4 lines · Sujith Haridasan
This patch resolves the warning:
QA Issue: NoGNU_HASHin the elf binary
caused by external toolchain sourcery.
To clarify, It's not caused by the sourcery external toolchain, and it'll likely be hit with any external toolchain, not just the Sourcery one.
The fundamental issue is mux-server wasn't obeying LDFLAGS from the buildsystem. That is a bug regardless. It just only generates a QA error with toolchains that didn't have their GNU_HASH set by default (the internal toolchain does so).
This is fairly common, and we've been submitting fixes for these to a variety of layers ovr the years. Due to the default behavior of the internal toolchain, not obeying LDFLAGS is easily missed / silent. I might propose changing that default behavior to poison the build to help make these more visible, at some point.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 11 lines · Christopher Larson
Quoted 4 lines · Sujith Haridasan
This patch resolves the warning:
QA Issue: NoGNU_HASHin the elf binary
caused by external toolchain sourcery.To clarify, It's not caused by the sourcery external toolchain, and it'll likely be hit with any external toolchain, not just the Sourcery one.
I have verified with poky and sourcery only. And that's the reason I have mentioned about it.
Quoted 6 lines
The fundamental issue is mux-server wasn't obeying LDFLAGS from the buildsystem. That is a bug regardless. It just only generates a QA error with toolchains that didn't have their
GNU_HASHset by default (the internal toolchain does so).
Quoted 6 lines
This is fairly common, and we've been submitting fixes for these to a variety of layers ovr the years. Due to the default behavior of the internal toolchain, not obeying LDFLAGS is easily missed / silent. I might propose changing that default behavior to poison the build to help make these more visible, at some point.
I have posted another patch in which I have removed the word "sourcery". My intention was not to hurt sourcery product. Lets not discuss further on this and wait for the response of maintainer regarding my next patch posted.
Quoted 7 lines
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Signature · 7 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project <Project>Contributor to Yocto project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info C-x C-c