diff options
Diffstat (limited to 'meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb')
-rw-r--r-- | meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb index 49c53a3ea..2e2703382 100644 --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb | |||
@@ -1,10 +1,16 @@ | |||
1 | # the binaries are statically linked against klibc | 1 | # the binaries are statically linked against klibc |
2 | require recipes-kernel/kexec/kexec-tools.inc | ||
3 | SUMMARY = "Kexec tools, statically compiled against klibc" | 2 | SUMMARY = "Kexec tools, statically compiled against klibc" |
4 | SRC_URI[md5sum] = "92eff93b097475b7767f8c98df84408a" | 3 | AUTHOR = "Eric Biederman" |
5 | SRC_URI[sha256sum] = "09e180ff36dee087182cdc939ba6c6917b6adbb5fc12d589f31fd3659b6471f2" | 4 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/" |
5 | SECTION = "kernel/userland" | ||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \ | ||
8 | file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09" | ||
9 | DEPENDS = "zlib xz" | ||
10 | |||
11 | PR = "r1" | ||
6 | 12 | ||
7 | inherit klibc | 13 | inherit klibc autotools |
8 | 14 | ||
9 | FILESPATH =. "${FILE_DIRNAME}/kexec-tools-${PV}:" | 15 | FILESPATH =. "${FILE_DIRNAME}/kexec-tools-${PV}:" |
10 | 16 | ||
@@ -23,6 +29,9 @@ SRC_URI += " \ | |||
23 | file://0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \ | 29 | file://0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \ |
24 | " | 30 | " |
25 | 31 | ||
32 | SRC_URI[md5sum] = "92eff93b097475b7767f8c98df84408a" | ||
33 | SRC_URI[sha256sum] = "09e180ff36dee087182cdc939ba6c6917b6adbb5fc12d589f31fd3659b6471f2" | ||
34 | |||
26 | SRC_URI_append_arm = " file://arm_crashdump.patch" | 35 | SRC_URI_append_arm = " file://arm_crashdump.patch" |
27 | SRC_URI_append_powerpc = " file://ppc__lshrdi3.patch" | 36 | SRC_URI_append_powerpc = " file://ppc__lshrdi3.patch" |
28 | SRC_URI_append_x86 = " file://x86_sys_io.patch file://x86_basename.patch file://x86_vfscanf.patch file://x86_kexec_test.patch" | 37 | SRC_URI_append_x86 = " file://x86_sys_io.patch file://x86_basename.patch file://x86_vfscanf.patch file://x86_kexec_test.patch" |
@@ -35,7 +44,26 @@ EXTRA_OECONF += "--without-zlib --without-lzma --without-xen" | |||
35 | CFLAGS += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" | 44 | CFLAGS += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" |
36 | CFLAGS_x86-64 += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" | 45 | CFLAGS_x86-64 += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" |
37 | 46 | ||
47 | do_compile_prepend() { | ||
48 | # Remove the prepackaged config.h from the source tree as it overrides | ||
49 | # the same file generated by configure and placed in the build tree | ||
50 | rm -f ${S}/include/config.h | ||
51 | |||
52 | # Remove the '*.d' file to make sure the recompile is OK | ||
53 | for dep in `find ${B} -type f -name '*.d'`; do | ||
54 | dep_no_d="`echo $dep | sed 's#.d$##'`" | ||
55 | # Remove file.d when there is a file.o | ||
56 | if [ -f "$dep_no_d.o" ]; then | ||
57 | rm -f $dep | ||
58 | fi | ||
59 | done | ||
60 | } | ||
61 | |||
38 | PACKAGES =+ "kexec-klibc kdump-klibc" | 62 | PACKAGES =+ "kexec-klibc kdump-klibc" |
39 | 63 | ||
40 | FILES_kexec-klibc = "${sbindir}/kexec" | 64 | FILES_kexec-klibc = "${sbindir}/kexec" |
41 | FILES_kdump-klibc = "${sbindir}/kdump" | 65 | FILES_kdump-klibc = "${sbindir}/kdump" |
66 | |||
67 | INSANE_SKIP_${PN} = "arch" | ||
68 | |||
69 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)' | ||