]> cvs.zerfleddert.de Git - m1-debian/commitdiff
get rid of debug_info kernel package; fix clang detection for amd64
authorThomas Glanzmann <thomas@glanzmann.de>
Wed, 14 Dec 2022 16:47:10 +0000 (17:47 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Wed, 14 Dec 2022 16:47:10 +0000 (17:47 +0100)
config.txt
m1n1_uboot_kernel.sh
patch_kernel_config.pl

index d5856a18c226e1d5a992c8187fc491a3a995af18..926d7a197f8f1859be493d05b65b132a597a639e 100644 (file)
@@ -3336,7 +3336,7 @@ CONFIG_BRIDGE_EBT_T_NAT=m
 CONFIG_USB_PEGASUS=m
 CONFIG_BSD_PROCESS_ACCT=y
 CONFIG_CAVIUM_ERRATUM_27456=y
-CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
+CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=n
 CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y
 CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
 CONFIG_NET_VENDOR_MICROSOFT=y
index a3e381e05ce29aecad0f421dcb097475c0c7ed0b..6922e312c6b2e39f3f706599a31408a22756b65e 100644 (file)
@@ -34,9 +34,9 @@ build_linux()
         git fetch -a -t
         git reset --hard asahi-6.1-2;
         cat ../../config.txt > .config
-        make LLVM=-15 rustavailable
-        make LLVM=-15 olddefconfig
-        make -j `nproc` LLVM=-15 V=0 bindeb-pkg > /dev/null
+        make LLVM=${CLANG_VERSION} rustavailable
+        make LLVM=${CLANG_VERSION} olddefconfig
+        make -j `nproc` LLVM=${CLANG_VERSION} V=0 bindeb-pkg > /dev/null
 )
 }
 
@@ -100,6 +100,12 @@ EOF
 )
 }
 
+if type clang-15; then
+        export CLANG_VERSION=-15
+elif type clang-11; then
+        export CLANG_VERSION=-11
+fi
+
 mkdir -p build
 cd build
 
index c8fd1af80b328607c98e28ad8126d1a3b7cee375..d6f1f33c616c79f51921102798d999af635d2cd7 100644 (file)
@@ -39,6 +39,7 @@ my %asahi_options = (
         'CONFIG_CONSTRUCTORS' => 'y',
         'CONFIG_DEBUG_INFO' => 'n',
         'CONFIG_DEBUG_INFO_BTF' => 'n',
+        'CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT' => 'n',
         'CONFIG_DRM' => 'y',
         'CONFIG_DRM_APPLE' => 'y',
         'CONFIG_DRM_ASAHI' => 'y',
Impressum, Datenschutz