aboutsummaryrefslogtreecommitdiffci
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-09-09 02:35:27 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-09 10:06:07 +0700
commitd204e81041d2f79ae6c08d95e164538f4d4cbb5e (patch)
tree5720d53999d6bda16e4e45003e0c99aeac568a3a
parent51e87787ac4be29b05fe7a7b09c6dc678b4ea0ba (diff)
downloadkernel-surface-d204e81041d2f79ae6c08d95e164538f4d4cbb5e.tar.gz
kernel-surface-d204e81041d2f79ae6c08d95e164538f4d4cbb5e.zip
feat: optimize kernel for Qualcomm Oryon v1 CPUs
-rw-r--r--config/base-aarch64.config5
-rw-r--r--kernel-surface.spec4
2 files changed, 7 insertions, 2 deletions
diff --git a/config/base-aarch64.config b/config/base-aarch64.config
index 449031b..ed863d0 100644
--- a/config/base-aarch64.config
+++ b/config/base-aarch64.config
@@ -3,8 +3,9 @@
# kernel-core-7.2.4-300.fc45.aarch64.rpm:
#
# dnf download kernel-core --arch aarch64
-# rpm2cpio kernel-core-*.aarch64.rpm |
-# cpio -idm './usr/lib/modules/*/config'
+# rpm2archive -n - < kernel-core-*.aarch64.rpm |
+# tar -xO --wildcards '*/modules/*/config' |
+# wl-copy
#
# It is vendored rather than downloaded so the build has no dependency on a
# third-party host, and so the base config is reviewable in a diff when it is
diff --git a/kernel-surface.spec b/kernel-surface.spec
index d5b91df..9a05a61 100644
--- a/kernel-surface.spec
+++ b/kernel-surface.spec
@@ -193,6 +193,7 @@ test "${kernelrelease}" = "%{kverrel}" || {
}
%build
+export KCFLAGS="-mcpu=oryon-1"
%make_build ARCH=arm64 Image modules dtbs
%install
@@ -247,6 +248,9 @@ fi
%ghost %attr(0644,root,root) /boot/vmlinuz-%{kverrel}
%changelog
+* Wed Sep 09 2026 Saya Andy 7.2.4-2
+- Compile kernel specifically for Oryon v1 instruction set (Snapdragon X1 cpu)
+
* Tue Sep 08 2026 Saya Andy 7.2.4-1
- Update Linux kernel from 7.2.3 to 7.2.4