build: add support for automatically removing build dir contents during build
[openwrt/openwrt.git] / config / Config-devel.in
index 45a7fd93f4eece93b860a44ee79171e7094fecda..d953e6679a8f861e9ef7396d08ec515b1ae7cf8c 100644 (file)
@@ -27,7 +27,7 @@ menuconfig DEVEL
                  If not set then defaults to './dl', which is removed by operations such as
                  'git clean -xdf' or 'make distclean'.
                  This option is useful if you have a low bandwidth Internet connection, and by
-                 setting a path outside the OpenWRT tree downloads will be saved.
+                 setting a path outside the OpenWrt tree downloads will be saved.
 
        config LOCALMIRROR
                string "Local mirror for source packages" if DEVEL
@@ -39,6 +39,14 @@ menuconfig DEVEL
                help
                  Automatically rebuild packages when their files change.
 
+       config AUTOREMOVE
+               bool "Automatic removal of build directories" if DEVEL
+               default n
+               help
+                 Automatically delete build directories after make target completed.
+                 This allows you to symlink build_dir into a scratch location, e.g. a ramdisk,
+                 which does not have enough space to keep a complete build_dir.
+
        config BUILD_SUFFIX
                string "Build suffix to append to the target BUILD_DIR variable" if DEVEL
                default ""
@@ -106,6 +114,7 @@ menuconfig DEVEL
 
        config EXTRA_OPTIMIZATION
                string "Additional compiler options" if DEVEL
+               default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc
                default "-fno-caller-saves"
                help
                  Extra target-independent optimizations to use when building for the target.