lol
This commit is contained in:
@@ -9,7 +9,13 @@
|
||||
commonMakeFlags,
|
||||
}:
|
||||
let
|
||||
version = if stdenv.isAarch64 then "6.12.47" else cachyConfig.versions.linux.version;
|
||||
version =
|
||||
if cachyConfig.taste == "linux-cachyos-asahi" then
|
||||
cachyConfig.versions.linux.version
|
||||
else if stdenv.isAarch64 then
|
||||
"6.12.47"
|
||||
else
|
||||
cachyConfig.versions.linux.version;
|
||||
|
||||
majorMinor = lib.versions.majorMinor version;
|
||||
|
||||
@@ -26,7 +32,14 @@ let
|
||||
};
|
||||
|
||||
src =
|
||||
if stdenv.isAarch64 then
|
||||
if cachyConfig.taste == "linux-cachyos-asahi" then
|
||||
fetchFromGitHub {
|
||||
owner = cachyConfig.versions.linux.owner;
|
||||
repo = cachyConfig.versions.linux.repo;
|
||||
rev = cachyConfig.versions.linux.rev;
|
||||
inherit (cachyConfig.versions.linux) hash;
|
||||
}
|
||||
else if stdenv.isAarch64 then
|
||||
let
|
||||
tag = "stable_20250916";
|
||||
hash = "sha256-Rjn+eWl5cLcc9wgjS3HYVaWM5eKMN3pPfPbsu+QGR/M=";
|
||||
@@ -432,6 +445,10 @@ let
|
||||
"-d LATENCYTOP"
|
||||
"-d DEBUG_PREEMPT"
|
||||
];
|
||||
# Asahi uses the LTS config base since it tracks the same 6.18 kernel series
|
||||
configTaste =
|
||||
if cachyConfig.taste == "linux-cachyos-asahi" then "linux-cachyos-lts" else cachyConfig.taste;
|
||||
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit src patches;
|
||||
@@ -461,7 +478,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook preBuild
|
||||
|
||||
echo ${cachyConfig.taste}
|
||||
cp "${config-src}/${cachyConfig.taste}/config" ".config"
|
||||
cp "${config-src}/${configTaste}/config" ".config"
|
||||
make $makeFlags olddefconfig
|
||||
patchShebangs scripts/config
|
||||
scripts/config ${lib.concatStringsSep " " pkgbuildConfig}
|
||||
|
||||
Reference in New Issue
Block a user