From f7d4ab29086fe79a93d14eee61c0024ce1026d58 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 4 Aug 2020 21:49:14 -0600 Subject: [PATCH] scripts: Update deps.sh - Clone submodules when installing deps - Install coreboot commit hook with deps - Add some missing dependencies - AVR tools are required for EC development - flashrom for external flashing of SPI flash ROM - ncurses is used for coreboot menuconfig - parted is used by firmware apps for creating a bootable image --- scripts/deps.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/deps.sh b/scripts/deps.sh index 1344aef..6490c46 100755 --- a/scripts/deps.sh +++ b/scripts/deps.sh @@ -12,16 +12,22 @@ if which apt-get > /dev/null then msg "Installing system build dependencies" sudo apt-get install \ + avr-libc \ + avrdude \ build-essential \ bison \ ccache \ curl \ dosfstools \ + flashrom \ flex \ + gcc-avr \ git-lfs \ gnat \ + libncurses-dev \ mtools \ nasm \ + parted \ python \ python3-distutils \ sdcc \ @@ -32,13 +38,19 @@ then msg "Installing system build dependencies" sudo dnf group install c-development sudo dnf install \ + avr-gcc \ + avr-libc \ + avrdude \ curl \ dosfstools \ + flashrom \ gcc-gnat \ git-lfs \ libuuid-devel \ mtools \ nasm \ + ncurses-devel \ + parted \ patch \ sdcc \ zlib-devel @@ -54,6 +66,14 @@ git lfs install msg "Downloading GIT LFS artifacts" git lfs pull +msg "Initializing submodules" +git submodule update --init --recursive + +msg "Installing coreboot commit hook" +curl -sSf https://review.coreboot.org/tools/hooks/commit-msg \ + -o .git/modules/coreboot/hooks/commit-msg && \ + chmod +x .git/modules/coreboot/hooks/commit-msg + msg "Installing Rust" curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | sh -s -- -y --default-toolchain nightly