diff options
Diffstat (limited to 'meta-initramfs/recipes-bsp/kexecboot/files')
-rw-r--r-- | meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch | 27 | ||||
-rw-r--r-- | meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch | 30 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch b/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch new file mode 100644 index 00000000000..0565133d95e --- /dev/null +++ b/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch @@ -0,0 +1,27 @@ +From d302547305727797e0172ba89e7519252c400021 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 11 Aug 2018 14:37:22 -0700 +Subject: [PATCH 1/2] Add top_srcdir to compiler include paths + +Helps in compiling with out of tree build dir + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + src/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/Makefile.am b/src/Makefile.am +index d04a3a8..6449c5a 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,5 +1,7 @@ + bin_PROGRAMS=kexecboot + ++kexecboot_CFLAGS = -I$(top_srcdir) ++ + kexecboot_SOURCES = \ + util.c \ + cfgparser.c \ +-- +2.18.0 + diff --git a/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch b/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch new file mode 100644 index 00000000000..f12ae99e720 --- /dev/null +++ b/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch @@ -0,0 +1,30 @@ +From c587012cbe448c9295f50497812ca3530cabbb51 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 11 Aug 2018 14:39:01 -0700 +Subject: [PATCH 2/2] include sys/sysmacros.h + +glibc 2.28+ does not include this header implicitly via other system +headers anymore + +src/devicescan.c:373: undefined reference to `makedev' + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + src/devicescan.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/devicescan.c b/src/devicescan.c +index 4f2f497..0b2b253 100644 +--- a/src/devicescan.c ++++ b/src/devicescan.c +@@ -20,6 +20,7 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <unistd.h> +-- +2.18.0 + |