diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-12-21 16:39:56 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-22 16:42:20 +0100 |
commit | ffb0181a8731847ea0d02d6e158adf3d7d95c382 (patch) | |
tree | cb7194bddf4b8983598829102a4e239f28e1bc7f /include/package.mk | |
parent | 24e58c3f72a94ebf659586eb876b06b59adb2bb2 (diff) | |
download | upstream-ffb0181a8731847ea0d02d6e158adf3d7d95c382.tar.gz upstream-ffb0181a8731847ea0d02d6e158adf3d7d95c382.tar.bz2 upstream-ffb0181a8731847ea0d02d6e158adf3d7d95c382.zip |
build: add defaults for PKG_SOURCE, PKG_SOURCE_SUBDIR, PKG_VERSION
This makes it easier to unify versioning of git based package downloads.
PKG_SOURCE_DATE along with an 8-character abbreviation of the git hash
is used as PKG_VERSION, PKG_RELEASE should be used like normal packages.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk index f51232f503..41401ddefb 100644 --- a/include/package.mk +++ b/include/package.mk @@ -9,6 +9,8 @@ __package_mk:=1 all: $(if $(DUMP),dumpinfo,$(if $(CHECK),check,compile)) +include $(INCLUDE_DIR)/download.mk + PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install PKG_BUILD_PARALLEL ?= @@ -92,7 +94,6 @@ endif PKG_INSTALL_STAMP:=$(PKG_INFO_DIR)/$(PKG_DIR_NAME).$(if $(BUILD_VARIANT),$(BUILD_VARIANT),default).install -include $(INCLUDE_DIR)/download.mk include $(INCLUDE_DIR)/quilt.mk include $(INCLUDE_DIR)/package-defaults.mk include $(INCLUDE_DIR)/package-dumpinfo.mk |