summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-17 20:10:04 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:58:50 +0200
commitd45db2d6ec8ed5b4dbdd9c3de480ad7ac8ec0d83 (patch)
treef5643ea9032a64381dc8def9cfb3068e920c9557 /meta-initramfs
parentb455bfd77f3587167eb67d86926c6a5c788e07fa (diff)
downloadmeta-openembedded-d45db2d6ec8ed5b4dbdd9c3de480ad7ac8ec0d83.tar.gz
grubby: Link with libexecinfo on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch26
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch25
-rw-r--r--meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb9
3 files changed, 58 insertions, 2 deletions
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch
new file mode 100644
index 000000000..1b1a993a0
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0001-Add-another-variable-LIBS-to-provides-libraries-from.patch
@@ -0,0 +1,26 @@
1From 22afaa21b4b258082be591e54c99e1ba6fbd7748 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:22 -0700
4Subject: [PATCH 1/2] Add another variable LIBS to provides libraries from env
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 Makefile | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/Makefile b/Makefile
12index ac14404..92a8e73 100644
13--- a/Makefile
14+++ b/Makefile
15@@ -27,7 +27,7 @@ RPM_OPT_FLAGS ?= -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
16 CFLAGS += $(RPM_OPT_FLAGS) -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb
17 LDFLAGS :=
18
19-grubby_LIBS = -lblkid -lpopt
20+grubby_LIBS = -lblkid -lpopt ${LIBS}
21
22 all: grubby
23
24--
252.13.3
26
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch b/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch
new file mode 100644
index 000000000..de8133a3a
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/grubby/grubby/0002-include-paths.h-for-_PATH_MOUNTED.patch
@@ -0,0 +1,25 @@
1From 8f844ac7f44b8dc428d06cd6958c5f32d383d01c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:50 -0700
4Subject: [PATCH 2/2] include paths.h for _PATH_MOUNTED
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 grubby.c | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/grubby.c b/grubby.c
12index 47a1a15..59f74a9 100644
13--- a/grubby.c
14+++ b/grubby.c
15@@ -34,6 +34,7 @@
16 #include <libgen.h>
17 #include <execinfo.h>
18 #include <signal.h>
19+#include <paths.h>
20 #include <blkid/blkid.h>
21
22 #include "log.h"
23--
242.13.3
25
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
index 0e9379085..5a998248c 100644
--- a/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
+++ b/meta-initramfs/recipes-devtools/grubby/grubby_8.40.bb
@@ -9,11 +9,14 @@ LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" 9LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
10 10
11DEPENDS = "popt util-linux" 11DEPENDS = "popt util-linux"
12DEPENDS_append_libc-musl = " libexecinfo"
12 13
13SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \ 14SRC_URI = "https://github.com/rhinstaller/${BPN}/archive/${PV}-1.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \
14 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \ 15 file://grubby-rename-grub2-editenv-to-grub-editenv.patch \
15 file://run-ptest \ 16 file://run-ptest \
16" 17 file://0001-Add-another-variable-LIBS-to-provides-libraries-from.patch \
18 file://0002-include-paths.h-for-_PATH_MOUNTED.patch \
19 "
17 20
18SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86" 21SRC_URI[md5sum] = "1005907b275d6d93368d045274537d86"
19SRC_URI[sha256sum] = "85f1c678484f74c8978e8643451594967defce463a86c35cb1ee56d12767a9df" 22SRC_URI[sha256sum] = "85f1c678484f74c8978e8643451594967defce463a86c35cb1ee56d12767a9df"
@@ -24,8 +27,10 @@ RDEPENDS_${PN} += "dracut"
24 27
25inherit autotools-brokensep ptest 28inherit autotools-brokensep ptest
26 29
27EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}'" 30EXTRA_OEMAKE = "-e 'CC=${CC}' 'LDFLAGS=${LDFLAGS}' LIBS='${LIBS}'"
28 31
32LIBS_libc-musl = "-lexecinfo"
33LIBS ?= ""
29do_install_ptest() { 34do_install_ptest() {
30 install -d ${D}${PTEST_PATH} 35 install -d ${D}${PTEST_PATH}
31 cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH} 36 cp -r ${S}/test ${S}/test.sh ${D}${PTEST_PATH}