Coreboot: Difference between revisions
imported>Blitz m Fixed link syntax |
imported>Milahu fix nix-shell, use shallow clone |
||
Line 3: | Line 3: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ git clone https://review.coreboot.org/coreboot.git | $ git clone https://review.coreboot.org/coreboot.git --depth 1 | ||
$ nix-shell -p ncurses | $ cd coreboot | ||
$ nix-shell -p ncurses bison flex clang zlib acpica-tools pkgconfig | |||
$ NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" make menuconfig | $ NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" make menuconfig | ||
$ make crossgcc | $ make crossgcc |
Revision as of 22:23, 25 October 2021
Building in nix-shell
To build your own coreboot bios:
$ git clone https://review.coreboot.org/coreboot.git --depth 1
$ cd coreboot
$ nix-shell -p ncurses bison flex clang zlib acpica-tools pkgconfig
$ 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.