Coreboot: Difference between revisions

imported>Milahu
m - should
imported>Milahu
+ clone submodules. shallow clone, otherwise needs 10x more diskspace
Line 2: Line 2:
To build your own coreboot bios:
To build your own coreboot bios:


<syntaxHighlight lang=console>
<syntaxHighlight lang=bash>
$ git clone https://review.coreboot.org/coreboot.git --depth 1
git clone https://review.coreboot.org/coreboot.git --depth 1
$ cd coreboot
cd coreboot
$ nix-shell -p ncurses bison flex clang gnat10 zlib acpica-tools pkgconfig
du -sh . # 200 MByte
$ NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" make menuconfig
git submodule update --init --checkout --depth 1
$ make crossgcc
du -sh . # 700 MByte
$ make
 
nix-shell -p ncurses bison flex clang gnat10 gnatboot zlib acpica-tools pkgconfig
NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" make menuconfig
make crossgcc
make
</syntaxHighlight>
</syntaxHighlight>
* gnat10 provides gnat
* gnatboot provides gnat1


=== Compiler version ===
=== Compiler version ===
Line 25: Line 32:


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 [https://github.com/blitz/nix-coreboot here].
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 [https://github.com/blitz/nix-coreboot here].
== See also ==
* https://www.coreboot.org/Build_HOWTO