want to verify equivalence of Kconfig variants

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

 



  i'm fairly sure i know the answer to this, but i figured i'd run it
by others just to make sure i'm not missing anything subtle.

 in drivers/video/omap2/Makefile, we see:

... snip ...
obj-$(CONFIG_OMAP2_DSS) += dss/
obj-$(CONFIG_FB_OMAP2) += omapfb/
obj-y += displays/
... snip ...

and when i see "obj-y", i like to assume that's a component that will
be compiled unconditionally.  but if you look at the Kconfig file in
the displays/ directory, you see:

menu "OMAP2/3 Display Device Drivers"
        depends on OMAP2_DSS
... entire file contents ...
endmenu

  but that suggests that that entire subdirectory depends on
OMAP2_DSS, so one could remove the dependency from that Kconfig file
and just move it up to the Makefile above:

obj-$(CONFIG_OMAP2_DSS) += displays/

correct?  i prefer that approach since the dependency is obvious from
the Makefile, without having to descend into the directory itself to
learn of it.

  thoughts?  is there anything i'm not noticing about this?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
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