Re: altering CFLAGS in kbuild (makefile)?

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

 



On Sat, Jul 22, 2006 at 06:04:04PM -0700, Om. wrote:

> Hi,
> By adding V=1 incommand line, I could see the flags passed to gcc
> (CFLAGS) while compiling my module. Now I want to add -E to the CFLAGS
> and see the preprocessed output. How can I do this?

You could run the command you see with V=1 manually.
You can also alter the command manually and run it then.

> The reason why I need the preprocessed output is to check whether the
> macro do_div() expands correctly. I tried to use __div64_32() and
> module complains undefined symbol. I checked /proc/kallsyms and could
> not find it. At the same time, do_div() calls this function
> internally. So I am curious about the expansion of do_div() macro.

I doubt that's the problem.

Does it help to change the lib-y in the fifth line of lib/Makefile to an 
obj-y?

> Regards,
> Om.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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