move dts config option from boot to device
This commit is contained in:
@@ -4,6 +4,8 @@ let
|
||||
in {
|
||||
options = {
|
||||
boot = {
|
||||
};
|
||||
device = {
|
||||
dts = {
|
||||
src = mkOption { type = types.path; };
|
||||
includes = mkOption {
|
||||
@@ -11,8 +13,6 @@ in {
|
||||
type = types.listOf types.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
device = {
|
||||
defaultOutput = mkOption {
|
||||
type = types.nonEmptyStr;
|
||||
};
|
||||
|
@@ -24,8 +24,8 @@ in
|
||||
};
|
||||
dtb = (callPackage ../kernel/dtb.nix {}) {
|
||||
inherit (config.boot) commandLine;
|
||||
dts = config.boot.dts.src;
|
||||
includes = config.boot.dts.includes ++ [
|
||||
dts = config.device.dts.src;
|
||||
includes = config.device.dts.includes ++ [
|
||||
"${kernel.headers}/include"
|
||||
];
|
||||
};
|
||||
|
Reference in New Issue
Block a user