Remove most of Ferass's lbmk contributions
The primary purpose of my intense auditing has
been to improve lbmk's coding style and fix bugs
but there is a secondary purpose: know precisely
who owns what, because I want to re-license as
much as possible of lbmk under *MIT*, instead of
the current GNU licensing. MIT is vastly superior,
because it grants *actual* freedom to the user,
permits *sublicensing* and it is vastly more
compatible with other GPL combinations; for
example, MIT license is compatible with GPL2-only
whereas lbmk's current mix of GPLv3-or-later and
GPLv3-only is legally incompatible with GPLv2-only.
Re-licensing under MIT will most likely result in
more contributions to Libreboot's build system in
the future, especially as it will attract a lot
more commercial interest. Contrary to the popular
arguments, copyleft is a liability to the free
software movement and results in less code being
written; in practise, permissively licensed code
gets more public contributions, including from
commercial entities, even if companies can
theoretically make something proprietary out of
it (in practise, anyone inclined can just use the
upstream and proprietary forks almost always die).
Copyleft propaganda is fundamentally flawed. See:
<https://unixsheikh.com/articles/the-problems-with-the-gpl.html>
Anyway, I've been doing a combination of:
* Seeking permission from other copyright holders,
for re-licensing
* Deleting, or moving, other contributions; for
example, splitting certain contributions into
separate files so that originally modified files
become unencumbered. This latter solution is a
result of *code cleanup* arising from the audit.
For Ferass's contributions, I opted to seek
*permission*, and permission was denied. In full compliance
with this legal imperative, I'm acting accordingly; this
commit removes all of Ferass's changes that converted lbmk
to posix shell scripts, thus removing his copyright on the
affected files, bypassing his authority entirely. Therefore,
lbmk is largely now bash-dependent. In practise, nobody is
going to use anything other than a GNU system to build
Libreboot, because many projects that Libreboot makes use
of rely heavily on GNU; for example, coreboot's build
system makes heavy use of GNU-specific extensions in *GNU
Make*, and likely contains many bashisms. Of course,
Libreboot also compiles GNU GRUB.
I would much rather have MIT-licensed Bash scripts
than GPL-licensed posix SCL scripts.
This reverts the changes from Ferass El Hafidi,
for the following commits, with some exceptions:
* 7f5dfebf7d37c56d9c7993aaa17c59070cb5aec9
* f787044642236917c9c4dbcaa48a6b0648097db0
Exception:
download/mrc not reverted, because that was
already a fork of an existing script under
coreboot's build system, and their script was
GPLv2. i cannot/will not re-license this file
(ergo,
7f5dfebf7d37c56d9c7993aaa17c59070cb5aec9
change remains intact, on this file)
resources/scripts/build/boot/roms_helper, these changes
have been kept:
* 7e6691e9 - Add ARMv7 and AArch64 support
* dec2d720 - add myself in the build/roms_helper script
(added 2021 copyright for the change below)
* b7405656 - Workaround for grub's slow boot
^ these changes will be re-factored, splitting them
out of the file into a new file. This will be done in
a future lbmk revision. (in some cases, it makes sense
to keep a change but split it, allowing the main file to
be re-licensed without the change in it)
This is part of a much larger series of
licensing audits. It's likely that lbmk will
be posix-compliant (in its shell scripts)
again some day, because I'm planning to rewrite
most of these scripts (the ones modified in this
patch), and many of them (e.g. individual download
scripts) are subject to future deletion in a planned
overhaul of the download logic for third party
projects.
In addition: these changes are being kept (no attempt
to re-license them will be made):
* cff081c6 - Fix grub's slow boot (1 year, 5 months ago) <Vitali64>
* 4c851889 - Add macbook*1 16mb configs (1 year, 6 months ago) <Vitali64>
Ferass's work that remains will be split into dedicated
files containing them, where feasible.
In the case of grub.cfg (for GNU GRUB), I don't care
because it's a script for an engine (GRUB shell) that's
under GPL anyway, so who really cares about MIT license.
Signed-off-by: Leah Rowe <leah@libreboot.org>
2023-05-25 20:54:59 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-05-18 12:56:12 +00:00
|
|
|
|
|
|
|
# ubuntu2004 script: installs build dependencies for Ubuntu 20.04
|
|
|
|
#
|
2021-11-18 07:13:54 +00:00
|
|
|
# Copyright (C) 2014, 2015, 2021 Leah Rowe <info@minifree.org>
|
2022-11-14 00:51:12 +00:00
|
|
|
# Copyright (C) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
|
2022-12-16 18:45:54 +00:00
|
|
|
# Copyright (C) 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
2021-05-18 12:56:12 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2021-11-18 07:13:54 +00:00
|
|
|
# the Free Software Foundation, version 3 of the License.
|
2021-05-18 12:56:12 +00:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
|
2022-12-16 18:45:54 +00:00
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
2021-05-18 12:56:12 +00:00
|
|
|
printf "This script must be run as root\n"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Duplications are intentional. Please do not re-factor.
|
|
|
|
#
|
|
|
|
# This is so that they can moved to separate scripts.
|
|
|
|
#
|
|
|
|
|
|
|
|
apt-get -y install wget
|
|
|
|
|
|
|
|
# For downloading source code
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
|
|
|
apt-get -y install git
|
|
|
|
|
|
|
|
# For Tianocore and iPXE
|
|
|
|
# TODO: check whether this is the full list
|
|
|
|
|
|
|
|
apt-get -y install uuid-dev nasm
|
|
|
|
|
|
|
|
# For building source code:
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
|
|
|
apt-get -y install build-essential
|
|
|
|
|
|
|
|
# for running the crostool script (to get mrc.bin file for t440p)
|
|
|
|
apt-get -y install sharutils curl parted e2fsprogs unzip
|
|
|
|
|
|
|
|
# to use the right software versions and links for compiling
|
|
|
|
apt-get -y install pkg-config
|
|
|
|
|
|
|
|
# for cross-compiling ARM binaries
|
|
|
|
apt-get -y install gcc-arm-linux-gnueabi
|
|
|
|
|
|
|
|
[ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
|
|
|
|
arch=${?}
|
|
|
|
|
|
|
|
# For cross-compiling i686 target on x86_64 host.
|
|
|
|
if [ "${arch}" -eq 0 ]; then
|
|
|
|
apt-get -y install gcc-multilib libc6-i386 libc6-dev-i386
|
|
|
|
apt-get -y install lib32stdc++6 g++-multilib dh-autoreconf
|
|
|
|
# recommended, but not sure what for:
|
|
|
|
apt-get -y install lib32tinfo-dev
|
|
|
|
fi
|
|
|
|
|
2021-11-01 02:51:10 +00:00
|
|
|
# Memtest86+ build dependencies
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
2022-11-18 23:00:43 +00:00
|
|
|
apt-get -y install build-essential python3
|
2021-11-01 02:51:10 +00:00
|
|
|
|
2021-05-18 12:56:12 +00:00
|
|
|
# i945-pwm build dependencies
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
|
|
|
apt-get -y install build-essential perl
|
|
|
|
|
|
|
|
# Coreboot build dependencies (also requires build-essential and git)
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
2023-05-14 09:33:35 +00:00
|
|
|
apt-get -y install libncurses5-dev doxygen iasl gdb flex bison \
|
|
|
|
build-essential git libssl-dev gnat
|
2021-05-18 12:56:12 +00:00
|
|
|
|
|
|
|
# For cross-compiling i686 target on x86_64 host.
|
|
|
|
[ "${arch}" -eq 0 ] && apt-get -y install lib32ncurses5-dev
|
|
|
|
|
|
|
|
# GRUB build dependencies (also requires build-essential, bison and flex)
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
2023-05-14 09:33:35 +00:00
|
|
|
apt-get -y install ttf-unifont libopts25 libselinux1-dev autogen m4 autoconf \
|
|
|
|
help2man libopts25-dev libfont-freetype-perl automake \
|
|
|
|
autotools-dev build-essential bison flex libfuse-dev \
|
|
|
|
liblzma-dev gawk libdevmapper-dev libtool \
|
|
|
|
libfreetype6-dev gettext
|
2021-05-18 12:56:12 +00:00
|
|
|
|
|
|
|
# BucTS build dependencies (external script)
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
|
|
|
apt-get -y install build-essential
|
|
|
|
|
|
|
|
# Flashrom build dependencies (also requires build-essential)
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
2023-05-14 09:33:35 +00:00
|
|
|
apt-get -y install libpci-dev pciutils zlib1g-dev libftdi-dev \
|
|
|
|
build-essential libusb-1.0-0-dev libusb-1.0 \
|
|
|
|
libusb-1.0-0-dev libusb-dev
|
2021-05-18 12:56:12 +00:00
|
|
|
|
|
|
|
# For cross-compiling i686 target on x86_64 host.
|
|
|
|
[ "${arch}" -eq 0 ] && apt-get -y install lib32z1-dev
|
2022-11-14 00:51:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Blobs building dependencies (for me)
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
2023-04-01 16:27:35 +00:00
|
|
|
apt-get -y install innoextract p7zip p7zip-full
|