move userspace to top level to facilitate overriding

master
Adam Joseph 2 years ago
parent ffdfb0fe19
commit c15d149350

@ -18,10 +18,11 @@ let
initramfs_image = self.initramfs; initramfs_image = self.initramfs;
}; };
kernel = self.callPackage ./kernel { }; kernel = self.callPackage ./kernel { };
initramfs = self.callPackage ./initramfs {
userspace = self.callPackage ./userspace { userspace = self.callPackage ./userspace {
kernelname = "${self.kernel.version}-${self.platform_name}"; kernelname = "${self.kernel.version}-${self.platform_name}";
}; };
initramfs = self.callPackage ./initramfs {
inherit (self) userspace;
}; };
})) }))
.overrideScope' overlay; .overrideScope' overlay;

@ -28,5 +28,4 @@ nixpkgsOnBuildForHost.stdenv.mkDerivation {
popd popd
''; '';
dontInstall = true; dontInstall = true;
passthru = { inherit userspace kernel; };
} }

@ -24,8 +24,7 @@
''; '';
}); });
initramfs = prev.initramfs.override { userspace = prev.userspace.override {
userspace = prev.initramfs.passthru.userspace.override {
# order matters! this is also the order in which the modules are insmoded # order matters! this is also the order in which the modules are insmoded
modules_insmod = [ modules_insmod = [
"drivers/video/backlight/pwm_bl.ko" "drivers/video/backlight/pwm_bl.ko"
@ -58,7 +57,6 @@
"drivers/net/wireless/marvell/mwifiex/mwifiex.ko" "drivers/net/wireless/marvell/mwifiex/mwifiex.ko"
]; ];
}; };
};
coreboot = coreboot =
let atf = final.nixpkgsOnBuildForHost.callPackage (import ./atf) { let atf = final.nixpkgsOnBuildForHost.callPackage (import ./atf) {

Loading…
Cancel
Save