better fix for setjmp module
This commit is contained in:
parent
a26187d7c0
commit
07daa815af
3 changed files with 14 additions and 8 deletions
|
@ -904,13 +904,6 @@ else
|
||||||
fi
|
fi
|
||||||
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([Makefile])
|
||||||
AC_CONFIG_FILES([grub-core/Makefile])
|
AC_CONFIG_FILES([grub-core/Makefile])
|
||||||
AC_CONFIG_FILES([po/Makefile])
|
AC_CONFIG_FILES([po/Makefile])
|
||||||
|
|
13
grub-core/lib/setjmp.S
Normal file
13
grub-core/lib/setjmp.S
Normal 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
|
|
@ -1214,7 +1214,7 @@ module = {
|
||||||
|
|
||||||
module = {
|
module = {
|
||||||
name = setjmp;
|
name = setjmp;
|
||||||
nodist = lib/target_cpu/setjmp.S;
|
source = lib/setjmp.S;
|
||||||
extra_dist = lib/i386/setjmp.S;
|
extra_dist = lib/i386/setjmp.S;
|
||||||
extra_dist = lib/mips/setjmp.S;
|
extra_dist = lib/mips/setjmp.S;
|
||||||
extra_dist = lib/x86_64/setjmp.S;
|
extra_dist = lib/x86_64/setjmp.S;
|
||||||
|
|
Loading…
Reference in a new issue