]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Config.in files: use if/endif instead of 'depends on' for main symbol
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Fri, 20 Dec 2013 21:31:30 +0000 (22:31 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 Dec 2013 11:21:39 +0000 (12:21 +0100)
In the Config.in file of package foo, it often happens that there are other
symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense
when foo itself is enabled. There are two ways to express this: with
    depends on BR2_PACKAGE_FOO
in each extra symbol, or with
    if BR2_PACKAGE_FOO
        ...
    endif
around the entire set of extra symbols.

The if/endif approach avoids the repetition of 'depends on' statements on
multiple symbols, so this is clearly preferred. But even when there is only
one extra symbol, if/endif is a more logical choice:
- it is future-proof for when extra symbols are added
- it allows to have just one strategy instead of two (less confusion)

This patch modifies the Config.in files accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
60 files changed:
boot/syslinux/Config.in
package/binutils/Config.in
package/cppcms/Config.in
package/cvs/Config.in
package/dbus/Config.in
package/dhcp/Config.in
package/directfb-examples/Config.in
package/e2fsprogs/Config.in
package/efl/libedje/Config.in
package/evtest/Config.in
package/gadgetfs-test/Config.in
package/gettext/Config.in
package/gnutls/Config.in
package/googlefontdirectory/Config.in
package/gpsd/Config.in
package/haserl/Config.in
package/input-tools/Config.in
package/kexec/Config.in
package/kismet/Config.in
package/kmod/Config.in
package/lcdproc/Config.in
package/libarchive/Config.in
package/libcurl/Config.in
package/libdnet/Config.in
package/libidn/Config.in
package/libmicrohttpd/Config.in
package/libmpeg2/Config.in
package/libnfc/Config.in
package/libnspr/Config.in
package/lighttpd/Config.in
package/links/Config.in
package/live555/Config.in
package/madplay/Config.in
package/matchbox/Config.in
package/nano/Config.in
package/ncftp/Config.in
package/netsnmp/Config.in
package/nfs-utils/Config.in
package/openssl/Config.in
package/polarssl/Config.in
package/pppd/Config.in
package/proftpd/Config.in
package/pulseaudio/Config.in
package/qtuio/Config.in
package/rsh-redone/Config.in
package/schifra/Config.in
package/sdl_image/Config.in
package/sdl_sound/Config.in
package/sg3_utils/Config.in
package/speex/Config.in
package/taglib/Config.in
package/tcl/Config.in
package/tcpdump/Config.in
package/tiff/Config.in
package/tzdata/Config.in
package/udpcast/Config.in
package/usbutils/Config.in
package/vim/Config.in
package/wireless_tools/Config.in
package/zeromq/Config.in

index 1928651ba395ae98b840de53081546be0024a0fe..2c39e65157353d366511afde361556707cd7a3f3 100644 (file)
@@ -7,12 +7,14 @@ config BR2_TARGET_SYSLINUX
 
          http://syslinux.org
 
+if BR2_TARGET_SYSLINUX
+
 config BR2_TARGET_SYSLINUX_ISOLINUX
        bool "Install isolinux"
-       depends on BR2_TARGET_SYSLINUX
        default y
 
 config BR2_TARGET_SYSLINUX_PXELINUX
        bool "Install pxelinux"
-       depends on BR2_TARGET_SYSLINUX
        default y
+
+endif
index 38d519a4c2d1be5c2a0bb4d5fe3ccd4c1014b612..e1f77e5fa42b84311dc6e359e8903c3002309987 100644 (file)
@@ -5,9 +5,10 @@ config BR2_PACKAGE_BINUTILS
        help
          Install binutils on the target
 
+if BR2_PACKAGE_BINUTILS
+
 config BR2_PACKAGE_BINUTILS_TARGET
        bool "binutils binaries"
-       depends on BR2_PACKAGE_BINUTILS
        help
          The GNU Binutils are a collection of binary tools:
 
@@ -16,3 +17,5 @@ config BR2_PACKAGE_BINUTILS_TARGET
          and others...
 
          http://www.gnu.org/software/binutils/
+
+endif
index c5d64cedd050fbe45295c4e8ec02a7526de746da..2df83ba42dc3ccf07ed447942d588def61358b1b 100644 (file)
@@ -20,14 +20,17 @@ config BR2_PACKAGE_CPPCMS
 
          http://cppcms.com
 
+if BR2_PACKAGE_CPPCMS
+
 config BR2_PACKAGE_CPPCMS_ICU
        bool "enable icu support"
-       depends on BR2_PACKAGE_CPPCMS
        depends on !BR2_arc # icu -> atomic builtins
        select BR2_PACKAGE_ICU
        help
          Using ICU allows advanced localization features into CppCMS,
          in another hand ICU is heavier than iconv.
 
+endif
+
 comment "cppcms needs an (e)glibc toolchain w/ C++"
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
index 6a8b037a29d6289809d8b221cf9d22b66b3ef742..003696160135492c3f5ed8508d42463037b6b600 100644 (file)
@@ -9,12 +9,15 @@ config BR2_PACKAGE_CVS
 
          http://www.nongnu.org/cvs/
 
+if BR2_PACKAGE_CVS
+
 config BR2_PACKAGE_CVS_SERVER
        bool "server support"
-       depends on BR2_PACKAGE_CVS
        help
          Enable cvs server code
 
+endif
+
 comment "cvs needs a toolchain w/ wchar"
        depends on BR2_USE_MMU
        depends on !BR2_USE_WCHAR
index 9c9e3f8b27703484c20c1270aed49e974a088fe6..97c9ee9acce675fe1f4283a091079d034d92e2f1 100644 (file)
@@ -8,9 +8,10 @@ config BR2_PACKAGE_DBUS
 
          http://www.freedesktop.org/wiki/Software/dbus
 
+if BR2_PACKAGE_DBUS
+
 choice
        prompt "XML library to use"
-       depends on BR2_PACKAGE_DBUS
        default BR2_DBUS_EXPAT
        help
          Select the XML library to use with D-Bus. Select Expat
@@ -27,6 +28,8 @@ choice
 
 endchoice
 
+endif
+
 comment "dbus needs a toolchain w/ threads"
        depends on BR2_USE_MMU
        depends on !BR2_TOOLCHAIN_HAS_THREADS
index 7944edefc9c5f5bbdccd482499729de60b4a5f80..99b4eec3317d57ce3a931a70690992ce6665b791 100644 (file)
@@ -7,9 +7,10 @@ config BR2_PACKAGE_DHCP
 
          http://www.isc.org/products/DHCP
 
+if BR2_PACKAGE_DHCP
+
 config BR2_PACKAGE_DHCP_SERVER
        bool "dhcp server"
-       depends on BR2_PACKAGE_DHCP
        help
          DHCP server from the ISC DHCP distribution.
 
@@ -21,14 +22,13 @@ config BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK
 
 config BR2_PACKAGE_DHCP_RELAY
        bool "dhcp relay"
-       depends on BR2_PACKAGE_DHCP
        help
          DHCP relay agent from the ISC DHCP distribution.
 
 
 config BR2_PACKAGE_DHCP_CLIENT
        bool "dhcp client"
-       depends on BR2_PACKAGE_DHCP
        help
          DHCP client from the ISC DHCP distribution.
 
+endif
index afd6d6d5a33bd3000a7c3c6d81767a410aa047b2..51dd288d5a744d92528c47e6974aa45e1c8d5940 100644 (file)
@@ -8,9 +8,10 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES
 
          http://directfb.org/downloads/Extras/README.DirectFB-examples
 
+if BR2_PACKAGE_DIRECTFB_EXAMPLES
+
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
        bool "usr/bin/df_andi"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Penguin demo, press 'space' to form convergence logo,
          's'/'d' to spawn/destroy 'a' penguin, 'r' to revive penguin
@@ -18,68 +19,57 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD
        bool "usr/bin/df_bltload"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Reads information from /proc/bltstat.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD
        bool "usr/bin/df_cpuload"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          CPU Load with data from /proc/stat.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER
        bool "usr/bin/df_databuffer"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Simple test application for data buffers.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD
        bool "usr/bin/df_dioload"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Disk IO with data from /proc/stat.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK
        bool "usr/bin/df_dok"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          DirectFB benchmark application, runs some tests and
          displays benchmark results afterwards.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST
        bool "usr/bin/df_drivertest"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Tool to check drivers for bugs and accuracy.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE
        bool "usr/bin/df_fire"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          The famous fire effect ported to DirectFB (16 bpp only).
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP
        bool "usr/bin/df_flip"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Raw Flip() benchmark.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS
        bool "usr/bin/df_fonts"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Takes a list of font files and shows character tables.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT
        bool "usr/bin/df_input"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Test application for input devices.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
        bool "usr/bin/df_joystick"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          A colored version of df_particle, fointain can be moved with
          joystick. The particles of different colors can be spawned
@@ -87,7 +77,6 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
        bool "usr/bin/df_knuckles"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          3D skull drawn using triangles that can be rotated using
          the mouse. 'Space' switches to wireframe, 'b' toggles
@@ -95,25 +84,21 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER
        bool "usr/bin/df_layer"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Simple videoplayer with layers.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX
        bool "usr/bin/df_matrix"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Testing SetMatrix() for free transforms.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX_WATER
        bool "usr/bin/df_matrix_water"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Same as df_matrix, but using new Water API.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
        bool "usr/bin/df_neo"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Port from a gdk-pixbuf demo to DirectFB, uses scaling,
          alpha blending and color modulation, use cursor keys and
@@ -121,62 +106,55 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD
        bool "usr/bin/df_netload"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Network statistica from /proc/net/dev.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE
        bool "usr/bin/df_palette"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          A example blitting from a surface with a
          rotating/morphing palette.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE
        bool "usr/bin/df_particle"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          A moving fountain consisting of alphablended rectangles,
          nice and fast if hardware accelerated.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PORTER
        bool "usr/bin/df_porter"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Shows porter/duff blending rules.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS
        bool "usr/bin/df_stress"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Stress tests surface manager, for debugging purposes only.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE
        bool "usr/bin/df_texture"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          A simple texture example. The 3d windows can be rotated
          with the mouse.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO
        bool "usr/bin/df_video"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Shows window stack with alpha blending and video playback
          in a moving window.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO_PARTICLE
        bool "usr/bin/df_video_particle"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Same as df_particle, but the rectangles have been
          replaced by a video (via video4linux). Nice color effects.
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_WINDOW
        bool "usr/bin/df_window"
-       depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
        help
          Simple demonstration of the DirectFB window stack, follow
          the instructions in the upper left corner. Pass a video
          device file or a movie file on the command-line to enable
          video playback in one of the windows.
+
+endif
index 1d1e174f4585004f46b80f0d1c89d84a423f3139..7775e944e20abe06355941427f1ce643a5dd2de1 100644 (file)
@@ -79,7 +79,6 @@ config BR2_PACKAGE_E2FSPROGS_MKE2FS
 config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
        bool "mklost+found"
        default y
-       depends on BR2_PACKAGE_E2FSPROGS
 
 config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
        bool "resize2fs"
index 4c3027417db60487213be5730977d3f96a4cbed3..4a0831a426ae2077e59b68c826e2eabb3cccb20b 100644 (file)
@@ -14,9 +14,12 @@ config BR2_PACKAGE_LIBEDJE
 
          http://trac.enlightenment.org/e/wiki/Edje
 
+if BR2_PACKAGE_LIBEDJE
+
 config BR2_PACKAGE_LIBEDJE_CC
        bool "build edje_cc"
-       depends on BR2_PACKAGE_LIBEDJE
        help
          Build and install the Edje compiler for the target. Normally this
          is not required.
+
+endif
index e8f9e3736729cc700f96bc154973f30a4ffbfa06..77821c4c9e7a17d61a18b7c938e526c66c8fbc0e 100644 (file)
@@ -8,11 +8,14 @@ config BR2_PACKAGE_EVTEST
 
          http://www.freedesktop.org/wiki/Evtest
 
+if BR2_PACKAGE_EVTEST
+
 config BR2_PACKAGE_EVTEST_CAPTURE
        bool "evtest-capture"
-       depends on BR2_PACKAGE_EVTEST
        select BR2_PACKAGE_LIBXML2
        help
          evtest-capture captures the information and events from the
          input device specified on the command line and writes it to
          the xml file given.
+
+endif
index c4b77396e37179e0729a8354b80a38a175fd21e1..9afb0a2d9051cd32135f88dd561edbb58c273b4e 100644 (file)
@@ -4,10 +4,11 @@ config BR2_PACKAGE_GADGETFS_TEST
        help
          Test program for gadgetfs from linux-usb.org
 
+if BR2_PACKAGE_GADGETFS_TEST
+
 config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
        bool "use asynchronous i/o"
        select BR2_PACKAGE_LIBAIO
-       depends on BR2_PACKAGE_GADGETFS_TEST
        # libaio is available only on few architectures
        depends on \
                BR2_arm   || BR2_armeb || BR2_avr32  || BR2_i386    || \
@@ -17,5 +18,7 @@ config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
          Select this to have gadgetfs-test do asynchronous I/O using
          the libaio library.
 
+endif
+
 comment "gadgetfs-test needs a toolchain w/ threads"
        depends on !BR2_TOOLCHAIN_HAS_THREADS
index 305c5a527a5ed7308e72e92b9d69d6332ca717d3..d33dd3a05fa3720f4728faa8682f6f21ca1ca2c2 100644 (file)
@@ -13,9 +13,10 @@ config BR2_PACKAGE_GETTEXT
 
          http://www.gnu.org/software/gettext/
 
+if BR2_PACKAGE_GETTEXT
+
 config BR2_PACKAGE_GETTEXT_TOOLS
        bool "Install gettext tools"
-       depends on BR2_PACKAGE_GETTEXT
        depends on BR2_USE_MMU # fork()
        depends on BR2_LARGEFILE
        select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
@@ -24,6 +25,8 @@ config BR2_PACKAGE_GETTEXT_TOOLS
          the target filesystem. This is typically not useful for
          correct operation of programs.
 
+endif
+
 comment "gettext needs a toolchain w/ wchar"
        depends on BR2_NEEDS_GETTEXT
        depends on !BR2_USE_WCHAR
index d2648d06b44af53782632f1012eefb0930d743f9..ecb6756d25e22ad652fbf4300d14f81cd7bac969 100644 (file)
@@ -9,11 +9,14 @@ config BR2_PACKAGE_GNUTLS
 
          http://www.gnutls.org
 
+if BR2_PACKAGE_GNUTLS
+
 config BR2_PACKAGE_GNUTLS_TOOLS
        bool "install tools"
-       depends on BR2_PACKAGE_GNUTLS
        help
          Install GnuTLS command line tools for various cryptographic tasks.
 
+endif
+
 comment "gnutls needs a toolchain w/ wchar"
        depends on !BR2_USE_WCHAR
index 872fe2739d67001089688ba46f224b926c573318..762c1b17759bb374eff8c4740b99a2f05ae4840b 100644 (file)
@@ -5,9 +5,12 @@ config BR2_PACKAGE_GOOGLEFONTDIRECTORY
 
          http://code.google.com/p/googlefontdirectory/
 
+if BR2_PACKAGE_GOOGLEFONTDIRECTORY
+
 config BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS
        string "List of fonts to install"
        default "droid"
-       depends on BR2_PACKAGE_GOOGLEFONTDIRECTORY
        help
          Specify a space-separated list of fonts to install
+
+endif
index 2fd97d00d4c832a92c247fa9aacf7fa0efd679e6..5954e7701aebe94e2fac3f759ad2c894d447a4b4 100644 (file)
@@ -17,13 +17,13 @@ config BR2_PACKAGE_GPSD
 
          http://gpsd.berlios.de/
 
+if BR2_PACKAGE_GPSD
+
 config BR2_PACKAGE_GPSD_DEVICES
        string "Where to look for GPSes"
        default "/dev/ttyS1"
-       depends on BR2_PACKAGE_GPSD
 
 menu "Features"
-       depends on BR2_PACKAGE_GPSD
 
 config BR2_PACKAGE_GPSD_CLIENT_DEBUG
        bool "client debugging support"
@@ -95,7 +95,6 @@ config BR2_PACKAGE_GPSD_SQUELCH
 endmenu
 
 menu "Protocols"
-       depends on BR2_PACKAGE_GPSD
 
 config BR2_PACKAGE_GPSD_AIVDM
        bool "Aivdm"
@@ -231,3 +230,5 @@ config BR2_PACKAGE_GPSD_UBX
          uBlox UBX binary support
 
 endmenu
+
+endif
index 3db859a0e2e98c20dfc8c1014f4d3c04b9e850df..ddcf3e02fe80f8ce2ba43dadef5db51717db9b8f 100644 (file)
@@ -8,9 +8,10 @@ config BR2_PACKAGE_HASERL
 
          http://haserl.sourceforge.net/
 
+if BR2_PACKAGE_HASERL
+
 config BR2_PACKAGE_HASERL_WITH_LUA
        bool "Lua support"
-       depends on BR2_PACKAGE_HASERL
        depends on BR2_PACKAGE_HASERL_VERSION_0_9_X
        select BR2_PACKAGE_LUA
        help
@@ -19,7 +20,6 @@ config BR2_PACKAGE_HASERL_WITH_LUA
 choice
        prompt "Haserl version"
        default BR2_PACKAGE_HASERL_VERSION_0_9_X
-       depends on BR2_PACKAGE_HASERL
        help
          Select the older stable version, or the newer developer version
 
@@ -35,6 +35,7 @@ config BR2_PACKAGE_HASERL_VERSION_0_9_X
 
 endchoice
 
+endif
 
 config BR2_PACKAGE_HASERL_VERSION
        string
index a2dfe286b19bfa0f106e2eb58377b7854f239010..85b4fd006ee607c324cbb7591310e6cfcfbc841a 100644 (file)
@@ -4,23 +4,24 @@ config BR2_PACKAGE_INPUT_TOOLS
          Tools for the Linux kernel input layer.
          http://linuxconsole.sourceforge.net/
 
+if BR2_PACKAGE_INPUT_TOOLS
+
 config BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH
        bool "inputattach"
-       depends on BR2_PACKAGE_INPUT_TOOLS
        default y
        help
          Inputattach is used for attaching a serial line to the input layer.
 
 config BR2_PACKAGE_INPUT_TOOLS_JSCAL
        bool "jscal"
-       depends on BR2_PACKAGE_INPUT_TOOLS
        default y
        help
          Joystick calibration program.
 
 config BR2_PACKAGE_INPUT_TOOLS_JSTEST
        bool "jstest"
-       depends on BR2_PACKAGE_INPUT_TOOLS
        default y
        help
          Joystick test program.
+
+endif
index 66bc343c9cda26e728f03e8e02e7b012e10cbca3..955a5f4dce787d37b0be9b1f4dbda48b46ee358f 100644 (file)
@@ -9,9 +9,12 @@ config BR2_PACKAGE_KEXEC
 
          https://www.kernel.org/pub/linux/utils/kernel/kexec/
 
+if BR2_PACKAGE_KEXEC
+
 config BR2_PACKAGE_KEXEC_ZLIB
        bool "zlib support"
-       depends on BR2_PACKAGE_KEXEC
        select BR2_PACKAGE_ZLIB
        help
          Support for compressed kernel images
+
+endif
index fc9103dea78b19b979232ca349a4c1acfcd53fff..8bbc9a6f0e74a00d63353fcef86109188db5cd79 100644 (file)
@@ -26,16 +26,16 @@ config BR2_PACKAGE_KISMET
 
          http://www.kismetwireless.net
 
+if BR2_PACKAGE_KISMET
+
 config BR2_PACKAGE_KISMET_CLIENT
        bool "Install client"
-       depends on BR2_PACKAGE_KISMET
 
 config BR2_PACKAGE_KISMET_DRONE
        bool "Install drone"
-       depends on BR2_PACKAGE_KISMET
 
 config BR2_PACKAGE_KISMET_SERVER
        bool "Install server"
        default y
-       depends on BR2_PACKAGE_KISMET
 
+endif
index bd44316cafd700b3f66029c81baec62798b16b44..2e8b9550c5d60b8dd7427e1f311a1f36cff1a5e0 100644 (file)
@@ -6,10 +6,13 @@ config BR2_PACKAGE_KMOD
 
          http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
 
+if BR2_PACKAGE_KMOD
+
 config BR2_PACKAGE_KMOD_TOOLS
        bool "kmod utilities"
-       depends on BR2_PACKAGE_KMOD
        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        help
          Install kmod module utilities (depmod, insmod, lsmod,
          modinfo, modprobe, rmmod).
+
+endif
index 5635a02091965ee0880ac39daa0cf9ecefec1975..f5a8501e59e587b99195e0975b080cf9a0c805ce 100644 (file)
@@ -9,15 +9,17 @@ config BR2_PACKAGE_LCDPROC
 
          http://lcdproc.org/
 
+if BR2_PACKAGE_LCDPROC
+
 config BR2_PACKAGE_LCDPROC_DRIVERS
        string "List of drivers to build"
        default "all"
-       depends on BR2_PACKAGE_LCDPROC
        help
          Specify a comma-separated list of lcdproc drivers to be built
 
 config BR2_PACKAGE_LCDPROC_MENUS
        bool "Menu support"
-       depends on BR2_PACKAGE_LCDPROC
        help
          Enable support for lcdproc menus
+
+endif
index d4fb73fd54b3427a7ffaf5f1b00145c9a9f5da17..81b5936ce87a89762a9575418e230f8d2ee71b79 100644 (file)
@@ -1,3 +1,6 @@
+comment "libarchive needs a toolchain w/ wchar"
+       depends on !BR2_USE_WCHAR
+
 config BR2_PACKAGE_LIBARCHIVE
        bool "libarchive"
        depends on BR2_USE_WCHAR
@@ -7,20 +10,18 @@ config BR2_PACKAGE_LIBARCHIVE
 
          http://www.libarchive.org/
 
-comment "libarchive needs a toolchain w/ wchar"
-       depends on !BR2_USE_WCHAR
+if BR2_PACKAGE_LIBARCHIVE
 
 config BR2_PACKAGE_LIBARCHIVE_BSDTAR
        bool "bsdtar"
-       depends on BR2_PACKAGE_LIBARCHIVE
        help
          The 'bsdtar' program is a full-featured 'tar'
          replacement built on libarchive.
 
 config BR2_PACKAGE_LIBARCHIVE_BSDCPIO
        bool "bsdcpio"
-       depends on BR2_PACKAGE_LIBARCHIVE
        help
          The 'bsdcpio' program is a different interface to
          essentially the same functionality as 'bsdtar'.
 
+endif
index 8e2953e45b392ac33a9cd762f9882b674e9c0758..026ae0154b080b6453cfb1b91c0b4ff9771dadd6 100644 (file)
@@ -6,8 +6,11 @@ config BR2_PACKAGE_LIBCURL
 
          http://curl.haxx.se/
 
+if BR2_PACKAGE_LIBCURL
+
 config BR2_PACKAGE_CURL
        bool "curl binary"
-       depends on BR2_PACKAGE_LIBCURL
        help
          Install curl binary as well
+
+endif
index 589903f96137989dd8e3c5b15e792d3bf4eee758..81163f518038980e6cb86a73a3d5586287d88c86 100644 (file)
@@ -5,12 +5,16 @@ config BR2_PACKAGE_LIBDNET
 
          http://libdnet.sourceforge.net/
 
+if BR2_PACKAGE_LIBDNET
+
 config BR2_PACKAGE_LIBDNET_PYTHON
        bool "libdnet python module"
-       depends on BR2_PACKAGE_LIBDNET && BR2_PACKAGE_PYTHON
+       depends on BR2_PACKAGE_PYTHON
        help
          dnet module for python
 
 comment "dnet module for python requires python package"
-       depends on BR2_PACKAGE_LIBDNET && !BR2_PACKAGE_PYTHON
+       depends on !BR2_PACKAGE_PYTHON
+
+endif
 
index dcf972494c0241c6c5516db583c250bb48b78b28..7b558c71758ff755d559eda32d56aae2c3a2cdf6 100644 (file)
@@ -7,8 +7,11 @@ config BR2_PACKAGE_LIBIDN
 
          http://www.gnu.org/software/libidn/
 
+if BR2_PACKAGE_LIBIDN
+
 config BR2_PACKAGE_LIBIDN_BINARY
        bool "idn binary"
-       depends on BR2_PACKAGE_LIBIDN
        help
          Install idn command line tool
+
+endif
index 15e3762095fbb55995175c85d2943f4fc1ee3f13..7ab35324c726881fa8987530ec3b29d6cfd4fca0 100644 (file)
@@ -7,17 +7,21 @@ config BR2_PACKAGE_LIBMICROHTTPD
 
          http://www.gnu.org/software/libmicrohttpd/
 
+if BR2_PACKAGE_LIBMICROHTTPD
+
 config BR2_PACKAGE_LIBMICROHTTPD_SSL
        bool "https support"
-       depends on BR2_PACKAGE_LIBMICROHTTPD
        depends on BR2_USE_WCHAR
        select BR2_PACKAGE_GNUTLS
        select BR2_PACKAGE_LIBGCRYPT
        help
          Enable HTTPS (SSL) support.
 
+comment "libmicrohttpd https support needs a toolchain w/ wchar"
+       depends on !BR2_USE_WCHAR
+
+endif
+
 comment "libmicrohttpd needs a toolchain w/ threads"
        depends on !BR2_TOOLCHAIN_HAS_THREADS
 
-comment "libmicrohttpd https support needs a toolchain w/ wchar"
-       depends on BR2_PACKAGE_LIBMICROHTTPD && !BR2_USE_WCHAR
index 3694689a926624c2fd7baa9f504b6337578f04dd..6d7ff678656c708014c1ff7b34c16947e147f44a 100644 (file)
@@ -5,9 +5,12 @@ config BR2_PACKAGE_LIBMPEG2
 
          http://libmpeg2.sourceforge.net/
 
+if BR2_PACKAGE_LIBMPEG2
+
 config BR2_PACKAGE_LIBMPEG2_BINS
        bool "mpeg2 binaries"
-       depends on BR2_PACKAGE_LIBMPEG2
        help
          Install mpeg2dec, corrupt_mpeg2 and extract_mpeg2 programs as
          well.
+
+endif
index db2b521cbb46ebc10fff52302ddab1da37749214..1707f21c32cd52cb03fb0565697d4d07ec8cd5e3 100644 (file)
@@ -8,10 +8,13 @@ config BR2_PACKAGE_LIBNFC
 
          http://www.libnfc.org/
 
+if BR2_PACKAGE_LIBNFC
+
 config BR2_PACKAGE_LIBNFC_EXAMPLES
        bool "build libnfc examples"
-       depends on BR2_PACKAGE_LIBNFC
        select BR2_PACKAGE_READLINE
 
+endif
+
 comment "libnfc needs a toolchain w/ threads"
        depends on !BR2_TOOLCHAIN_HAS_THREADS
index 1d732873d71711589e88e9f9c41901205fd5f53f..416f1c95544a80ffdeee164679a0a450df965ee7 100644 (file)
@@ -2,11 +2,12 @@ config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
        def_bool y
        depends on !BR2_arc && !BR2_xtensa && !BR2_bfin
 
+if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
+
 config BR2_PACKAGE_LIBNSPR
        bool "libnspr"
        depends on BR2_LARGEFILE
        depends on BR2_TOOLCHAIN_HAS_THREADS
-       depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
        help
          NSPR is the Netscape Portable Runtime library which provides
          a platform-neutral API for system level and libc like
@@ -16,5 +17,6 @@ config BR2_PACKAGE_LIBNSPR
          http://www.mozilla.org/projects/nspr/
 
 comment "libnspr needs a toolchain w/ largefile, threads"
-       depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
        depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
+
+endif
index b84e6ea6a8aa490d5aab20682f75bda53a24686a..a5abf7ea08502905958e8b9d57f9f9c5f052a1b4 100644 (file)
@@ -47,7 +47,6 @@ config BR2_PACKAGE_LIGHTTPD_WEBDAV
 
 config BR2_PACKAGE_LIGHTTPD_LUA
        bool "lua support"
-       depends on BR2_PACKAGE_LIGHTTPD
        select BR2_PACKAGE_LUA
        help
          Enable Lua support. Needed to support mod_magnet
index 141eaf24045ec956e5f245589a6be13a0bd934d0..713f53da4e4839e6b57b68b0017d05e1433c80af 100644 (file)
@@ -6,11 +6,15 @@ config BR2_PACKAGE_LINKS
 
          http://links.twibright.com/
 
+if BR2_PACKAGE_LINKS
+
 config BR2_PACKAGE_LINKS_GRAPHICS
        bool "use graphics"
-       depends on BR2_PACKAGE_LINKS && (BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7)
+       depends on BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
        select BR2_PACKAGE_XLIB_LIBXT if BR2_PACKAGE_XORG7
        select BR2_PACKAGE_LIBPNG
        help
          Enable graphics output for DirectFB or X11.
          Otherwise links will be text-mode only.
+
+endif
index 819309184072647c4dce71dfeda9ef520b31e9e1..3823039540d4e442a593b31ae0e1876050ab28fa 100644 (file)
@@ -7,27 +7,28 @@ config BR2_PACKAGE_LIVE555
 
          http://www.live555.com/liveMedia/
 
+if BR2_PACKAGE_LIVE555
+
 config BR2_PACKAGE_LIVE555_OPENRTSP
        bool "OpenRTSP"
-       depends on BR2_PACKAGE_LIVE555
        default y
        help
          Live555 RTSP Client.
 
 config BR2_PACKAGE_LIVE555_MEDIASERVER
        bool "live555MediaServer"
-       depends on BR2_PACKAGE_LIVE555
        default y
        help
          RTSP Server. Supports numerous media formats such as H.264 and MPEG2.
 
 config BR2_PACKAGE_LIVE555_MPEG2_INDEXER
        bool "MPEG2TransportStreamIndexer"
-       depends on BR2_PACKAGE_LIVE555
        default y
        help
          MPEG2 Transport Stream Indexer. Provides indexes allowing 'trick play'
          operation in the Live555MediaServer.
 
+endif
+
 comment "live555 needs a toolchain w/ C++"
        depends on !BR2_INSTALL_LIBSTDCPP
index a77cc367eea0955bf05fb876b4df7a7632770d10..3baeaa06314a102aa612b0bbdf45129be2c11c11 100644 (file)
@@ -11,7 +11,11 @@ config BR2_PACKAGE_MADPLAY
 
          http://www.underbit.com/products/mad/
 
+if BR2_PACKAGE_MADPLAY
+
 config BR2_PACKAGE_MADPLAY_ALSA
        bool
        default y
-       depends on BR2_PACKAGE_MADPLAY && BR2_PACKAGE_ALSA_LIB
+       depends on BR2_PACKAGE_ALSA_LIB
+
+endif
index d89a1762eaab75221f001d3f761433e1fc27e178..67c971622c987aa309c9df16a58b3683c65c5178 100644 (file)
@@ -9,23 +9,23 @@ config BR2_PACKAGE_MATCHBOX
        help
          http://projects.o-hand.com/matchbox
 
+if BR2_PACKAGE_MATCHBOX
+
 config BR2_PACKAGE_MATCHBOX_PANEL
        bool "Matchbox Panel"
-       depends on BR2_PACKAGE_MATCHBOX
        help
          A flexible always present 'window bar' for holding
          application launchers.
 
 config BR2_PACKAGE_MATCHBOX_DESKTOP
        bool "Matchbox Desktop"
-       depends on BR2_PACKAGE_MATCHBOX
        select BR2_PACKAGE_ZLIB
        help
          A PDA style application launcher or 'item browser'.
 
 config BR2_PACKAGE_MATCHBOX_COMMON
        bool "Matchbox session common files"
-       depends on BR2_PACKAGE_MATCHBOX && BR2_PACKAGE_MATCHBOX_PANEL && BR2_PACKAGE_MATCHBOX_DESKTOP
+       depends on BR2_PACKAGE_MATCHBOX_PANEL && BR2_PACKAGE_MATCHBOX_DESKTOP
        help
          Common desktop folders and matchbox-session script.
 
@@ -35,7 +35,8 @@ config BR2_PACKAGE_MATCHBOX_COMMON_PDA
 
 config BR2_PACKAGE_MATCHBOX_KEYBOARD
        bool "Matchbox Virtual Keyboard"
-       depends on BR2_PACKAGE_MATCHBOX
        select BR2_PACKAGE_XLIB_LIBXTST
        help
          Virtual Keyboard
+
+endif
index 395af9d86ea8561df26f23680d15fe614cad2455..4b340ff5b870c58f7429d7b1bb27d81d4f31a1f8 100644 (file)
@@ -10,12 +10,15 @@ config BR2_PACKAGE_NANO
 
          http://www.nano-editor.org/
 
+if BR2_PACKAGE_NANO
+
 config BR2_PACKAGE_NANO_TINY
        bool "optimize for size"
        default y
-       depends on BR2_PACKAGE_NANO
        help
          Disable all features for the sake of size.
 
+endif
+
 comment "nano needs a toolchain w/ wchar"
        depends on !BR2_USE_WCHAR
index 4aaa62d2400dad3ec50ef89bc92730e07b2a2209..57586e7ba2ce356b8958ec2c5c712c17c0938dc4 100644 (file)
@@ -8,8 +8,9 @@ config BR2_PACKAGE_NCFTP
 
          http://www.ncftp.com/ncftp/
 
+if BR2_PACKAGE_NCFTP
+
 menu "ncFTP tools selection"
-       depends on BR2_PACKAGE_NCFTP
 
 config BR2_PACKAGE_NCFTP_GET
        bool "NcFTPGet - command-line utility program"
@@ -32,3 +33,5 @@ config BR2_PACKAGE_NCFTP_BOOKMARKS
        select BR2_PACKAGE_NCURSES
 
 endmenu
+
+endif
index 3d089362f4e4b3365ca4541817226f8efec4d827..8edbd3944691f34621cdfead875d107a7fc35135 100644 (file)
@@ -7,10 +7,11 @@ config BR2_PACKAGE_NETSNMP
 
          http://net-snmp.sourceforge.net/
 
+if BR2_PACKAGE_NETSNMP
+
 config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
        bool "Install MIB files on target and enable MIB loading code"
        default y
-       depends on BR2_PACKAGE_NETSNMP
        help
          The net-snmp package contains a selection of MIB files.
          Say yes if you want those MIB files installed on the target
@@ -19,22 +20,21 @@ config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
 config BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES
        string "Build with these MIB modules"
        default "host ucd-snmp/dlmod agentx"
-       depends on BR2_PACKAGE_NETSNMP
        help
          Specify which MIB modules to include.
 
 config BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES
        string "Build without these MIB modules"
        default "disman/event disman/schedule utilities"
-       depends on BR2_PACKAGE_NETSNMP
        help
          Specify which MIB modules to exclude.
 
 config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
        bool "Enable debugging code"
-       depends on BR2_PACKAGE_NETSNMP
        help
          By default net-snmp is compiled without debugging support
          (--disable-debugging). Enable this options if you need debugging
          support, including the ability to log with DEBUGMSG(),
          DEBUGMSGTL() and companion macros.
+
+endif
index 3602a74f50be1d2f35134b9637525debb467eb02..dff5150868a5cc91ae8fd964920c1c284b22ac0e 100644 (file)
@@ -1,3 +1,8 @@
+comment "nfs-utils needs a toolchain w/ largefile, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_LARGEFILE || \
+               !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+
 config BR2_PACKAGE_NFS_UTILS
        bool "nfs-utils"
        depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
@@ -11,30 +16,25 @@ config BR2_PACKAGE_NFS_UTILS
 
          http://sourceforge.net/projects/nfs
 
-comment "nfs-utils needs a toolchain w/ largefile, threads"
-       depends on BR2_USE_MMU
-       depends on !BR2_LARGEFILE || \
-               !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+if BR2_PACKAGE_NFS_UTILS
 
 menu "NFS utilities selection"
-       depends on BR2_PACKAGE_NFS_UTILS
 
 config BR2_PACKAGE_NFS_UTILS_RPCDEBUG
        bool "rpcdebug"
-       depends on BR2_PACKAGE_NFS_UTILS
        help
          The RPC debugging utility
 
 config BR2_PACKAGE_NFS_UTILS_RPC_LOCKD
        bool "rpc.lockd"
-       depends on BR2_PACKAGE_NFS_UTILS
        help
          NFS lock manager for Linux kernels older than 2.4
 
 config BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD
        bool "rpc.rquotad"
-       depends on BR2_PACKAGE_NFS_UTILS
        help
          NFS remote quota server
 
 endmenu
+
+endif
index d1ed5202780fa4496980b67a692a5183d82610fc..a9990e84dc63ec13cc581d0ce0ab8ed371a51e41 100644 (file)
@@ -9,9 +9,10 @@ config BR2_PACKAGE_OPENSSL
 
          http://www.openssl.org/
 
+if BR2_PACKAGE_OPENSSL
+
 config BR2_PACKAGE_OPENSSL_BIN
        bool "openssl binary"
-       depends on BR2_PACKAGE_OPENSSL
        # uses fork()
        depends on BR2_USE_MMU
        help
@@ -20,6 +21,7 @@ config BR2_PACKAGE_OPENSSL_BIN
 
 config BR2_PACKAGE_OPENSSL_ENGINES
        bool "openssl additional engines"
-       depends on BR2_PACKAGE_OPENSSL
        help
          Install additional encryption engine libraries.
+
+endif
index 3414a7f7fd1aee1dc0f17b0672b63fc09042c047..70cde57ffb63c878620d7213935fce2d81aefda5 100644 (file)
@@ -13,9 +13,10 @@ config BR2_PACKAGE_POLARSSL
 
          http://polarssl.org/
 
+if BR2_PACKAGE_POLARSSL
+
 config BR2_PACKAGE_POLARSSL_PROGRAMS
        bool "polarssl programs"
-       depends on BR2_PACKAGE_POLARSSL
        help
          This option enables the installation and the build of
          PolarSSL companion programs: aescrypt2, benchmark, cert_app,
@@ -26,3 +27,5 @@ config BR2_PACKAGE_POLARSSL_PROGRAMS
          selftest, sha1sum, sha2sum, ssi-cgi, ssl_cert_test,
          ssl_client1, ssl_client2, ssl_fork_server, ssl_mail_client,
          ssl_server, ssl_test
+
+endif
index dc16b22cb371e6d6fdc53614944aa398b2cc4748..a1105136a087d318f8294ee73f1253b5b40d2f7b 100644 (file)
@@ -7,8 +7,9 @@ config BR2_PACKAGE_PPPD
 
          http://www.samba.org/ppp/
 
+if BR2_PACKAGE_PPPD
+
 config BR2_PACKAGE_PPPD_FILTER
-       depends on BR2_PACKAGE_PPPD
        select BR2_PACKAGE_LIBPCAP
        bool "filtering"
        help
@@ -17,11 +18,12 @@ config BR2_PACKAGE_PPPD_FILTER
          are available.
 
 config BR2_PACKAGE_PPPD_RADIUS
-       depends on BR2_PACKAGE_PPPD
        bool "radius"
        help
          Install RADIUS support for pppd
 
+endif
+
 comment "pppd needs a toolchain w/ dynamic library"
        depends on BR2_PREFER_STATIC_LIB
        depends on BR2_USE_MMU
index 18407d173db3474c6c6e8fb299392bf7ddb5b959..dd87eb45aa97c2b583f049ba946da3486f2de0e3 100644 (file)
@@ -6,8 +6,11 @@ config BR2_PACKAGE_PROFTPD
 
          http://www.proftpd.org/
 
+if BR2_PACKAGE_PROFTPD
+
 config BR2_PACKAGE_PROFTPD_MOD_REWRITE
        bool "mod_rewrite support"
-       depends on BR2_PACKAGE_PROFTPD
        help
          Compile ProFTPD with mod_rewrite support
+
+endif
index 010eeab0cfc1849dd6848eccb17374e4fba94f7d..e5b9d8a476dab3b2059e4e6b3a0581c30c035d29 100644 (file)
@@ -18,13 +18,16 @@ config BR2_PACKAGE_PULSEAUDIO
 
          http://pulseaudio.org
 
+if BR2_PACKAGE_PULSEAUDIO
+
 config BR2_PACKAGE_PULSEAUDIO_DAEMON
        bool "start as a system daemon"
-       depends on BR2_PACKAGE_PULSEAUDIO
        help
          PulseAudio can be started as a system daemon. This is not the
          recommended way of using PulseAudio unless you are building a
          headless system.
 
+endif
+
 comment "pulseaudio needs a toolchain w/ wchar, largefile, threads"
        depends on !BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
index 19499fd6e018388a698870b3a6bc309cb38ae5f2..a4be1f641466790e873caf19895f7832d944a01c 100644 (file)
@@ -7,12 +7,15 @@ config BR2_PACKAGE_QTUIO
 
          https://github.com/x29a/qTUIO
 
+if BR2_PACKAGE_QTUIO
+
 config BR2_QTUIO_EXAMPLES
        bool "qtuio examples"
-       depends on BR2_PACKAGE_QTUIO
        help
          Build and install qtuio examples
 
+endif
+
 comment "qtuio depends on QT gui module"
        depends on !BR2_PACKAGE_QT_GUI_MODULE
 
index 454bf302b9de7b926867640b655d07d118742969..5a9036278e5a2ddbc9c9eed8038c3899ee63b920 100644 (file)
@@ -7,25 +7,24 @@ config BR2_PACKAGE_RSH_REDONE
 
          http://packages.debian.org/source/sid/rsh-redone
 
+if BR2_PACKAGE_RSH_REDONE
+
 # this is incomplete in the source
 #config BR2_PACKAGE_RSH_REDONE_RCP
 #      bool "rcp"
-#      depends on BR2_PACKAGE_RSH_REDONE
 
 config BR2_PACKAGE_RSH_REDONE_RLOGIN
        bool "rlogin"
-       depends on BR2_PACKAGE_RSH_REDONE
 
 # requires PAM
 #config BR2_PACKAGE_RSH_REDONE_RLOGIND
 #      bool "rlogind"
-#      depends on BR2_PACKAGE_RSH_REDONE
 
 config BR2_PACKAGE_RSH_REDONE_RSH
        bool "rsh"
-       depends on BR2_PACKAGE_RSH_REDONE
 
 # requires PAM
 #config BR2_PACKAGE_RSH_REDONE_RSHD
 #      bool "rshd"
-#      depends on BR2_PACKAGE_RSH_REDONE
+
+endif
index 5a656eaf61a4f1ded9424344cbd51a6a4cad2343..486f92d17e7f4998ebdf8bfa2467cb68e05d97a0 100644 (file)
@@ -8,11 +8,14 @@ config BR2_PACKAGE_SCHIFRA
 
          http://www.schifra.com/
 
+if BR2_PACKAGE_SCHIFRA
+
 config BR2_PACKAGE_SCHIFRA_EXAMPLES
        bool "schifra examples"
-       depends on BR2_PACKAGE_SCHIFRA
        help
          Build and install the schifra example applications.
 
+endif
+
 comment "schifra needs a toolchain w/ C++"
        depends on !BR2_INSTALL_LIBSTDCPP
index be0321ab5f8741118b9caca84e71dcf272cc1ac4..1b98066827ab3aa2529566d258672cc2c5325d34 100644 (file)
@@ -8,8 +8,9 @@ config BR2_PACKAGE_SDL_IMAGE
 
          http://www.libsdl.org/projects/SDL_image/
 
+if BR2_PACKAGE_SDL_IMAGE
+
 menu "SDL_image file format support"
-       depends on BR2_PACKAGE_SDL_IMAGE
 
 config BR2_PACKAGE_SDL_IMAGE_BMP
        bool "enable BMP file format support"
@@ -56,3 +57,5 @@ config BR2_PACKAGE_SDL_IMAGE_XV
        bool "enable XV file format support"
 
 endmenu
+
+endif
index 542c996b2991d1983ba6da5095defd67252cdec2..6da19853e04d40b8f16403a540dfccab13cf1e02 100644 (file)
@@ -12,9 +12,12 @@ config BR2_PACKAGE_SDL_SOUND
 
          http://icculus.org/SDL_sound/
 
+if BR2_PACKAGE_SDL_SOUND
+
 config BR2_PACKAGE_SDL_SOUND_PLAYSOUND
        bool "install playsound tool"
-       depends on BR2_PACKAGE_SDL_SOUND
        help
          Enable this option to install the playsound/playsound_simple
          tools to target.
+
+endif
index 9d2dbeaffe89893d53d3f5d0c2ce2e2771faaadb..a8099f5318bf909a1c5b9adcdf2cabaf045dec67 100644 (file)
@@ -8,9 +8,12 @@ config BR2_PACKAGE_SG3_UTILS
 
          http://sg.danny.cz/sg/sg3_utils.html
 
+if BR2_PACKAGE_SG3_UTILS
+
 config BR2_PACKAGE_SG3_UTILS_PROGS
        bool "install programs"
-       depends on BR2_PACKAGE_SG3_UTILS
+
+endif
 
 comment "sg3-utils needs a toolchain w/ largefile, threads"
        depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
index a4f0a9e1279d20498971b17e7128e351d4e3014e..e1f7c68466012e9f1a48017261b56770a9624ccd 100644 (file)
@@ -8,13 +8,17 @@ config BR2_PACKAGE_SPEEX
 
          http://www.speex.org/
 
+if BR2_PACKAGE_SPEEX
+
 config BR2_PACKAGE_SPEEX_ARM4
        bool
        default y
-       depends on BR2_PACKAGE_SPEEX && (BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_strongarm || BR2_fa526)
+       depends on BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_strongarm || BR2_fa526
 
 config BR2_PACKAGE_SPEEX_ARM5E
        default y
        bool
-       depends on BR2_PACKAGE_SPEEX && BR2_arm && !BR2_PACKAGE_SPEEX_ARM4
+       depends on BR2_arm && !BR2_PACKAGE_SPEEX_ARM4
+
+endif
 
index b96a9bfef6f72b8042dac5d593646914c8cc816a..8f832a6f985db56aae1bcbb19d3935d84c0b3b2c 100644 (file)
@@ -10,13 +10,15 @@ config BR2_PACKAGE_TAGLIB
 
          http://taglib.github.com
 
+if BR2_PACKAGE_TAGLIB
+
 config BR2_PACKAGE_TAGLIB_MP4
-       depends on BR2_PACKAGE_TAGLIB
        bool "taglib mp4 support"
 
 config BR2_PACKAGE_TAGLIB_ASF
-       depends on BR2_PACKAGE_TAGLIB
        bool "taglib wma support"
 
+endif
+
 comment "taglib needs a toolchain w/ C++"
        depends on !BR2_INSTALL_LIBSTDCPP
index 7a4d887111c04cc179dda23e3002fd07785601fe..5dcf63db438a538be11c4aa94e4b5877d878efe3 100644 (file)
@@ -5,10 +5,11 @@ config BR2_PACKAGE_TCL
 
          http://www.tcl.tk
 
+if BR2_PACKAGE_TCL
+
 config BR2_PACKAGE_TCL_DEL_ENCODINGS
        bool "delete encodings (saves 1.4Mb)"
        default y
-       depends on BR2_PACKAGE_TCL
        help
          Delete encoding files for TCL. If your programs do not use
          various tcl character recoding functions, you may safely
@@ -19,9 +20,10 @@ config BR2_PACKAGE_TCL_DEL_ENCODINGS
 config BR2_PACKAGE_TCL_SHLIB_ONLY
        bool "install only shared library"
        default y
-       depends on BR2_PACKAGE_TCL
        help
          Install only TCL shared library and not binary tcl
          interpreter(tclsh8.4).
 
          Saves ~14kb.
+
+endif
index c28439893c80d5fe4677bc96262753c8fe3f494c..8b54c603dfa4636858dafcf68e76f637b1b05559 100644 (file)
@@ -6,8 +6,11 @@ config BR2_PACKAGE_TCPDUMP
 
          http://www.tcpdump.org/
 
+if BR2_PACKAGE_TCPDUMP
+
 config BR2_PACKAGE_TCPDUMP_SMB
        bool "smb dump support"
-       depends on BR2_PACKAGE_TCPDUMP
        help
          enable possibly-buggy SMB printer
+
+endif
index 7850965b318983e13ac20e6be24a0f48ee51015d..3a929f7a34bdbabd88720c120c5df06432f17ad0 100644 (file)
@@ -60,16 +60,14 @@ config BR2_PACKAGE_TIFF_JBIG
        default y
 endmenu
 
-endif
-
 config BR2_PACKAGE_TIFF_TIFF2PDF
        bool "tiff2pdf"
-       depends on BR2_PACKAGE_TIFF
        help
          tiff2pdf utility
 
 config BR2_PACKAGE_TIFF_TIFFCP
        bool "tiffcp"
-       depends on BR2_PACKAGE_TIFF
        help
          tiffcp utility
+
+endif
index 72615d38bffeec89bb3a6e1da485e2a137e37a66..1be68149b5def5c832c4c8dc425a61aeafb86b98 100644 (file)
@@ -9,9 +9,10 @@ config BR2_PACKAGE_TZDATA
 
          http://www.iana.org/time-zones/repository/tz-link.html
 
+if BR2_PACKAGE_TZDATA
+
 config BR2_PACKAGE_TZDATA_ZONELIST
        string "Time zone list"
-       depends on BR2_PACKAGE_TZDATA
        default "default"
        help
          Space-separated list of time zones to compile.
@@ -21,3 +22,5 @@ config BR2_PACKAGE_TZDATA_ZONELIST
 
          The full list is the list of files in the time zone database source,
          not including the build and .tab files.
+
+endif
index 0543b4bb4295658615cd3d6801e7565e1f0d08c6..e9425da4e7013042e48406372cad8d2528aaf504 100644 (file)
@@ -13,19 +13,20 @@ comment "udpcast needs a toolchain w/ largefile, threads"
        depends on BR2_USE_MMU
        depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 
+if BR2_PACKAGE_UDPCAST
+
 menu "udpcast tools selection"
-depends on BR2_PACKAGE_UDPCAST
 
 config BR2_PACKAGE_UDPCAST_SENDER
        bool "sender"
-       depends on BR2_PACKAGE_UDPCAST
        help
          The udpcast transmitter.
 
 config BR2_PACKAGE_UDPCAST_RECEIVER
        bool "receiver"
-       depends on BR2_PACKAGE_UDPCAST
        help
          The udpcast receiver.
 
 endmenu
+
+endif
index 8f0b8f593f4eef95fd136ed0b901067845eb81e4..a64e674eb379cb674f7e1bb473f3acd5a906e428 100644 (file)
@@ -7,9 +7,10 @@ config BR2_PACKAGE_USBUTILS
 
          http://linux-usb.sourceforge.net/
 
+if BR2_PACKAGE_USBUTILS
+
 config BR2_PACKAGE_USBUTILS_ZLIB
        bool "compressed data support"
-       depends on BR2_PACKAGE_USBUTILS
        select BR2_PACKAGE_ZLIB
        help
          Enable use of zlib for a compressed usb.ids.gz
@@ -17,5 +18,7 @@ config BR2_PACKAGE_USBUTILS_ZLIB
          filesystem, but it also makes lsusb slower since it has
          to decompress the file every time it's run.
 
+endif
+
 comment "usbutils needs a toolchain w/ threads"
        depends on !BR2_TOOLCHAIN_HAS_THREADS
index 0b2f4b5b8583611bcc0edde13d65f7cc2de92a04..6f24da984647c2768c7a53fb69a6439bb82586a1 100644 (file)
@@ -8,10 +8,13 @@ config BR2_PACKAGE_VIM
 
          http://www.vim.org/
 
+if BR2_PACKAGE_VIM
+
 config BR2_PACKAGE_VIM_RUNTIME
        bool "install runtime"
        default y
-       depends on BR2_PACKAGE_VIM
        help
          Install VIM runtime (syntax highlighing + macros).
          This option adds about 15MB of data to /usr/share/
+
+endif
index c51ee9bff05361fee55982ec49162ad2899b3a30..0840187151f4a8ccbcc2952bd9ef6389f0a3723b 100644 (file)
@@ -5,8 +5,11 @@ config BR2_PACKAGE_WIRELESS_TOOLS
 
          http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
 
+if BR2_PACKAGE_WIRELESS_TOOLS
+
 config BR2_PACKAGE_WIRELESS_TOOLS_LIB
        bool "Install shared library"
-       depends on BR2_PACKAGE_WIRELESS_TOOLS
        help
          The shared library of wireless tools
+
+endif
index a74ce88f348417db8ef9d6fc021d9b8492444716..1c53f7e70fa7e5a63872a2c8f22227c3503096e9 100644 (file)
@@ -27,12 +27,15 @@ config BR2_PACKAGE_ZEROMQ
 
          http://www.zeromq.org/
 
+if BR2_PACKAGE_ZEROMQ
+
 config BR2_PACKAGE_ZEROMQ_PGM
        bool "PGM/EPGM support"
-       depends on BR2_PACKAGE_ZEROMQ
        depends on !BR2_avr32 # openpgm
        select BR2_PACKAGE_OPENPGM
        help
          Add support for Pragmatic General Multicast protocol (RFC 3208)
          implemented either over raw IP packets or UDP datagrams
          (encapsulated PGM). This requires OpenPGM library.
+
+endif