2017-03-31 11:59:18 -04:00
|
|
|
modules-$(CONFIG_KEXEC) += kexec
|
2016-08-02 19:25:47 -04:00
|
|
|
|
2023-04-19 14:16:38 -04:00
|
|
|
kexec_version := 2.0.26
|
2016-08-02 19:25:47 -04: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)
|
2023-04-19 14:16:38 -04:00
|
|
|
kexec_hash := 89bdd941542c64fec16311858df304ed3a3908c1a60874d69df5d9bf1611e062
|
2016-08-02 19:25:47 -04:00
|
|
|
|
2023-03-01 11:12:46 -05:00
|
|
|
kexec_configure := \
|
|
|
|
CFLAGS="-g -Os -fno-strict-aliasing -Wall -Wstrict-prototypes" \
|
|
|
|
./configure \
|
2017-04-08 13:23:34 -04:00
|
|
|
$(CROSS_TOOLS) \
|
2021-07-18 20:34:20 +03:00
|
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
|
|
--target $(MUSL_ARCH) \
|
2017-04-07 09:51:49 -04:00
|
|
|
--prefix="/" \
|
2016-12-28 16:47:10 -05:00
|
|
|
--without-lzma \
|
2017-01-27 16:17:03 -05:00
|
|
|
&& $(MAKE) clean
|
2016-12-28 12:45:12 -05:00
|
|
|
|
2016-12-29 18:23:08 -05:00
|
|
|
kexec_target := \
|
2017-03-21 14:29:07 -04:00
|
|
|
$(MAKE_JOBS) \
|
2017-04-08 13:23:34 -04:00
|
|
|
$(CROSS_TOOLS) \
|
2017-04-07 09:51:49 -04:00
|
|
|
DESTDIR="$(INSTALL)" \
|
2016-12-29 18:23:08 -05:00
|
|
|
install \
|
2016-12-28 12:45:12 -05:00
|
|
|
|
2016-08-02 19:25:47 -04:00
|
|
|
kexec_output := build/sbin/kexec
|
2016-12-28 12:45:12 -05:00
|
|
|
|
2017-04-07 09:51:49 -04:00
|
|
|
kexec_depends := zlib $(musl_dep)
|