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:
committed by
Jeremy Soller
parent
aa482271fd
commit
f7d4ab2908
@ -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
|
||||
|
Reference in New Issue
Block a user