diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-19 22:31:41 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-03-31 13:25:56 +0200 |
commit | 2e3645ea471c95f75aec2fd044950926e008959c (patch) | |
tree | 3ab734f764eaa72b7031cde53f03e2764e050a89 /meta-oe/recipes-extended | |
parent | f67e201820e15c542a05bf67ec49a80ba36ab875 (diff) | |
download | meta-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.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-extended/sgpio/sgpio_1.2.0.10.bb | 8 |
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 @@ | |||
1 | From 92bf2f24d4762efd1dbcc4add457e2b600aa50cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 18 Mar 2017 08:02:17 -0700 | ||
4 | Subject: [PATCH] makefile: Add LDFLAGS to linking rule | ||
5 | |||
6 | This make it use correct link flags and fixes errors like | ||
7 | No GNU_HASH in the elf binary | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Makefile | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | index 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 | -- | ||
28 | 2.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 @@ | |||
1 | SUMMARY = "SGPIO captive backplane tool" | 1 | SUMMARY = "SGPIO captive backplane tool" |
2 | DESCRIPTION = "Intel SGPIO enclosure management utility" | 2 | DESCRIPTION = "Intel SGPIO enclosure management utility" |
3 | 3 | ||
4 | SRC_URI = " \ | 4 | SRC_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 | " |
8 | SRC_URI[md5sum] = "a417bf68da4e9bd79a4664c11d7debd1" | 8 | SRC_URI[md5sum] = "a417bf68da4e9bd79a4664c11d7debd1" |
9 | SRC_URI[sha256sum] = "9bf8c42acaa247efd9321bdb1fc2390022f0c554d77fbbd4a7363d990fc0270b" | 9 | SRC_URI[sha256sum] = "9bf8c42acaa247efd9321bdb1fc2390022f0c554d77fbbd4a7363d990fc0270b" |
10 | 10 | ||