Re: Conditional compilation depending on CONFIG_FOOBAR

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

 



Just to clarify more, if I put my code in something like:
#ifdef CONFIG_FOOBAR
my code
#endif

Then my module's Makefile should check if this parameter is defined in the ".config" file. How should I modify my Makefile to do that?

On Sun, Dec 11, 2011 at 10:44 PM, contemplating zombie <contemplatingzombie@xxxxxxxxx> wrote:
Hi,

I want to conditionally compile some code in module if CONFIG_FOOBAR is defined.
How can I add this check to my module's makefile?

-Thanks.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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