linux-mips
[Top] [All Lists]

Re: kernel modules

To: David Kesselring <dkesselr@mmc.atmel.com>
Subject: Re: kernel modules
From: Zhang Haitao <zhanght@netpower.com.cn>
Date: Tue, 21 Oct 2003 05:00:33 +0800
Cc: linux-mips@linux-mips.org
In-reply-to: <20031020183922.GD15997@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.GSO.4.44.0310201029090.12930-100000@ares.mmc.atmel.com> <20031020183922.GD15997@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.2.1) Gecko/20030225
On Mon, Oct 20, Ralf Baechle wrote:


You're _not_ using the same options as the kernel's Makefile does for
building modules.

  Ralf

Hi, modules compiled using these parameters are working on my 2.4.21 SMP kernel:

CFLAGS="-I .../include/asm/gcc -D__KERNEL__ -I.../include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=XX -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls"

XX = your chip style

Zhang Haitao


<Prev in Thread] Current Thread [Next in Thread>