Re: Building of compat-wireless-old in 2.6.25 BSP kernel for PowerPC architecture

Pavel Roskin
2010-01-27T22:02:33Z

On Wed, 2010-01-27 at 18:48 +0800, PAN Sunny S K wrote:

> So what I did to build the driver is to provide the KLIB and KLIB_BUILD
> with the path of 2.6.25 source and modified the CROSS_COMPILE variable in
> the .config of the kernel to make sure it uses the MPC8377 toolchain to
> compile the source. However, the following error occurred (With my latest
> trial of the bleeding edge compat-wireless-2.6):
>
> make -C /MyProject/ltib-mpc8377ewlan-20090922/rpm/BUILD/linux-2.6.25
> M=/root/Desktop/compat-wireless-2009-12-11 modules
> make[1]: Entering directory
> `/MyProject/ltib-mpc8377ewlan-20090922/rpm/BUILD/linux-2.6.25'
> CC [M]
> /root/Desktop/compat-wireless-2009-12-11/drivers/misc/eeprom/eeprom_93cx6.o
> cc1: error: unrecognized command line option "-mno-red-zone"
> cc1: error: unrecognized command line option "-mcmodel=kernel"
> cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
> /root/Desktop/compat-wireless-2009-12-11/drivers/misc/eeprom/eeprom_93cx6.c:1:
> error: -m64 not supported in this configuration

It looks like the compiler just cannot compile the kernel code.
-maccumulate-outgoing-args is only used on the x86 architecture, so I
assume the build system is picking up x86 makefiles while using a
PowerPC compiler.

I think ARCH should be specified on the make command line in addition to
other arguments:

make ARCH=powerpc

--
Regards,
Pavel Roskin