2024-12-27 14:01:07 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
lib.sh dependencies: support --reinstall argument
./mk dependencies debian --reinstall
Add --reinstall and it'll do:
apt-get install --reinstall
This can be useful when updating from a stable release
to a testing release. The variable, "reinstall" can be
configured for other distros, but it's currently only
configured for Debian-based distros.
Also, it can be anything. For example, you could add -y;
however, a 4th argument will not be accepted. For example,
you cannot do:
./mk dependencies debian --reinstall -y
If you do this, it'll only see --reinstall; similarly, if
you did this command:
./mk dependencies debian -y --reinstall
then -y would be passed, but not --reinstall. This is an
intentional design decision, in case you accidentally pasted
or subshelled something that outputted something undesirable,
to prevent possible abuse.
Signed-off-by: Leah Rowe <leah@libreboot.org>
2024-12-30 21:53:55 +00:00
|
|
|
pkg_add="apt-get install $reinstall"
|
2024-01-14 06:12:12 +00:00
|
|
|
pkglist=" \
|
|
|
|
autoconf autogen automake autopoint autotools-dev bc binutils-arm-none-eabi \
|
|
|
|
bison build-essential cmake curl device-tree-compiler doxygen e2fsprogs efitools \
|
|
|
|
flex gawk gcc-arm-linux-gnueabi gcc-arm-none-eabi gdb gettext git gnat help2man \
|
|
|
|
innoextract libdevmapper-dev libfdt-dev libfont-freetype-perl libfreetype6-dev \
|
2024-12-30 22:31:24 +00:00
|
|
|
libftdi-dev libfuse-dev libgnutls28-dev libgpiod-dev libjaylink-dev \
|
|
|
|
liblzma-dev libncurses5-dev ccache lz4 liblz4-dev \
|
2024-01-14 06:12:12 +00:00
|
|
|
libncurses-dev libnewlib-arm-none-eabi libopts25 libopts25-dev libpci-dev \
|
|
|
|
libpython3-dev libsdl2-dev libselinux1-dev libssl-dev libtool libusb-1.0-0 \
|
|
|
|
libusb-1.0-0-dev lz4 lzma lzma-alone m4 nasm openssl p7zip p7zip-full parted \
|
|
|
|
pciutils perl pkg-config python3 python3-distutils python3-pkg-resources \
|
|
|
|
python3-pycryptodome python3-pyelftools python3-setuptools python-is-python3 \
|
|
|
|
sharutils swig fonts-unifont unar unifont unzip uuid-dev wget zlib1g-dev \
|
2024-12-01 05:45:06 +00:00
|
|
|
g++-mipsel-linux-gnu make genisoimage mtools \
|
2024-01-14 06:12:12 +00:00
|
|
|
"
|