aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-07-10 21:17:45 +0000
committerMike Baker <mbm@openwrt.org>2006-07-10 21:17:45 +0000
commit7aa6d19eb0df08a6c1f0060e5f81f492df57020c (patch)
tree501cd64841aad0f55665020619f84c2b9c28ae44
parentd5e6cffef8839a163a5f7223ba14b6616783a791 (diff)
downloadupstream-7aa6d19eb0df08a6c1f0060e5f81f492df57020c.tar.gz
upstream-7aa6d19eb0df08a6c1f0060e5f81f492df57020c.tar.bz2
upstream-7aa6d19eb0df08a6c1f0060e5f81f492df57020c.zip
add a new FORCEREBUILD option to Package/<name> to force a package to be rebuilt each time make is run
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4123 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/package.mk4
-rw-r--r--package/base-files/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index bf2376dcd0..618c3c5553 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -121,6 +121,10 @@ define BuildPackage
compile-targets: $$(IPKG_$(1))
endif
+ ifeq ($(FORCEREBUILD),y)
+ $$(IPKG_$(1)): FORCE
+ endif
+
IDEPEND_$(1):=$$(strip $$(DEPENDS))
DUMPINFO += \
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 376bd53348..daa15d0a7d 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -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