pkg/pkg.mk: allow for custom patch dir
This commit is contained in:
parent
0c349cd0bc
commit
a586d1ba4c
@ -25,6 +25,7 @@ ifeq (,$(PKG_LICENSE))
|
||||
endif
|
||||
|
||||
PKG_DIR ?= $(CURDIR)
|
||||
PKG_PATCH_DIR ?= $(PKG_DIR)/patches
|
||||
|
||||
PKG_BUILD_OUT_OF_SOURCE ?= 1
|
||||
ifeq (1,$(PKG_BUILD_OUT_OF_SOURCE))
|
||||
@ -60,7 +61,7 @@ GITAMFLAGS ?= $(GIT_QUIET) --no-gpg-sign --ignore-whitespace --whitespace=nowarn
|
||||
|
||||
.PHONY: all prepare clean distclean FORCE
|
||||
|
||||
PKG_PATCHES = $(sort $(wildcard $(PKG_DIR)/patches/*.patch))
|
||||
PKG_PATCHES = $(sort $(wildcard $(PKG_PATCH_DIR)/*.patch))
|
||||
|
||||
PKG_STATE_FILE = .pkg-state.git
|
||||
PKG_STATE = $(PKG_SOURCE_DIR)/$(PKG_STATE_FILE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user