add option for cleaning all ipkg info before the image build
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 5 Oct 2007 21:52:05 +0000 (21:52 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 5 Oct 2007 21:52:05 +0000 (21:52 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9151 3c298f89-4303-0410-b956-a3cf2f4a3e73

Config.in
package/Makefile

index ce226e0..34d8249 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -80,14 +80,22 @@ menuconfig DEVEL
        select TOOLCHAINOPTS if !NATIVE_TOOLCHAIN
 
 config BROKEN
-       bool "Show broken platforms / packages" if DEVEL
+       bool
+       prompt "Show broken platforms / packages" if DEVEL
        default n
 
 config LOCALMIRROR
-       string "Local mirror for source packages" if DEVEL
+       string
+       prompt "Local mirror for source packages" if DEVEL
 
 menuconfig BUILDOPTS
-       bool "Build Options" if DEVEL
+       bool
+       prompt "Build Options" if DEVEL
+
+config CLEAN_IPKG
+       bool
+       prompt "Clean all ipkg files before building the rootfs" if BUILDOPTS
+       default n
 
 config AUTOREBUILD
        bool
index aa059a7..1df4537 100644 (file)
@@ -35,6 +35,7 @@ $(curdir)/rootfs-prepare: $(TMP_DIR)/.build
        @-find $(TARGET_DIR) -name CVS   | $(XARGS) rm -rf
        @-find $(TARGET_DIR) -name .svn  | $(XARGS) rm -rf
        @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
+       $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/ipkg)
 
 $(curdir)/index: FORCE
        @(cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages)
This page took 0.031788 seconds and 4 git commands to generate.