System76 darp5, galp2, galp3, galp3-b, and galp3-c support

This commit is contained in:
Jeremy Soller
2019-02-07 16:37:47 -07:00
parent 7bbed26ca9
commit 891cc9a939
123 changed files with 10828 additions and 9 deletions

31
system76/build.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -e
export BUILD_TIMELESS=1
D="$(dirname "$(realpath "$0")")"
for N in "$@"
do
P="$D/$N"
if [ ! -d "$P" ]
then
echo "$0 [model]"
exit 1
fi
# Ensure a clean build
make distclean
# Copy motherboard configuration
cp -v "$P/config" ".config"
# Compile coreboot
make oldconfig
make seabios
time make -j$(nproc)
# Copy coreboot file to product directory
cp -v build/coreboot.rom "$P/coreboot"
done