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
This commit is contained in:
Tim Crawford
2020-08-04 21:49:14 -06:00
committed by Jeremy Soller
parent aa482271fd
commit f7d4ab2908

View File

@ -12,16 +12,22 @@ if which apt-get > /dev/null
then then
msg "Installing system build dependencies" msg "Installing system build dependencies"
sudo apt-get install \ sudo apt-get install \
avr-libc \
avrdude \
build-essential \ build-essential \
bison \ bison \
ccache \ ccache \
curl \ curl \
dosfstools \ dosfstools \
flashrom \
flex \ flex \
gcc-avr \
git-lfs \ git-lfs \
gnat \ gnat \
libncurses-dev \
mtools \ mtools \
nasm \ nasm \
parted \
python \ python \
python3-distutils \ python3-distutils \
sdcc \ sdcc \
@ -32,13 +38,19 @@ then
msg "Installing system build dependencies" msg "Installing system build dependencies"
sudo dnf group install c-development sudo dnf group install c-development
sudo dnf install \ sudo dnf install \
avr-gcc \
avr-libc \
avrdude \
curl \ curl \
dosfstools \ dosfstools \
flashrom \
gcc-gnat \ gcc-gnat \
git-lfs \ git-lfs \
libuuid-devel \ libuuid-devel \
mtools \ mtools \
nasm \ nasm \
ncurses-devel \
parted \
patch \ patch \
sdcc \ sdcc \
zlib-devel zlib-devel
@ -54,6 +66,14 @@ git lfs install
msg "Downloading GIT LFS artifacts" msg "Downloading GIT LFS artifacts"
git lfs pull 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" msg "Installing Rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain nightly | sh -s -- -y --default-toolchain nightly