3 # Verify that gnu-efi is installed in the object directory for our
4 # firmware. If it isn't, build it.
8 Usage: $0: <arch> <srcdir> <objdir>
10 Check for gnu-efi libraries and header files in <objdir> and, if none
11 exist, build and install them.
13 <arch> - A gnu-efi \$ARCH argument, i.e. ia32, x86_64
14 <srcdir> - The top-level directory of the Syslinux source
15 <objdir> - The Syslinux object directory
25 if [ ! -f $objdir/include
/efi
/$ARCH/efibind.h
]; then
26 # Build the external project with a clean make environment, as
27 # Syslinux disables built-in implicit rules.
30 build
=$srcdir/efi
/build-gnu-efi.sh
31 $build $ARCH $srcdir $objdir &> /dev
/null
33 printf "Failed to build gnu-efi. "
34 printf "Execute the following command for full details: \n\n"
35 printf "$build $ARCH $srcdir $objdir\n\n"