~amjoseph/ownerboot

ef4f1846871a2d81964fc6ec63e03005786d7815 — Adam Joseph 2 months ago 2881e67
src/coreboot: set env.KERNELVERSION to $out

The coreboot source describes `KERNELVERSION` as "misleadingly
named, this is the coreboot version".

We set this to $out, so that you can always find the outpath a
machine's current bootflash image by simply reading the image back
(`flashrom -r`) and running `strings | grep /nix/store` on the
result.
1 files changed, 7 insertions(+), 0 deletions(-)

M src/coreboot/default.nix
M src/coreboot/default.nix => src/coreboot/default.nix +7 -0
@@ 175,6 175,13 @@ stdenv.mkDerivation {

  env = {
    BUILD_TIMELESS = 1;

    # coreboot source describes this as "misleadingly named, this is
    # the coreboot version".  We set this to $out, so that you can
    # always find the outpath a machine's current bootflash image by
    # simply reading the image back (`flashrom -r`) and running
    # `strings | grep /nix/store` on the result.
    KERNELVERSION = builtins.placeholder "out";
  };

  configurePhase = assert uart-for-console == null || lib.isInt uart-for-console; ''