[OpenAFS] OpenAFS 1.2.5 Won't Build Under Kernel 2.4.18-5

Marc Schmitt schmitt@inf.ethz.ch
Fri, 21 Jun 2002 12:26:52 +0200


Hi everybody,

I have a question concerning building of modules. Having a look at 
/usr/src/openafs-kernel-1.2.5/src/Makefile (`uname -s` = Linux) , the 
following two lines

CCFLAGS =  $(KDEBUG) -O2 $(FOMIT) \
         -fno-strength-reduce -pipe -march=i486 -malign-loops=2 
-malign-jumps=2 \        -malign-functions=2
DEFINES = -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF} 
${KDEFINES}

set the arch to 486 and the CPU to 586, independent of the architecture 
of the machine you are compiling on. Would it make sense to change those 
values before compiling? Assuming the machine is a PIII, arch = i386 and 
CPU = 686, for example?

TIA

Regards,
	Marc