provide default PKG_BUILD_DIR for packages missing a PKG_VERSION
authorNicolas Thill <nico@openwrt.org>
Mon, 3 Sep 2007 07:51:56 +0000 (07:51 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 3 Sep 2007 07:51:56 +0000 (07:51 +0000)
SVN-Revision: 8583

include/kernel.mk
include/package.mk

index 00d1b8c44c2f77a50862b237eb1c89e17eae5a3c..519ea42d23bfe3cc912db267ddbe9b61a009a811 100644 (file)
@@ -44,7 +44,7 @@ else
   TESTING:=$(if $(findstring -rc,$(LINUX_VERSION)),/testing,)
   LINUX_SITE:=@KERNEL/linux/kernel/v$(KERNEL)$(TESTING) \
 
-  PKG_BUILD_DIR ?= $(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+  PKG_BUILD_DIR ?= $(KERNEL_BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))
 endif
 GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic-$(KERNEL)
 GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(shell [ -d "$(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )
index 254588e8a0402824e2ba8dd376f47596f6939af0..074c7aded18aea6471e196c0093acc025444ed4d 100644 (file)
@@ -7,7 +7,7 @@
 
 all: $(if $(DUMP),dumpinfo,compile)
 
-PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))
 PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install
 PKG_MD5SUM ?= unknown