allow packages to override PKG_UNPACK, HOST_UNPACK
authorFelix Fietkau <nbd@openwrt.org>
Wed, 25 Feb 2009 21:43:04 +0000 (21:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 25 Feb 2009 21:43:04 +0000 (21:43 +0000)
SVN-Revision: 14659

include/unpack.mk

index e2810944e83a0ef22e0230833acff7cdaaee0e6b..2cd17817e6929d216cf31acb1c8514848eb4ecfd 100644 (file)
@@ -67,10 +67,10 @@ ifeq ($(strip $(UNPACK_CMD)),)
 endif
 
 ifdef PKG_BUILD_DIR
-  PKG_UNPACK := $(call UNPACK_CMD,$(PKG_BUILD_DIR)) $(call CRLF_CMD,$(PKG_BUILD_DIR))
+  PKG_UNPACK ?= $(call UNPACK_CMD,$(PKG_BUILD_DIR)) $(call CRLF_CMD,$(PKG_BUILD_DIR))
 endif
 ifdef HOST_BUILD_DIR
-  HOST_UNPACK := $(call UNPACK_CMD,$(HOST_BUILD_DIR)) $(call CRLF_CMD,$(HOST_BUILD_DIR))
+  HOST_UNPACK ?= $(call UNPACK_CMD,$(HOST_BUILD_DIR)) $(call CRLF_CMD,$(HOST_BUILD_DIR))
 endif
 
 endif # PKG_SOURCE