Don't use HOSTCFLAGS in BOOTCFLAGS
Josh Boyer
jwboyer at linux.vnet.ibm.com
Wed May 30 00:21:30 EST 2007
On Tue, 2007-05-29 at 15:37 +1000, David Gibson wrote:
> In the bootwrapper code for powerpc, we include HOSTCFLAGS into the
> BOOTCFLAGS used for buildinf the zImage wrapper code. Since the
> wrapper code is not host code, this makes no sense. This patch
> removes the use of HOSTCFLAGS here, instead including directly into
> BOOTCFLAGS those flags from the normal kernel CFLAGS which also make
> sense in the bootwrapper code.
>
> In particular, this makes the bootwrapper use -msoft-float, preventing
> the compiler from generating floating point instructions. Previously,
> under some circumstances the compiler could generate floating point
> instructions in the bootwrapper which would cause exceptions on
> embedded CPUS which don't have floating point support.
This is essentially the cleanup Paul asked me to do of my original
-msoft-float addition. Matches the patch I have sitting locally that I
haven't gotten around to sending out yet.
>
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
Acked-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
More information about the Linuxppc-dev
mailing list