aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-30 09:09:12 -0700
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2019-08-30 20:59:16 +0200
commit9ffc7bdb244101da949adba8dda4c84758840e52 (patch)
tree8ae475eeff281dceff7069a051df65bf3b03b239
parent47a485d00bc7c2c05e132645eef2ca649ddcd502 (diff)
downloadmeta-qcom-9ffc7bdb244101da949adba8dda4c84758840e52.tar.gz
meta-qcom-9ffc7bdb244101da949adba8dda4c84758840e52.tar.bz2
meta-qcom-9ffc7bdb244101da949adba8dda4c84758840e52.zip
qdl: Fix QA Issue: No GNU_HASH in the ELF binary
This is because of LDFLAGS and CFLAGS being overwritten in Makefile as a result we missing hash-style option Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 33644274f258a5fc2156d0acab0d2715c33943ce)
-rw-r--r--recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch22
1 files changed, 13 insertions, 9 deletions
diff --git a/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch b/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
index d5f63c4..2aca181 100644
--- a/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
+++ b/recipes-devtools/qdl/files/0001-Makefile-Use-pkg-config-for-libxml2-detection.patch
@@ -12,20 +12,24 @@ Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
-diff --git a/Makefile b/Makefile
-index 0a934ff..f18393d 100644
--- a/Makefile
+++ b/Makefile
-@@ -1,7 +1,7 @@
+@@ -1,14 +1,14 @@
OUT := qdl
-CFLAGS := -O2 -Wall -g `xml2-config --cflags`
-LDFLAGS := `xml2-config --libs` -ludev
-+CFLAGS := -O2 -Wall -g `pkg-config --cflags libxml-2.0`
-+LDFLAGS := `pkg-config --libs libxml-2.0` -ludev
- prefix := /usr/local
+-prefix := /usr/local
++CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0`
++LDFLAGS += `pkg-config --libs libxml-2.0` -ludev
++prefix ?= /usr/local
SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c
---
-2.23.0
-
+ OBJS := $(SRCS:.c=.o)
+
+ $(OUT): $(OBJS)
+- $(CC) -o $@ $^ $(LDFLAGS)
++ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+ clean:
+ rm -f $(OUT) $(OBJS)