mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
For release announce, see [1].
This commit also adds the support for LoongArch64, which was added in
upstream commit [2], first included in version v2.0.26. Note that
Buildroot introduced LoongArch64 support in commit [3].
This commit also updates the COPYING license file hash, after a minor
update in [4].
This release was signed with a different pgp key, so this commit
updates the key ID in comment.
[1] https://lists.infradead.org/pipermail/kexec/2025-October/034019.html
[2] https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=1c8bf2dc0127b06f97a7973488c7f8cf9a5f7c19
[3] 54895db9c1
[4] https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=591ebf60649de53dd7a9c916ef4e831626ab1810
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# kexec
|
|
#
|
|
################################################################################
|
|
|
|
KEXEC_VERSION = 2.0.32
|
|
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
|
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
|
KEXEC_LICENSE = GPL-2.0
|
|
KEXEC_LICENSE_FILES = COPYING
|
|
KEXEC_CPE_ID_PRODUCT = kexec-tools
|
|
KEXEC_CPE_ID_VENDOR = kexec-tools_project
|
|
KEXEC_SELINUX_MODULES = kdump
|
|
|
|
# Makefile expects $STRIP -o to work, so needed for !BR2_STRIP_strip
|
|
KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
|
|
|
|
# kexec requires at least -O1 optimization level. Its code uses a
|
|
# trick to detect unaligned accesses at link time which needs at least
|
|
# dead-code-removal to work. See put/get_unaligned() macros in
|
|
# kexec/kexec.h
|
|
ifeq ($(BR2_OPTIMIZE_0),y)
|
|
KEXEC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
|
KEXEC_CONF_OPTS += --with-zlib
|
|
KEXEC_DEPENDENCIES += zlib
|
|
else
|
|
KEXEC_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
KEXEC_CONF_OPTS += --with-lzma
|
|
KEXEC_DEPENDENCIES += xz
|
|
else
|
|
KEXEC_CONF_OPTS += --without-lzma
|
|
endif
|
|
|
|
define KEXEC_REMOVE_LIB_TOOLS
|
|
rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
|
|
endef
|
|
|
|
KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
|
|
|
|
$(eval $(autotools-package))
|