better fix for setjmp module

This commit is contained in:
BVK Chaitanya 2010-08-20 11:39:47 +05:30
parent a26187d7c0
commit 07daa815af
3 changed files with 14 additions and 8 deletions

View file

@ -904,13 +904,6 @@ else
fi
fi
# Copy */setjmp.S to target_cpu/
AC_CONFIG_COMMANDS([grub-core/lib/target_cpu],
[mkdir -p grub-core/lib/target_cpu])
AC_CONFIG_COMMANDS([setjmp.S],
[cp -rp $srcdir/grub-core/lib/$target_cpu/setjmp.S grub-core/lib/target_cpu/],
[target_cpu=$target_cpu srcdir=$srcdir])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([grub-core/Makefile])
AC_CONFIG_FILES([po/Makefile])

13
grub-core/lib/setjmp.S Normal file
View file

@ -0,0 +1,13 @@
#if defined(__i386__)
#include "./i386/setjmp.S"
#elif defined(__x86_64__)
#include "./x86_64/setjmp.S"
#elif defined(__sparc__)
#include "./sparc64/setjmp.S"
#elif defined(__mips__)
#include "./mips/setjmp.S"
#elif defined(__powerpc__)
#include "./powerpc/setjmp.S"
#else
#error "Unknwon target cpu type"
#endif

View file

@ -1214,7 +1214,7 @@ module = {
module = {
name = setjmp;
nodist = lib/target_cpu/setjmp.S;
source = lib/setjmp.S;
extra_dist = lib/i386/setjmp.S;
extra_dist = lib/mips/setjmp.S;
extra_dist = lib/x86_64/setjmp.S;