Re: Re: insmod: Invalid module format (2.6.4-52-default, gcc-3.3.3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Hermant...everyone....

> >CFLAGS = -g -D__KERNEL__ -DMODULE -I$(KERNEL_SOURCE)/include -O
> > -Wall

Are you sure it is $(KERNEL_SOURCE), not ${KERNEL_SOURCE} ? :)

Anyway, IMHO the source of this problem is...somehow, redefining the 
CFLAGS parameter is "dangerous". IMHO This will override the critical 
CFLAGS needed by kbuild system itself.

 The problem is, what if we want to add additional gcc parameter such as 
"-g" or "-Wall" ? From what I read, you can use EXTRA_CFLAGS. I just 
learn it from section 3.7 "Compilation flags" on 
Documentation/kbuild/makefiles.txt. 

Hope it helps

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux