Re: make modules in 2.6.* and viewing flags

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

 



Hi,

John Que wrote:

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:

As I already said previously in the thread, use "make V=1". Here is a test I made with kernel 2.6.11.11:

kostom:/usr/src/linux# touch arch/i386/kernel/reboot.c
kostom:/usr/src/linux# make
[...]
  CC      arch/i386/kernel/reboot.o
  LD      arch/i386/kernel/built-in.o
[...]
kostom:/usr/src/linux# touch arch/i386/kernel/reboot.c
kostom:/usr/src/linux# make V=1
[...]
gcc -Wp,-MD,arch/i386/kernel/.reboot.o.d -nostdinc -isystem /usr/lib/gcc-lib/i486-linux/3.3.6/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=k6 -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=reboot -DKBUILD_MODNAME=reboot -c -o arch/i386/kernel/reboot.o arch/i386/kernel/reboot.c ld -m elf_i386 -R arch/i386/kernel/vsyscall-syms.o -r -o arch/i386/kernel/built-in.o arch/i386/kernel/process.o arch/i386/kernel/semaphore.o arch/i386/kernel/signal.o arch/i386/kernel/entry.o arch/i386/kernel/traps.o arch/i386/kernel/irq.o arch/i386/kernel/vm86.o arch/i386/kernel/ptrace.o arch/i386/kernel/time.o arch/i386/kernel/ioport.o arch/i386/kernel/ldt.o arch/i386/kernel/setup.o arch/i386/kernel/i8259.o arch/i386/kernel/sys_i386.o arch/i386/kernel/pci-dma.o arch/i386/kernel/i386_ksyms.o arch/i386/kernel/i387.o arch/i386/kernel/dmi_scan.o arch/i386/kernel/bootflag.o arch/i386/kernel/doublefault.o arch/i386/kernel/quirks.o arch/i386/kernel/cpu/built-in.o arch/i386/kernel/timers/built-in.o arch/i386/kernel/acpi/built-in.o arch/i386/kernel/reboot.o arch/i386/kernel/mpparse.o arch/i386/kernel/apic.o arch/i386/kernel/nmi.o arch/i386/kernel/io_apic.o arch/i386/kernel/module.o arch/i386/kernel/sysenter.o arch/i386/kernel/vsyscall.o arch/i386/kernel/early_printk.o
[...]

So with V=1, you have all gcc flags.

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/


[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