Skip to contentSkip to conversation

allow kernel compile with native ppc64 compiler

PATCH Andi Kleen 1 participant 1 message Oct 18, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 9 lines · Paul Mackerras
Quoted 3 lines · Olaf Hering

The zImage is a 32bit binary, but a native powerpc64-linux gcc will produce 64bit objects in arch/ppc64/boot.
This patch fixes it.

... and breaks the compile on older toolchains that don't understand -m32. We need to make the -m32 conditional on HAS_BIARCH as defined in arch/ppc64/Makefile.

Wouldn't it be more user friendly to use $(call check_gcc,-m32,) ?

-Andi