forked from DGNum/liminix
move dts config option from boot to device
This commit is contained in:
parent
fd500041fa
commit
263882cbe4
5 changed files with 7 additions and 7 deletions
|
@ -125,7 +125,7 @@
|
|||
boot.tftp = {
|
||||
loadAddress = "0x00A00000";
|
||||
};
|
||||
boot.dts = {
|
||||
device.dts = {
|
||||
src = "${openwrt}/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts";
|
||||
includes = [
|
||||
"${openwrt}/target/linux/ath79/dts"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
boot.tftp = {
|
||||
loadAddress = "0x00A00000";
|
||||
};
|
||||
boot.dts = {
|
||||
device.dts = {
|
||||
src = "${openwrt}/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts";
|
||||
includes = [
|
||||
"${openwrt}/target/linux/ramips/dts"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
boot.tftp = {
|
||||
loadAddress = "0x00A00000";
|
||||
};
|
||||
boot.dts = {
|
||||
device.dts = {
|
||||
src = "${openwrt}/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts";
|
||||
includes = [
|
||||
"${openwrt}/target/linux/ramips/dts"
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue