From e81ba9aa44cd444fbbecb37ac38b01da6298fa98 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Mon, 10 Jul 2006 21:17:45 +0000 Subject: [PATCH] add a new FORCEREBUILD option to Package/ to force a package to be rebuilt each time make is run SVN-Revision: 4123 --- openwrt/include/package.mk | 4 ++++ openwrt/package/base-files/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/openwrt/include/package.mk b/openwrt/include/package.mk index bf2376dcd0..618c3c5553 100644 --- a/openwrt/include/package.mk +++ b/openwrt/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/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile index 376bd53348..daa15d0a7d 100644 --- a/openwrt/package/base-files/Makefile +++ b/openwrt/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 -- 2.25.1