summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-19 22:31:41 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-03-31 13:25:56 +0200
commit2e3645ea471c95f75aec2fd044950926e008959c (patch)
tree3ab734f764eaa72b7031cde53f03e2764e050a89 /meta-oe/recipes-extended
parentf67e201820e15c542a05bf67ec49a80ba36ab875 (diff)
downloadmeta-openembedded-2e3645ea471c95f75aec2fd044950926e008959c.tar.gz
sgio: Fix missing GNU_HASH errors
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/sgpio/sgpio/0001-makefile-Add-LDFLAGS-to-linking-rule.patch29
-rw-r--r--meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb8
2 files changed, 33 insertions, 4 deletions
diff --git a/meta-oe/recipes-extended/sgpio/sgpio/0001-makefile-Add-LDFLAGS-to-linking-rule.patch b/meta-oe/recipes-extended/sgpio/sgpio/0001-makefile-Add-LDFLAGS-to-linking-rule.patch
new file mode 100644
index 000000000..87fdd6058
--- /dev/null
+++ b/meta-oe/recipes-extended/sgpio/sgpio/0001-makefile-Add-LDFLAGS-to-linking-rule.patch
@@ -0,0 +1,29 @@
1From 92bf2f24d4762efd1dbcc4add457e2b600aa50cf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 18 Mar 2017 08:02:17 -0700
4Subject: [PATCH] makefile: Add LDFLAGS to linking rule
5
6This make it use correct link flags and fixes errors like
7No GNU_HASH in the elf binary
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Makefile b/Makefile
15index c2b0bc7..cdfb58f 100755
16--- a/Makefile
17+++ b/Makefile
18@@ -34,7 +34,7 @@ sgpio.o: sgpio.c
19 ${CC} $(CFLAGS) -c sgpio.c
20
21 sgpio: sgpio.o
22- ${CC} -g sgpio.o -o sgpio
23+ ${CC} $(LDFLAGS) -g sgpio.o -o sgpio
24
25 clean:
26 rm -f sgpio.o sgpio
27--
282.12.0
29
diff --git a/meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb b/meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb
index ed7c413fd..ee7bcdabb 100644
--- a/meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb
+++ b/meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb
@@ -1,10 +1,10 @@
1SUMMARY = "SGPIO captive backplane tool" 1SUMMARY = "SGPIO captive backplane tool"
2DESCRIPTION = "Intel SGPIO enclosure management utility" 2DESCRIPTION = "Intel SGPIO enclosure management utility"
3 3
4SRC_URI = " \ 4SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BPN}-1.2-0.10-src.tar.gz/a417bf68da4e9bd79a4664c11d7debd1/${BPN}-1.2-0.10-src.tar.gz \
5 http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BPN}-1.2-0.10-src.tar.gz/a417bf68da4e9bd79a4664c11d7debd1/${BPN}-1.2-0.10-src.tar.gz \ 5 file://Makefile-error-fix.patch \
6 file://Makefile-error-fix.patch \ 6 file://0001-makefile-Add-LDFLAGS-to-linking-rule.patch \
7" 7 "
8SRC_URI[md5sum] = "a417bf68da4e9bd79a4664c11d7debd1" 8SRC_URI[md5sum] = "a417bf68da4e9bd79a4664c11d7debd1"
9SRC_URI[sha256sum] = "9bf8c42acaa247efd9321bdb1fc2390022f0c554d77fbbd4a7363d990fc0270b" 9SRC_URI[sha256sum] = "9bf8c42acaa247efd9321bdb1fc2390022f0c554d77fbbd4a7363d990fc0270b"
10 10