per-device dts
This commit is contained in:
parent
cb39209492
commit
eaf90df56c
3 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ let
|
|||
inherit (config.kernel) config;
|
||||
};
|
||||
dtb = (callPackage ./kernel/dtb.nix {}) {
|
||||
dts = "${openwrt}/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts";
|
||||
dts = config.kernel.dts { inherit openwrt; };
|
||||
includes = [
|
||||
"${openwrt}/target/linux/ath79/dts"
|
||||
"${kernel.headers}/include"
|
||||
|
@ -95,5 +95,5 @@ in {
|
|||
|
||||
# this is just here as a convenience, so that we can get a
|
||||
# cross-compiling nix-shell for any package we're customizing
|
||||
inherit pkgs;
|
||||
inherit pkgs;
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
};
|
||||
};
|
||||
kernel = rec {
|
||||
dts = { openwrt,... }:"${openwrt}/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts";
|
||||
config = {
|
||||
MIPS_ELF_APPENDED_DTB = "y";
|
||||
OF = "y";
|
||||
|
|
|
@ -24,6 +24,7 @@ in {
|
|||
};
|
||||
filesystem = mkOption { type = types.anything; };
|
||||
kernel = {
|
||||
dts = mkOption { type = types.functionTo types.string; };
|
||||
config = mkOption {
|
||||
# mostly the values are y n or m, but sometimes
|
||||
# other strings are also used
|
||||
|
|
Loading…
Reference in a new issue