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

@@ -16,13 +16,19 @@ let
kernel = callPackage ./kernel {
inherit (config.kernel) config checkedConfig;
};
outputs = rec {
inherit squashfs kernel;
dtb = kernel.dtb {
dts = "qca9531_glinet_gl-ar750.dts";
};
uimage = kernel.uimage {
commandLine = "earlyprintk=serial,ttyS0 console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8 rootfstype=squashfs";
inherit (device.boot) loadAddress entryPoint;
inherit (kernel) vmlinux;
inherit dtb;
};
combined-image = nixpkgs.pkgs.runCommand "firmware.bin" {
nativeBuildInputs = [ nixpkgs.buildPackages.ubootTools ];
} ''