diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2016-11-01 17:23:04 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2016-11-29 08:22:21 -0800 |
| commit | 705a4c1e2fd3b752bc05b50c50ffc7ad649cbf1c (patch) | |
| tree | e5fb7ba6ac4b6f9032aadea6414545a9c98622be | |
| parent | a3d23d2c36f39b9c76d0842d6fb2785ac13ee55f (diff) | |
| download | meta-openembedded-705a4c1e2fd3b752bc05b50c50ffc7ad649cbf1c.tar.gz | |
vblade: 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>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
(cherry picked from commit f08e9d4c7ca1e9261484e4ffedd27370109d2bba)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch | 19 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/vblade/vblade_20.bb | 4 |
2 files changed, 22 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch b/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch new file mode 100644 index 0000000000..a74452db69 --- /dev/null +++ b/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed. | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 6 | |||
| 7 | diff --git a/makefile b/makefile | ||
| 8 | index 98008da..c328ba7 100644 | ||
| 9 | --- a/makefile | ||
| 10 | +++ b/makefile | ||
| 11 | @@ -11,7 +11,7 @@ mandir = ${sharedir}/man | ||
| 12 | O=aoe.o bpf.o ${PLATFORM}.o ata.o | ||
| 13 | |||
| 14 | vblade: $O | ||
| 15 | - ${CC} -o vblade $O | ||
| 16 | + ${CC} ${LDFLAGS} -o vblade $O | ||
| 17 | |||
| 18 | aoe.o : aoe.c config.h dat.h fns.h makefile | ||
| 19 | ${CC} ${CFLAGS} -c $< | ||
diff --git a/meta-networking/recipes-daemons/vblade/vblade_20.bb b/meta-networking/recipes-daemons/vblade/vblade_20.bb index a357e40375..344c7462c7 100644 --- a/meta-networking/recipes-daemons/vblade/vblade_20.bb +++ b/meta-networking/recipes-daemons/vblade/vblade_20.bb | |||
| @@ -5,7 +5,9 @@ LICENSE = "GPLv2" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 6 | 6 | ||
| 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/aoetools/${BPN}-${PV}.tgz \ | 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/aoetools/${BPN}-${PV}.tgz \ |
| 8 | file://cross.patch" | 8 | file://cross.patch \ |
| 9 | file://makefile-add-ldflags.patch \ | ||
| 10 | " | ||
| 9 | 11 | ||
| 10 | SRC_URI[md5sum] = "3c80e4a6bc7d66ae0c235b88cb44bd59" | 12 | SRC_URI[md5sum] = "3c80e4a6bc7d66ae0c235b88cb44bd59" |
| 11 | SRC_URI[sha256sum] = "c8fe2fc4f2fba8e07e5cfdf17335982584eef2cd5c78bf8b1db93f2b56e7121d" | 13 | SRC_URI[sha256sum] = "c8fe2fc4f2fba8e07e5cfdf17335982584eef2cd5c78bf8b1db93f2b56e7121d" |
