altering CFLAGS in kbuild (makefile)?

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

 



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?

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.

Regards,
Om.

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