Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | # the binaries are statically linked against klibc |
| 2 | require recipes-kernel/kexec/kexec-tools.inc |
| 3 | SUMMARY = "Kexec tools, statically compiled against klibc" |
| 4 | SRC_URI[md5sum] = "92eff93b097475b7767f8c98df84408a" |
| 5 | SRC_URI[sha256sum] = "09e180ff36dee087182cdc939ba6c6917b6adbb5fc12d589f31fd3659b6471f2" |
| 6 | |
| 7 | inherit klibc |
| 8 | |
| 9 | FILESPATH =. "${FILE_DIRNAME}/kexec-tools-${PV}:" |
| 10 | |
| 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz" |
| 12 | |
| 13 | SRC_URI += " \ |
| 14 | file://kexec-elf-rel.patch \ |
| 15 | file://kexec-syscall.patch \ |
| 16 | file://cflags_static.patch \ |
| 17 | file://ifdown_errno.patch \ |
| 18 | file://purgatory_flags.patch \ |
| 19 | file://purgatory_string.patch \ |
| 20 | file://sha256.patch \ |
| 21 | file://sysconf_nrprocessors.patch \ |
| 22 | file://fix-out-of-tree-build.patch \ |
| 23 | " |
| 24 | |
| 25 | SRC_URI_append_arm = " file://arm_crashdump.patch" |
| 26 | SRC_URI_append_powerpc = " file://ppc__lshrdi3.patch" |
| 27 | SRC_URI_append_x86 = " file://x86_sys_io.patch file://x86_basename.patch file://x86_vfscanf.patch file://x86_kexec_test.patch" |
| 28 | SRC_URI_append_x86-64 = " file://x86_sys_io.patch file://x86_basename.patch file://x86_vfscanf.patch file://x86_kexec_test.patch" |
| 29 | |
| 30 | S = "${WORKDIR}/kexec-tools-${PV}" |
| 31 | |
| 32 | EXTRA_OECONF += "--without-zlib --without-lzma --without-xen" |
| 33 | |
| 34 | CFLAGS += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" |
| 35 | CFLAGS_x86-64 += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" |
| 36 | |
| 37 | PACKAGES =+ "kexec-klibc kdump-klibc" |
| 38 | |
| 39 | FILES_kexec-klibc = "${sbindir}/kexec" |
| 40 | FILES_kdump-klibc = "${sbindir}/kdump" |