[CLUE-Tech] Athlon = i686 in kernel 2.4.7 Makefile

Jed S. Baer thag at frii.com
Sun Mar 24 13:04:38 MST 2002


Hi Folks.

I think this is the last strangeness from the RH7.2 upgrade. Searching
through the kernel mailing list archive, I see speculation on why make
would write -march=i686 instead of march=athlon, but no real explanations
about compiler bugs or capabilities, related to using gcc 2.96 for kernel
compiles.

The answer, for the curious, is in
/usr/src/linux-2.4.7-10/arch/i386/Makefile:

  ifdef CONFIG_MK7
  CFLAGS += -march=i686 -malign-functions=4
  endif

I couldn't find the code listed in a few messages:

   ifdef CONFIG_MK7
   -CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null
>/dev/null 2>&1;     then echo "-march=athlon";
     else echo "-march=i686 -malign-functions=4"; fi) +CFLAGS +=
-march=i686 -malign-functions=4    endif

Which (tested gcc on my box) would have returned true, so march=athlon. I
guess that's from a different release of the Makefile.

I'll probably give a try to changing the Makefile, and see if I get a
stable system (or even bootable). But in the meantime, if anyone can shed
some light on this, I'd appreciate it.

TIA,
jed

-- 
"Those who expect to reap the blessings of freedom must, like men,
 undergo the fatigue of supporting it."
 - Thomas Paine



More information about the clue-tech mailing list