rename "device" config tree as "hardware"
we are also using "device" for "network device" (as in eth0, wlan0 etc) so this makes it a bit less confusing perhaps
This commit is contained in:
parent
263882cbe4
commit
e0ea576674
10 changed files with 38 additions and 37 deletions
|
@ -22,7 +22,7 @@ in {
|
|||
};
|
||||
|
||||
boot.commandLine = [
|
||||
"root=${config.device.rootDevice}"
|
||||
"root=${config.hardware.rootDevice}"
|
||||
];
|
||||
outputs.firmware =
|
||||
let o = config.outputs; in
|
||||
|
@ -49,7 +49,7 @@ in {
|
|||
let
|
||||
inherit (pkgs.lib.trivial) toHexString;
|
||||
inherit (pkgs.lib.lists) concatStringsSep;
|
||||
inherit (config.device) flash;
|
||||
inherit (config.hardware) flash;
|
||||
in
|
||||
pkgs.buildPackages.runCommand "" {} ''
|
||||
imageSize=$(stat -L -c %s ${config.outputs.firmware})
|
||||
|
|
|
@ -5,7 +5,7 @@ in {
|
|||
options = {
|
||||
boot = {
|
||||
};
|
||||
device = {
|
||||
hardware = {
|
||||
dts = {
|
||||
src = mkOption { type = types.path; };
|
||||
includes = mkOption {
|
||||
|
|
|
@ -24,14 +24,14 @@ in
|
|||
};
|
||||
dtb = (callPackage ../kernel/dtb.nix {}) {
|
||||
inherit (config.boot) commandLine;
|
||||
dts = config.device.dts.src;
|
||||
includes = config.device.dts.includes ++ [
|
||||
dts = config.hardware.dts.src;
|
||||
includes = config.hardware.dts.includes ++ [
|
||||
"${kernel.headers}/include"
|
||||
];
|
||||
};
|
||||
uimage = (callPackage ../kernel/uimage.nix {}) {
|
||||
commandLine = concatStringsSep " " config.boot.commandLine;
|
||||
inherit (config.device) loadAddress entryPoint;
|
||||
inherit (config.hardware) loadAddress entryPoint;
|
||||
inherit kernel;
|
||||
inherit dtb;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue