Jeremy Soller 83b35f6870
Revert "scripts: Check coreboot config is correct"
This reverts commit af5041f90befc28d8d99efa052d5823b2b1833c6.
2021-02-26 15:28:05 -07:00

23 lines
446 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$1" -o ! -e "$1" -o -z "$2" ]
then
echo "$0 [coreboot.config] [coreboot.rom]" >&2
exit 1
fi
CONFIG="$(realpath "$1")"
COREBOOT="$(realpath "$2")"
pushd coreboot >/dev/null
if [ ! -d util/crossgcc/xgcc ]
then
make CPUS="$(nproc)" crossgcc-i386
fi
make distclean
make defconfig KBUILD_DEFCONFIG="${CONFIG}"
make --jobs="$(nproc)"
cp -v "build/coreboot.rom" "${COREBOOT}"
popd >/dev/null