summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/efibootmgr
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2015-08-27 17:30:22 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-08-31 19:17:09 +0200
commitb1bdecb7be72b2acff63d6b8581d79c9d79661be (patch)
tree29ee17753f86dae9da60ce5bf6cf3521b3153f06 /meta-oe/recipes-extended/efibootmgr
parenta686b8f898c1f7c373e05f64e55e136bf85322c3 (diff)
downloadmeta-openembedded-b1bdecb7be72b2acff63d6b8581d79c9d79661be.tar.gz
efibootmgr: fix build error with gcc 5.2
It fails to build efibootmgr with gcc 5.2: src/lib/disk.o: In function `disk_get_scsi_pci': src/lib/disk.c:154: undefined reference to `get_scsi_pci' src/lib/efi.o: In function `make_edd30_device_path': src/lib/efi.c:474: undefined reference to `get_scsi_idlun' collect2: error: ld returned 1 exit status Because functions get_scsi_pci and get_scsi_idlun are declared as inline. It has different semantics for inilne function between gcc 4 and gcc 5. Pass flag '-fgnu89-inline' to gcc to fix the errors. Ref: https://gcc.gnu.org/gcc-5/porting_to.html Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/efibootmgr')
-rw-r--r--meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
index 1870455ea..501ff2a6e 100644
--- a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
+++ b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
@@ -19,7 +19,7 @@ SRC_URI = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${PV}.tar.gz \
19SRC_URI[md5sum] = "9e9a31d79e579644de83a14139b66d10" 19SRC_URI[md5sum] = "9e9a31d79e579644de83a14139b66d10"
20SRC_URI[sha256sum] = "5167488b92950e60028d1025942ce6bda04638c6fb5e110abb8c8f687844d155" 20SRC_URI[sha256sum] = "5167488b92950e60028d1025942ce6bda04638c6fb5e110abb8c8f687844d155"
21 21
22EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/lib -I${S}/src/include'" 22EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/lib -I${S}/src/include -fgnu89-inline'"
23 23
24do_install () { 24do_install () {
25 install -D -p -m0755 src/efibootmgr/efibootmgr ${D}/${sbindir}/efibootmgr 25 install -D -p -m0755 src/efibootmgr/efibootmgr ${D}/${sbindir}/efibootmgr