add support for OpenWrt device trees

This commit is contained in:
Daniel Barlow
2022-10-05 21:52:30 +01:00
parent 2f3072d7d5
commit 9cbffdab50
4 changed files with 49 additions and 21 deletions

View File

@@ -34,9 +34,24 @@ let
cp -a . $out
'';
};
openwrtSource = fetchFromGitHub {
repo = "openwrt";
owner = "openwrt";
rev = "a5265497a4f6da158e95d6a450cb2cb6dc085cab";
hash = "sha256-YYi4gkpLjbOK7bM2MGQjAyEBuXJ9JNXoz/JEmYf8xE8=";
};
in rec {
vmlinux = callPackage ./vmlinux.nix {
inherit tree config checkedConfig;
};
uimage = callPackage ./uimage.nix { };
dtb = callPackage ./dtb.nix {
openwrt = openwrtSource;
kernel = tree;
};
}