diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-05-02 19:10:35 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-05-03 21:57:40 +0200 |
commit | 4fb1d4b3e3eb58bc6207d50d2dcfac28ff3bab03 (patch) | |
tree | b0454f411d6b4b90c33928b7af7129142e87df3c /boot/syslinux/syslinux-000-user-headers-from-sysroot.patch | |
parent | 93be225d928cf659c7a2dffd9bb3ce165a1b50b5 (diff) | |
download | buildroot-4fb1d4b3e3eb58bc6207d50d2dcfac28ff3bab03.tar.gz buildroot-4fb1d4b3e3eb58bc6207d50d2dcfac28ff3bab03.zip |
boot/syslinux: add option to install the EFI image
syslinux can now also build an EFI application.
If the target is 64-bit, we build the 64-bit EFI app,
otherwise we build the 32-bit EFI app.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Frank Hunleth <fhunleth@troodon-software.com>
Tested-by: Frank Hunleth <fhunleth@troodon-software.com>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'boot/syslinux/syslinux-000-user-headers-from-sysroot.patch')
-rw-r--r-- | boot/syslinux/syslinux-000-user-headers-from-sysroot.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/boot/syslinux/syslinux-000-user-headers-from-sysroot.patch b/boot/syslinux/syslinux-000-user-headers-from-sysroot.patch new file mode 100644 index 0000000000..5edf79f052 --- /dev/null +++ b/boot/syslinux/syslinux-000-user-headers-from-sysroot.patch @@ -0,0 +1,37 @@ +efi: look for headers and libs in the sysroot + +Currently, syslinux hard-codes search paths to /usr/.... directories. +This does not play well in cross-compilation. + +If $SYSROOT is defined, prepend it to the search paths. + +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> + +diff -durN syslinux-6.02.orig/efi/find-gnu-efi.sh syslinux-6.02/efi/find-gnu-efi.sh +--- syslinux-6.02.orig/efi/find-gnu-efi.sh 2013-10-13 19:59:03.000000000 +0200 ++++ syslinux-6.02/efi/find-gnu-efi.sh 2014-04-22 00:19:23.638483887 +0200 +@@ -9,7 +9,7 @@ + find_include() + { + for d in $include_dirs; do +- found=`find $d -name efi -type d 2> /dev/null` ++ found=`find $SYSROOT$d -name efi -type d 2> /dev/null` + if [ "$found"x != "x" ] && [ -e $found/$ARCH/efibind.h ]; then + echo $found + break; +@@ -20,12 +20,12 @@ + find_lib() + { + for d in $lib_dirs; do +- found=`find $d -name libgnuefi.a 2> /dev/null` ++ found=`find $SYSROOT$d -name libgnuefi.a 2> /dev/null` + if [ "$found"x != "x" ]; then + crt_name='crt0-efi-'$ARCH'.o' +- crt=`find $d -name $crt_name 2> /dev/null` ++ crt=`find $SYSROOT$d -name $crt_name 2> /dev/null` + if [ "$crt"x != "x" ]; then +- echo $d ++ echo $SYSROOT$d + break; + fi + fi |