X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5bbc97f2308f02c7ad79c278a89a7ee7ce27ac65..7f3b481ec937e79225ef78f167070b2249e2f62a:/include/quilt.mk?ds=sidebyside diff --git a/include/quilt.mk b/include/quilt.mk index 4323c77b2..c5245a8ae 100644 --- a/include/quilt.mk +++ b/include/quilt.mk @@ -3,9 +3,8 @@ # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. -# -ifneq ($(__quilt_inc),1) +ifneq ($(if $(DUMP),1,$(__quilt_inc)),1) __quilt_inc:=1 ifeq ($(TARGET_BUILD),1) @@ -13,6 +12,8 @@ ifeq ($(TARGET_BUILD),1) endif PATCH_DIR?=./patches FILES_DIR?=./files +HOST_PATCH_DIR?=$(PATCH_DIR) +HOST_FILES_DIR?=$(FILES_DIR) ifeq ($(MAKECMDGOALS),refresh) override QUILT=1 @@ -78,12 +79,14 @@ endif define Host/Patch/Default $(if $(QUILT),rm -rf $(HOST_BUILD_DIR)/patches; mkdir -p $(HOST_BUILD_DIR)/patches) - $(call PatchDir,$(HOST_BUILD_DIR),$(PATCH_DIR),) + $(call PatchDir,$(HOST_BUILD_DIR),$(HOST_PATCH_DIR),) + $(if $(QUILT),touch $(HOST_BUILD_DIR)/.quilt_used) endef define Build/Patch/Default $(if $(QUILT),rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches) $(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_DIR),) + $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used) endef kernel_files=$(foreach fdir,$(GENERIC_FILES_DIR) $(FILES_DIR),$(fdir)/.)