Re: make modules in 2.6.* and viewing flags

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

 



Hello, 
Thanks ; 
What I mean is seeing the gcc flags as was in 2.4.20 kernel.
For example, when running "make modules" in 2.4.20-8 I get:
........
.......

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-8/include/linux/modversions.h  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=mga_dma  -c -o mga_dma.o
mga_dma.c
.........
.......

Is there a way to acieve the same (showing the flags) in 2.6 ?
Tia,
John


On 8/8/05, Arshad Hussain <arshad.super@xxxxxxxxx> wrote:
> John Que wrote:
> 
> >Hello,
> >Thanks.
> >I know abour make V=1   ; it indeed gives verbose info about the make
> >process but not the compilation flags.
> >I had tried rm drivers/net/eepro100.ko and
> >make V=1
> >
> >what I see is
> > Building modules, stage 2.
> >make -rR -f /work/src/from189/linux-2.6.12-rc3/scripts/Makefile.modpost
> >  scripts/mod/modpost -m  -o "a list of object files (including eepro100.o)"
> >
> >But nowhere is the compilation flags; is there a way to see them ?
> >
> >Regards,
> >John
> >
> >
> >
> >On 8/8/05, Thomas Petazzoni <thomas.petazzoni@xxxxxxxx> wrote:
> >
> >
> >>Hi,
> >>
> >>John Que wrote:
> >>
> >>
> >>>  I want to be able to see the gcc command and the flags when running
> >>>"make modules" in 1 2.6.7 kernel   (as was the default in 2.4 if I am
> >>>not wrong).
> >>>How can this be done ?
> >>>
> >>>
> >>$ make V=1
> >>
> >>Sincerly,
> >>
> >>Thomas
> >>--
> >>Thomas Petazzoni
> >>thomas.petazzoni@xxxxxxxx
> >>
> >>
> >>
> >
> >--
> >Kernelnewbies: Help each other learn about the Linux kernel.
> >Archive:       http://mail.nl.linux.org/kernelnewbies/
> >FAQ:           http://kernelnewbies.org/faq/
> >
> >
> >
> >
> here is the Makefile extract ...
> ---snip--
>     248 # If $(quiet) is empty, the whole command will be printed.
>     249 # If it is set to "quiet_", only the short version will be printed.
> --snip--
> 
> is this what you are looking for?
> 
> thanks and regards
> Arshad
> 
> 
> 
> 
>

--
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