yaffs2-utils: fix QA warning for GNU_HASH

Add LDFLAGS variable to Makefile so that extra linker flags can be sent
via this variable.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Yi Zhao
2016-08-19 17:27:36 +08:00
committed by Martin Jansa
parent 62799e1a83
commit 7e8eb9a618
2 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
Upstream-Status: Pending
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
diff --git a/utils/Makefile b/utils/Makefile
index 710ebbf..6259893 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -57,10 +57,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYAFFS2IMAGEOBJS) : %.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
mkyaffsimage: $(MKYAFFSIMAGEOBJS) $(COMMONOBJS)
- $(CC) -o $@ $^
+ $(CC) $(LDFLAGS) -o $@ $^
mkyaffs2image: $(MKYAFFS2IMAGEOBJS) $(COMMONOBJS)
- $(CC) -o $@ $^
+ $(CC) $(LDFLAGS) -o $@ $^
clean:

View File

@@ -12,7 +12,10 @@ PV = "0.0+git${SRCPV}"
DEPENDS = "mtd-utils"
# Source is the HEAD of master branch at the time of writing this recipe
SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master"
SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \
file://makefile-add-ldflags.patch \
"
SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578"
S = "${WORKDIR}/git"