2017-03-31 15:59:18 +00:00
|
|
|
modules-$(CONFIG_KEXEC) += kexec
|
2016-08-02 23:25:47 +00:00
|
|
|
|
2018-02-28 15:48:35 +00:00
|
|
|
kexec_version := 2.0.16
|
2016-08-02 23:25:47 +00:00
|
|
|
kexec_dir := kexec-tools-$(kexec_version)
|
|
|
|
kexec_tar := kexec-tools-$(kexec_version).tar.gz
|
|
|
|
kexec_url := https://kernel.org/pub/linux/utils/kernel/kexec/$(kexec_tar)
|
2018-02-28 15:48:35 +00:00
|
|
|
kexec_hash := cf17fc99bf77c9b39f06ee88ac0e86d0349c4a0c3f8214a3cc78eece872f6f3a
|
2016-08-02 23:25:47 +00:00
|
|
|
|
2016-12-28 17:45:12 +00:00
|
|
|
kexec_configure := ./configure \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-01-04 21:39:10 +00:00
|
|
|
--host i386-elf-linux \
|
2017-01-05 09:29:56 +00:00
|
|
|
--target x86_64 \
|
2017-04-07 13:51:49 +00:00
|
|
|
--prefix="/" \
|
2016-12-28 21:47:10 +00:00
|
|
|
--without-lzma \
|
2017-01-27 21:17:03 +00:00
|
|
|
&& $(MAKE) clean
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2016-12-29 23:23:08 +00:00
|
|
|
kexec_target := \
|
2017-03-21 18:29:07 +00:00
|
|
|
$(MAKE_JOBS) \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-04-07 13:51:49 +00:00
|
|
|
DESTDIR="$(INSTALL)" \
|
2016-12-29 23:23:08 +00:00
|
|
|
install \
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2016-08-02 23:25:47 +00:00
|
|
|
kexec_output := build/sbin/kexec
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-04-07 13:51:49 +00:00
|
|
|
kexec_depends := zlib $(musl_dep)
|