Coreboot: Difference between revisions
imported>Flokli remove hardening edit / https://github.com/NixOS/nixpkgs/pull/107435 |
imported>Blitz Add link to Coreboot Nix expressions |
||
Line 1: | Line 1: | ||
== Building == | == Building in nix-shell == | ||
To build your own coreboot bios: | To build your own coreboot bios: | ||
Line 9: | Line 9: | ||
$ make | $ make | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Building as derivation == | |||
coreboot is pretty picky about the toolchain it is built with and thus using the toolchain it comes with is the easiest path to success. There are commented Nix expressions that build coreboot [here](https://github.com/blitz/nix-coreboot). |
Revision as of 11:24, 16 April 2021
Building in nix-shell
To build your own coreboot bios:
$ git clone https://review.coreboot.org/coreboot.git; cd coreboot
$ nix-shell -p ncurses.dev bison flex clang zlib
$ NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" make menuconfig
$ make crossgcc
$ make
Building as derivation
coreboot is pretty picky about the toolchain it is built with and thus using the toolchain it comes with is the easiest path to success. There are commented Nix expressions that build coreboot [here](https://github.com/blitz/nix-coreboot).