diff options
Diffstat (limited to 'meta-filesystems/recipes-filesystems/yaffs2')
-rw-r--r-- | meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/makefile-add-ldflags.patch | 21 | ||||
-rw-r--r-- | meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/makefile-add-ldflags.patch b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/makefile-add-ldflags.patch new file mode 100644 index 000000000..bb21899eb --- /dev/null +++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/makefile-add-ldflags.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
4 | |||
5 | diff --git a/utils/Makefile b/utils/Makefile | ||
6 | index 710ebbf..6259893 100644 | ||
7 | --- a/utils/Makefile | ||
8 | +++ b/utils/Makefile | ||
9 | @@ -57,10 +57,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYAFFS2IMAGEOBJS) : %.o: %.c | ||
10 | $(CC) -c $(CFLAGS) $< -o $@ | ||
11 | |||
12 | mkyaffsimage: $(MKYAFFSIMAGEOBJS) $(COMMONOBJS) | ||
13 | - $(CC) -o $@ $^ | ||
14 | + $(CC) $(LDFLAGS) -o $@ $^ | ||
15 | |||
16 | mkyaffs2image: $(MKYAFFS2IMAGEOBJS) $(COMMONOBJS) | ||
17 | - $(CC) -o $@ $^ | ||
18 | + $(CC) $(LDFLAGS) -o $@ $^ | ||
19 | |||
20 | |||
21 | clean: | ||
diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb index 253ea627b..e8d187389 100644 --- a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb +++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb | |||
@@ -12,7 +12,10 @@ PV = "0.0+git${SRCPV}" | |||
12 | DEPENDS = "mtd-utils" | 12 | DEPENDS = "mtd-utils" |
13 | 13 | ||
14 | # Source is the HEAD of master branch at the time of writing this recipe | 14 | # Source is the HEAD of master branch at the time of writing this recipe |
15 | SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master" | 15 | SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \ |
16 | file://makefile-add-ldflags.patch \ | ||
17 | " | ||
18 | |||
16 | SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578" | 19 | SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578" |
17 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
18 | 21 | ||