Skip to content
Snippets Groups Projects
Commit 8fadf410 authored by Sertonix's avatar Sertonix Committed by Timo Teräs
Browse files

main/grub: prefix custom variable with _

parent fd6b2b3a
No related branches found
No related tags found
1 merge request!60428main/grub: various improvements
......@@ -24,16 +24,16 @@ subpackages="
# currently grub only builds on x86*, aarch64 and ppc* systems
case "$CARCH" in
x86) flavors="efi bios";;
x86_64) flavors="efi bios xenhost xenhost_pvh";;
aarch64|arm*) flavors="efi";;
mips*) flavors="qemu_mips";;
riscv*) flavors="efi";;
ppc*) flavors="ieee1275"; makedepends="$makedepends powerpc-utils" ;;
s390x) flavors="emu" ;;
loongarch64) flavors="efi" ;;
x86) _flavors="efi bios";;
x86_64) _flavors="efi bios xenhost xenhost_pvh";;
aarch64|arm*) _flavors="efi";;
mips*) _flavors="qemu_mips";;
riscv*) _flavors="efi";;
ppc*) _flavors="ieee1275"; makedepends="$makedepends powerpc-utils" ;;
s390x) _flavors="emu" ;;
loongarch64) _flavors="efi" ;;
esac
for f in $flavors; do
for f in $_flavors; do
[ "$f" = "xenhost_pvh" ] && continue # xenhost_pvh shipped in the xenhost subpackage
subpackages="$subpackages $pkgname-$f"
done
......@@ -103,7 +103,7 @@ _build_flavor() {
build() {
local f
for f in $flavors; do
for f in $_flavors; do
case "$f" in
bios) CFLAGS="${CFLAGS/-fno-plt/}" \
_build_flavor $f --with-platform=pc;;
......@@ -178,7 +178,7 @@ _install_flavor() {
package() {
# install BIOS & EFI version into the same directory
# and overwrite similar files.
for f in $flavors; do
for f in $_flavors; do
_install_flavor $f
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment