diff options
Diffstat (limited to 'script/build')
| -rwxr-xr-x | script/build/boot/roms | 2 | ||||
| -rwxr-xr-x | script/build/coreboot/grub (renamed from script/build/grub/payload) | 14 | ||||
| -rwxr-xr-x | script/build/grub/utils | 29 | 
3 files changed, 14 insertions, 31 deletions
| diff --git a/script/build/boot/roms b/script/build/boot/roms index 9736ee7f..e111fdb0 100755 --- a/script/build/boot/roms +++ b/script/build/boot/roms @@ -166,7 +166,7 @@ build_dependency_grub()  		    rebuild_grub="y" && break  	done  	[ "${rebuild_grub}" = "y" ] || return 0 -	x_ ./build grub payload +	x_ ./build coreboot grub  }  build_dependency_uboot() diff --git a/script/build/grub/payload b/script/build/coreboot/grub index 03549ef6..7f448e24 100755 --- a/script/build/grub/payload +++ b/script/build/coreboot/grub @@ -22,11 +22,23 @@ main()  handle_dependencies()  {  	[ -d "grub/" ] || x_ ./update project repo grub -	[ -f "grub/grub-mkstandalone" ] || x_ ./build grub utils +	[ -f "grub/grub-mkstandalone" ] || build_grub_utils  	[ -d "${elfdir}" ] || x_ mkdir -p "${elfdir}"  	x_ rm -f "${elfdir}/"*  } +build_grub_utils() +{ +	( +	x_ cd grub/ +	[ ! -d Makefile ] || x_ make distclean +	x_ ./bootstrap --gnulib-srcdir=gnulib/ --no-git +	x_ ./autogen.sh +	x_ ./configure --with-platform=coreboot +	x_ make -j$(nproc) FS_PAYLOAD_MODULES="" +	) +} +  build_keymap_configs()  {  	for keylayoutfile in "${grubcfgsdir}/keymap/"*.gkb; do diff --git a/script/build/grub/utils b/script/build/grub/utils deleted file mode 100755 index edb78bb1..00000000 --- a/script/build/grub/utils +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env sh -# SPDX-License-Identifier: GPL-3.0-or-later -# SPDX-FileCopyrightText: 2014, 2015, 2020, 2023 Leah Rowe <leah@libreboot.org> -# SPDX-FileCopyrightText: 2015, 2016 Klemens Nanni <contact@autoboot.org> - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -. "include/err.sh" - -main() -{ -	[ -d "grub/" ] || x_ ./update project repo grub -	build_grub -} - -build_grub() -{ -	( -	x_ cd grub/ -	[ ! -d Makefile ] || x_ make distclean -	x_ ./bootstrap --gnulib-srcdir=gnulib/ --no-git -	x_ ./autogen.sh -	x_ ./configure --with-platform=coreboot -	x_ make -j$(nproc) FS_PAYLOAD_MODULES="" -	) -} - -main $@ | 
