finding inappropriate "tristate" variables that should be bool?

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

 



  a while back, i wrote a script (whose logic i don't even recognize
anymore) that scanned the kernel tree, looking for CONFIG variables
that were defined as "tristate" but whose usage in a Makefile seemed
to suggest that they should simply be boolean.

  for instance, one of the variables flagged:

scripts/Makefile IKCONFIG
./init/Kconfig:config IKCONFIG
./init/Kconfig-	tristate "Kernel .config support"

sure enough, if you run "make menuconfig", under "General setup," the
selection "Kernel .config support" can be selected as modular, even
though that doesn't seem to make much sense since its usage in
scripts/Makefile is:

  hostprogs-$(CONFIG_IKCONFIG)     += bin2c

for which a modular selection seems weird.  does that make any sense?

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Linked In:                             http://www.linkedin.com/in/rpjday
Twitter:                                       http://twitter.com/rpjday
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux