add "patented"-build flag to allow packages being with and without patented technology
[openwrt/openwrt.git] / Config.in
index ae1ba9ffe727f7c19e6d27958a0f5283bf5e9d0c..ffe1147f44c70d028c4048edf705dd6e25ff9ee7 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -23,11 +23,9 @@ menu "Target Images"
        choice
                prompt "ramdisk compression"
                depends TARGET_ROOTFS_INITRAMFS
-               depends !LINUX_2_6_21
                depends !LINUX_2_6_25
-               depends !LINUX_2_6_27
-               depends !LINUX_2_6_28
                default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
+               default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
                default TARGET_INITRAMFS_COMPRESSION_NONE
                help
                  Select ramdisk compression.
@@ -43,6 +41,9 @@ menu "Target Images"
 
                config TARGET_INITRAMFS_COMPRESSION_LZMA
                        bool "LZMA"
+
+               config TARGET_INITRAMFS_COMPRESSION_LZO
+                       bool "LZO"
        endchoice
 
        config TARGET_ROOTFS_JFFS2
@@ -87,6 +88,13 @@ menu "Target Images"
                help
                  Create some bootable ISO image
 
+       config TARGET_ROOTFS_UBIFS
+               bool "ubifs"
+               default y if USES_UBIFS
+               depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
+               help
+                 Build a ubifs root filesystem
+
 comment "Image Options"
 
 source "target/linux/*/image/Config.in"
@@ -157,13 +165,30 @@ choice
 
        config USE_SSTRIP
                bool "sstrip"
+               depends !DEBUG
                depends !USE_GLIBC
                depends !USE_EGLIBC
                help
                  This will install binaries stripped using sstrip
-
 endchoice
 
+config BUILD_PATENTED
+       default y
+       bool "Compile with support for patented functionality"
+       help
+         When this option is disabled, software which provides patented functionality will not be built.
+         In case software provides optional support for patented functionality,
+         this optional support will get disabled for this package.
+
+config STRIP_ARGS
+       string
+       prompt "Strip arguments"
+       depends USE_STRIP
+       default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
+       default "--strip-all"
+       help
+         Specifies arguments passed to the strip command when stripping binaries
+
 config USE_MKLIBS
        bool "Strip unnecessary functions from libraries"
        help
@@ -187,14 +212,7 @@ config DEBUG
        prompt "Compile packages with debugging info"
        default n
        help
-               Disables stripping and adds -g3 to the CFLAGS
-
-config DEBUG_DIR
-       bool "Install debugging binaries into a staging directory"
-       default n
-       help
-               This will install all compiled package binaries into build_dir/target-*/debug-*/,
-               useful for cross-debugging via gdb/gdbserver
+               Adds -g3 to the CFLAGS
 
 config IPV6
         bool
@@ -329,6 +347,7 @@ source "toolchain/Config.in"
 
 source "target/imagebuilder/Config.in"
 source "target/sdk/Config.in"
+source "target/toolchain/Config.in"
 
 source "tmp/.config-package.in"