From 0ed7250e1e35c94372aeeef01a376699bd235b37 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Wed, 28 Aug 2024 22:21:13 +0300 Subject: extra/efifs: Bad hacks --- extra/efifs/PKGBUILD | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 extra/efifs/PKGBUILD diff --git a/extra/efifs/PKGBUILD b/extra/efifs/PKGBUILD new file mode 100644 index 00000000..3b2cb869 --- /dev/null +++ b/extra/efifs/PKGBUILD @@ -0,0 +1,7 @@ +# Does w32-mingw32-gcc exist? I thought it was w64. +eval "$(declare -f prepare | sed 's@^}$@sed -i "s/MINGW_HOST = w32/MINGW_HOST = w64/" EfiFs/Make.common EfiFs-ia32/Make.common; }@')" + +# I can't figure this out, so bodge it instead +# error adding symbols: Archive has no index; run ranlib to add one +# Adding "s" to the ar command doesn't do it either +eval "$(declare -f build | sed "s@make -C EfiFs-ia32 ARCH='ia32'@make -C EfiFs-ia32 ARCH='ia32' || true; i686-w64-mingw32-ranlib EfiFs-ia32/grub/libgrub.a; make -C EfiFs-ia32 ARCH='ia32'@")" -- cgit v1.2.3-70-g09d2