fmap, payload: move to top-level scope

This commit moves the `fmap` and `payload` arguments to `coreboot`
into the top-level scope, so they can be provided without needing to
override the `coreboot` expression.
master
Adam Joseph 1 year ago
parent 01549c9400
commit d217c4eff4

@ -18,15 +18,12 @@
});
console-device = "ttyS1";
image = prev.image.override {
payload = "${final.kernel}/bzImage";
};
fmap = ./custom.fmap;
coreboot = (prev.coreboot.override {
iasl = final.iasl_20180531;
coreboot-toolchain = with final.coreboot-toolchain; [ x64 i386 ];
fmap = ./custom.fmap;
config = with lib.kernel; {
CBFS_PREFIX = lib.mkForce (freeform "prefix");

@ -76,14 +76,15 @@ in {
inherit (final) initramfs kernel linux-command-line;
};
image = prev.image.override {
payload = "${final.fit}/Image.fit";
fmap = ./custom.fmap;
image = prev.image.override {
initramfs = null; # it is part of the FIT image
};
coreboot =
(prev.coreboot.override {
fmap = ./custom.fmap;
config = with lib.kernel; {
CBFS_PREFIX = lib.mkForce (freeform "prefix");

@ -43,13 +43,11 @@
# TODO: use a NixOS-style structuredConfig for this.
cmos-default = null;
image = prev.image.override {
payload = "${final.kernel}/bzImage";
};
fmap = ./custom.fmap;
coreboot = (prev.coreboot.override {
iasl = final.iasl_20180531;
fmap = ./custom.fmap;
config = with lib.kernel; {
CBFS_PREFIX = lib.mkForce (freeform "prefix");

Loading…
Cancel
Save