[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cross compiling GRUB
From: |
Klaus Reichl |
Subject: |
Cross compiling GRUB |
Date: |
Fri, 18 Jan 2002 23:27:19 +0100 |
Hi GRUBies,
As our production is done on Solaris (this is no advertisment for
Sun), I integrated GRUB in our source tree and gave it a try with
cross-compiling.
A `config.site' file for autoconf packages was already available, and
it worked, HEUREKA.
The only problem I had was with --enable-preset-menu.
The grub_DEFINE_FILE macro, which is a tool supposed to run on the
BUILD machine, used the cross-compiler (CC) and was apparently not
able to run and produce the expected PRESET_MENU file.
To fix this we need autoconf expertise wrt. cross compiling (Okuji,
you or to whom can we talk to?).
>From aclocal.m4:
AC_DEFUN(grub_DEFINE_FILE,
[AC_REQUIRE([AC_PROG_CC])
...
Here we need something along the lines of
>From glibc's configure.in:
if test $host != $build; then
AC_CHECK_PROGS(BUILD_CC, gcc cc)
fi
AC_SUBST(cross_compiling)
Any autoconf/cross-compiling specialists out there? Otherwise I'll
start experimenting on it myself.
KR
--
email: address@hidden
Klaus Reichl address@hidden
Danhausergasse 8/16 voice: +43 (1) 27722 / 3884 (job)
A-1040 Wien +43 (1) 94 137 94 (private)
+43 (6991) 94 137 94 (mobile)
- Cross compiling GRUB,
Klaus Reichl <=