buildLinux: Forward buildDTBs and target arguments (#533947)

This commit is contained in:
zowoq
2026-06-21 23:19:20 +00:00
committed by GitHub
2 changed files with 30 additions and 21 deletions
-2
View File
@@ -152,8 +152,6 @@ lib.makeOverridable (
isModular = config.isYes "MODULES";
withRust = config.isYes "RUST";
inherit buildDTBs target;
# Dependencies that are required to build kernel modules
moduleBuildDependencies = [
pahole
+30 -19
View File
@@ -79,6 +79,9 @@ lib.makeOverridable (
extraMeta ? { },
extraPassthru ? { },
target ? null,
buildDTBs ? null,
isLTS ? false,
isZen ? false,
@@ -284,26 +287,34 @@ lib.makeOverridable (
};
}; # end of configfile derivation
kernel = (callPackage ./build.nix { inherit lib stdenv buildPackages; }) {
inherit
pname
version
src
kernelPatches
randstructSeed
extraMakeFlags
extraMeta
configfile
modDirVersion
;
pos = builtins.unsafeGetAttrPos "version" args;
kernel = (callPackage ./build.nix { inherit lib stdenv buildPackages; }) (
{
inherit
pname
version
src
kernelPatches
randstructSeed
extraMakeFlags
extraMeta
configfile
modDirVersion
;
pos = builtins.unsafeGetAttrPos "version" args;
config = {
CONFIG_MODULES = "y";
CONFIG_FW_LOADER = "y";
CONFIG_RUST = if withRust then "y" else "n";
};
};
config = {
CONFIG_MODULES = "y";
CONFIG_FW_LOADER = "y";
CONFIG_RUST = if withRust then "y" else "n";
};
}
// lib.optionalAttrs (target != null) {
inherit target;
}
// lib.optionalAttrs (buildDTBs != null) {
inherit buildDTBs;
}
);
in
kernel.overrideAttrs (