File 0003-arch-lkl-fix-make-olddefconfig-with-CONFIG_CPU_BIG_E.patch of Package lkl

From 9c8f874976e0f20985884b0ad3f0cb15ee92091c Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@suse.de>
Date: Sun, 1 Jun 2025 09:26:06 +0200
Subject: [PATCH 3/4] arch/lkl: fix "make olddefconfig" with
 CONFIG_CPU_BIG_ENDIAN=y

LKL's final kernel config is created by appending the
tools/lkl/Makefile.autoconf generated kernel.config to .config and
then calling "make ARCH=lkl olddefconfig".
With the existing config CPU_BIG_ENDIAN setting of "def_bool n", a
.config with CONFIG_CPU_BIG_ENDIAN=y appended will drop the
CONFIG_CPU_BIG_ENDIAN=y setting when "make ARCH=lkl olddefconfig" is
called.
This issue is resolved by changing config CPU_BIG_ENDIAN to:
	bool "Big-endian kernel"
	default n

Signed-off-by: David Disseldorp <ddiss@suse.de>
---
 arch/lkl/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/lkl/Kconfig b/arch/lkl/Kconfig
index 50a6fe7b0191..7f3cf8658738 100644
--- a/arch/lkl/Kconfig
+++ b/arch/lkl/Kconfig
@@ -74,7 +74,8 @@ config COREDUMP
        def_bool n
 
 config CPU_BIG_ENDIAN
-       def_bool n
+       bool "Big-endian kernel"
+       default n
 
 config GENERIC_CSUM
        def_bool y
-- 
2.43.0

openSUSE Build Service is sponsored by