add a new FORCEREBUILD option to Package/<name> to force a package to be rebuilt...
authorMike Baker <mbm@openwrt.org>
Mon, 10 Jul 2006 21:17:45 +0000 (21:17 +0000)
committerMike Baker <mbm@openwrt.org>
Mon, 10 Jul 2006 21:17:45 +0000 (21:17 +0000)
SVN-Revision: 4123

openwrt/include/package.mk
openwrt/package/base-files/Makefile

index bf2376dcd02ce6724f86d9d05370a227134939dc..618c3c5553b2e9615a72cafd81981c71ed3fef7b 100644 (file)
@@ -121,6 +121,10 @@ define BuildPackage
     compile-targets: $$(IPKG_$(1))
   endif
 
+  ifeq ($(FORCEREBUILD),y)
+    $$(IPKG_$(1)): FORCE
+  endif
+
   IDEPEND_$(1):=$$(strip $$(DEPENDS))
 
   DUMPINFO += \
index 376bd5334813e6030cf25f235aeeb3696a3ed01a..daa15d0a7ddf6ea6b544b6e2a95d45942c3de053 100644 (file)
@@ -38,6 +38,7 @@ define Package/base-files$(TARGET)
   TITLE:=OpenWrt system scripts
   DESCRIPTION:=Base filesystem for OpenWrt
   VERSION:=$(PKG_RELEASE)
+  FORCEREBUILD:=y
 endef
 
 define -ar7-2.4/conffiles
@@ -89,6 +90,7 @@ define Package/libgcc
   TITLE:=GCC support library
   VERSION:=$(LIBGCC_VERSION)-$(PKG_RELEASE)
   DESCRIPTION:=$(TITLE)
+  FORCEREBUILD:=n
 endef
 
 define Package/libpthread
@@ -97,6 +99,7 @@ define Package/libpthread
   VERSION:=$(UCLIBC_VERSION)-$(PKG_RELEASE)
   TITLE:=POSIX thread library
   DESCRIPTION:=POSIX thread library
+  FORCEREBUILD:=n
 endef
 
 
@@ -105,6 +108,7 @@ define Package/uclibc
   VERSION:=$(UCLIBC_VERSION)-$(PKG_RELEASE)
   TITLE:=C library
   DESCRIPTION:=C library for embedded systems
+  FORCEREBUILD:=n
 endef
 
 define Build/Prepare