unify build/grub/* to build/coreboot/grub
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
176722a841
commit
1c2de7f962
4
lbmk
4
lbmk
|
@ -96,8 +96,8 @@ usage()
|
|||
For each of the above modes, you may also do:
|
||||
${progname} <MODE> list
|
||||
|
||||
Example: ./build grub list, which would yield:
|
||||
$(./build grub list)
|
||||
Example: ./build coreboot list, which would yield:
|
||||
$(./build coreboot list)
|
||||
|
||||
Refer to ${project} documentation for more info.
|
||||
EOF
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
|
@ -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 $@
|
Loading…
Reference in New Issue