Skip to content

Instantly share code, notes, and snippets.

@rowland007
Last active November 10, 2022 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rowland007/7057d95dd83f705f1fb496819c805432 to your computer and use it in GitHub Desktop.
Save rowland007/7057d95dd83f705f1fb496819c805432 to your computer and use it in GitHub Desktop.
Building coreboot from source
#!/bin/bash -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
apt update; apt upgrade -y; apt autoclean -y; apt autoremove
apt install -y git build-essential bison flex m4 zlib1g-dev gnat libpci-dev libusb-dev libusb-1.0-0-dev pv dmidecode bsdiff python2.7
mkdir ~/updates && cd ~/updates && wget https://source.puri.sm/coreboot/utility/raw/master/coreboot_util.sh -O coreboot_util.sh
chmod +x coreboot_util.sh && sudo bash coreboot_util.sh
@rowland007
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment