5 # Initialise the gnu-efi submodule and ensure the source is up-to-date.
6 # Then build and install it for the given architecture.
10 Usage: $0: <arch> <objdir>
12 Build the <arch> gnu-efi libs and header files and install in <objdir>.
14 <arch> - A gnu-efi \$ARCH argument, i.e. ia32, x86_64
15 <objdir> - The Syslinux object directory
22 objdir
="$(readlink -f $2)"
24 if [ ! -e ..
/version.h
]; then
25 printf "build-gnu-efi.sh: Cannot be run outside Syslinux object tree\n"
32 git submodule update
--init
35 mkdir
-p "$objdir/gnu-efi"
38 EFIDIR
="$(readlink -f "$objdir/..
/gnu-efi
/gnu-efi-3.0
")"
40 make SRCDIR
="$EFIDIR" TOPDIR
="$EFIDIR" -f "$EFIDIR/Makefile" ARCH
=$ARCH
41 make SRCDIR
="$EFIDIR" TOPDIR
="$EFIDIR" -f "$EFIDIR/Makefile" ARCH
=$ARCH PREFIX
="$objdir" install