diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-02-23 17:32:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-02-23 17:32:04 +0000 |
commit | 623825103e17a975f36854b362f17f8d26557828 (patch) | |
tree | ea2d52a4264b2bdbee20d394b449610bb7f75e48 /include/package-ipkg.mk | |
parent | f587bacc264012658b9f629300cc9a46100c2e5a (diff) | |
download | upstream-623825103e17a975f36854b362f17f8d26557828.tar.gz upstream-623825103e17a975f36854b362f17f8d26557828.tar.bz2 upstream-623825103e17a975f36854b362f17f8d26557828.zip |
build: allow packages to declare ABI versions to detect necessary package rebuilds
If a package directly depends on another package that recently changed
its ABI version, it will be cleaned up and rebuilt (assuming quilt is
not used).
This helps with packages that have no stable ABI, e.g. libubox, ubus,
etc.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39720
Diffstat (limited to 'include/package-ipkg.mk')
-rw-r--r-- | include/package-ipkg.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 043431c349..cb2a4087fe 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -83,6 +83,9 @@ ifeq ($(DUMP),) ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),) IPKGS += $(1) compile: $$(IPKG_$(1)) $(PKG_INFO_DIR)/$(1).provides $(STAGING_DIR_ROOT)/stamp/.$(1)_installed + ifneq ($(ABI_VERSION),) + compile: $(PKG_INFO_DIR)/$(1).version + endif ifeq ($(CONFIG_PACKAGE_$(1)),y) .PHONY: $(PKG_INSTALL_STAMP).$(1) @@ -124,6 +127,10 @@ ifeq ($(DUMP),) rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) touch $$@ + $(PKG_INFO_DIR)/$(1).version: $$(IPKG_$(1)) + echo '$(ABI_VERSION)' | cmp -s - $$@ || \ + echo '$(ABI_VERSION)' > $$@ + $(PKG_INFO_DIR)/$(1).provides: $$(IPKG_$(1)) $$(IPKG_$(1)): $(STAMP_BUILT) $(INCLUDE_DIR)/package-ipkg.mk @rm -rf $(PACKAGE_DIR)/$(1)_* $$(IDIR_$(1)) |