From a97c1925b2e710f19b7ea6f95e8f14eaae1743d3 Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Sun, 5 Nov 2023 18:23:18 +0100 Subject: [PATCH] package/kexec-lite: introduce BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS This will make it easier to handle packages that want to select kexec-lite. It also fixes the current inconsistency in the comment: it was not displayed for powerpc64le. Signed-off-by: Arnout Vandecappelle --- package/kexec-lite/Config.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package/kexec-lite/Config.in b/package/kexec-lite/Config.in index 5beaec6418..89184b0b7c 100644 --- a/package/kexec-lite/Config.in +++ b/package/kexec-lite/Config.in @@ -1,6 +1,11 @@ +config BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS + bool + default y + depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le + config BR2_PACKAGE_KEXEC_LITE bool "kexec-lite" - depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le + depends on BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS depends on !BR2_STATIC_LIBS # dtc, elfutils depends on BR2_USE_WCHAR # elfutils depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils @@ -18,6 +23,6 @@ config BR2_PACKAGE_KEXEC_LITE https://github.com/antonblanchard/kexec-lite comment "kexec-lite needs a toolchain w/ wchar, dynamic library, threads" - depends on BR2_powerpc || BR2_powerpc64 + depends on BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR \ || !BR2_TOOLCHAIN_HAS_THREADS