project-lakitu: kernel: Enable DWARFv4

The new ChromeOS toolchain expects newer formats of debug symbols. This
change enables out-of-tree kernel modules to successfully compile.

BUG=b/193436754
TEST=presubmit
RELEASE_NOTE=None

Change-Id: Ic5218705851b799347450d94e4cfcae0d8fc97ed
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/19353
Reviewed-by: Roy Yang <royyang@google.com>
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
diff --git a/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-arm64 b/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-arm64
index d650b31..2935109 100644
--- a/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-arm64
+++ b/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-arm64
@@ -1,14 +1,14 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/arm64 5.10.42 Kernel Configuration
+# Linux/arm64 5.10.48 Kernel Configuration
 #
-CONFIG_CC_VERSION_TEXT="Chromium OS 12.0_pre408248_p20201125-r7 clang version 12.0.0 (/var/tmp/portage/sys-devel/llvm-12.0_pre408248_p20201125-r7/work/llvm-12.0_pre408248_p20201125/clang f402e682d0ef5598eeffc9a21a691b03e602ff58)"
+CONFIG_CC_VERSION_TEXT="Chromium OS 12.0_pre422132_p20210405-r9 clang version 13.0.0 (/var/tmp/portage/sys-devel/llvm-12.0_pre422132_p20210405-r9/work/llvm-12.0_pre422132_p20210405/clang cd442157cff4aad209ae532cbf031abbe10bc1df)"
 CONFIG_GCC_VERSION=0
 CONFIG_LD_VERSION=0
 CONFIG_CC_IS_CLANG=y
 CONFIG_LD_IS_LLD=y
-CONFIG_CLANG_VERSION=120000
-CONFIG_LLD_VERSION=120000
+CONFIG_CLANG_VERSION=130000
+CONFIG_LLD_VERSION=130000
 CONFIG_CC_CAN_LINK=y
 CONFIG_CC_CAN_LINK_STATIC=y
 CONFIG_CC_HAS_ASM_GOTO=y
@@ -372,6 +372,7 @@
 CONFIG_ARM64_VA_BITS=39
 CONFIG_ARM64_PA_BITS_48=y
 CONFIG_ARM64_PA_BITS=48
+# CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_SCHED_MC=y
 CONFIG_SCHED_SMT=y
@@ -421,6 +422,7 @@
 #
 CONFIG_ARM64_HW_AFDBM=y
 CONFIG_ARM64_PAN=y
+CONFIG_AS_HAS_LSE_ATOMICS=y
 CONFIG_ARM64_VHE=y
 # end of ARMv8.1 architectural features
 
@@ -436,31 +438,23 @@
 #
 # ARMv8.3 architectural features
 #
-CONFIG_ARM64_PTR_AUTH=y
 CONFIG_CC_HAS_BRANCH_PROT_PAC_RET=y
 CONFIG_CC_HAS_SIGN_RETURN_ADDRESS=y
-CONFIG_AS_HAS_PAC=y
-CONFIG_AS_HAS_CFI_NEGATE_RA_STATE=y
 # end of ARMv8.3 architectural features
 
 #
 # ARMv8.4 architectural features
 #
 CONFIG_ARM64_AMU_EXTN=y
-CONFIG_AS_HAS_ARMV8_4=y
-CONFIG_ARM64_TLB_RANGE=y
 # end of ARMv8.4 architectural features
 
 #
 # ARMv8.5 architectural features
 #
 CONFIG_ARM64_BTI=y
-CONFIG_ARM64_BTI_KERNEL=y
 CONFIG_CC_HAS_BRANCH_PROT_PAC_RET_BTI=y
 CONFIG_ARM64_E0PD=y
 CONFIG_ARCH_RANDOM=y
-CONFIG_ARM64_AS_HAS_MTE=y
-CONFIG_ARM64_MTE=y
 # end of ARMv8.5 architectural features
 
 CONFIG_ARM64_SVE=y
@@ -913,7 +907,6 @@
 # CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
 # CONFIG_IDLE_PAGE_TRACKING is not set
 CONFIG_ARCH_HAS_PTE_DEVMAP=y
-CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
 # CONFIG_PERCPU_STATS is not set
 # CONFIG_GUP_BENCHMARK is not set
 # CONFIG_READ_ONLY_THP_FOR_FS is not set
@@ -3477,7 +3470,7 @@
 # CONFIG_DEBUG_INFO_REDUCED is not set
 # CONFIG_DEBUG_INFO_COMPRESSED is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
-# CONFIG_DEBUG_INFO_DWARF4 is not set
+CONFIG_DEBUG_INFO_DWARF4=y
 CONFIG_DEBUG_INFO_BTF=y
 # CONFIG_GDB_SCRIPTS is not set
 CONFIG_ENABLE_MUST_CHECK=y
diff --git a/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-x86_64 b/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-x86_64
index 8e974a9..a7a9f47 100644
--- a/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-x86_64
+++ b/project-lakitu/sys-kernel/lakitu-kernel-5_10/files/base.config-x86_64
@@ -1,14 +1,14 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86_64 5.10.43 Kernel Configuration
+# Linux/x86_64 5.10.48 Kernel Configuration
 #
-CONFIG_CC_VERSION_TEXT="Chromium OS 12.0_pre408248_p20201125-r7 clang version 12.0.0 (/var/tmp/portage/sys-devel/llvm-12.0_pre408248_p20201125-r7/work/llvm-12.0_pre408248_p20201125/clang f402e682d0ef5598eeffc9a21a691b03e602ff58)"
+CONFIG_CC_VERSION_TEXT="Chromium OS 12.0_pre422132_p20210405-r9 clang version 13.0.0 (/var/tmp/portage/sys-devel/llvm-12.0_pre422132_p20210405-r9/work/llvm-12.0_pre422132_p20210405/clang cd442157cff4aad209ae532cbf031abbe10bc1df)"
 CONFIG_GCC_VERSION=0
 CONFIG_LD_VERSION=0
 CONFIG_CC_IS_CLANG=y
 CONFIG_LD_IS_LLD=y
-CONFIG_CLANG_VERSION=120000
-CONFIG_LLD_VERSION=120000
+CONFIG_CLANG_VERSION=130000
+CONFIG_LLD_VERSION=130000
 CONFIG_CC_CAN_LINK=y
 CONFIG_CC_CAN_LINK_STATIC=y
 CONFIG_CC_HAS_ASM_GOTO=y
@@ -657,6 +657,7 @@
 CONFIG_AS_AVX512=y
 CONFIG_AS_SHA1_NI=y
 CONFIG_AS_SHA256_NI=y
+CONFIG_AS_TPAUSE=y
 
 #
 # General architecture-dependent options
@@ -3533,7 +3534,7 @@
 # CONFIG_DEBUG_INFO_REDUCED is not set
 # CONFIG_DEBUG_INFO_COMPRESSED is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
-# CONFIG_DEBUG_INFO_DWARF4 is not set
+CONFIG_DEBUG_INFO_DWARF4=y
 CONFIG_DEBUG_INFO_BTF=y
 # CONFIG_GDB_SCRIPTS is not set
 CONFIG_ENABLE_MUST_CHECK=y
diff --git a/project-lakitu/sys-kernel/lakitu-kernel-5_10/lakitu-kernel-5_10-9999.ebuild b/project-lakitu/sys-kernel/lakitu-kernel-5_10/lakitu-kernel-5_10-9999.ebuild
index 45a1ea2..5900822 100644
--- a/project-lakitu/sys-kernel/lakitu-kernel-5_10/lakitu-kernel-5_10-9999.ebuild
+++ b/project-lakitu/sys-kernel/lakitu-kernel-5_10/lakitu-kernel-5_10-9999.ebuild
@@ -58,4 +58,4 @@
 # NOTE: There's nothing magic keeping this number prime but you just need to
 # make _any_ change to this file.  ...so why not keep it prime?
 #
-# The coolest prime number is: 15
+# The coolest prime number is: 17