System76 darp5, galp2, galp3, galp3-b, and galp3-c support
This commit is contained in:
31
system76/build.sh
Executable file
31
system76/build.sh
Executable 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
|
Reference in New Issue
Block a user