kernel: move .quilt_used to quilt.mk
authorChristian Marangi <[email protected]>
Thu, 27 Nov 2025 13:18:50 +0000 (14:18 +0100)
committerChristian Marangi <[email protected]>
Thu, 27 Nov 2025 13:18:50 +0000 (14:18 +0100)
Move .quilt_used from kernel-defaults.mk to quilt.mk.

This is done to be consistent with the parallel Build/Patch/Default and
Host/Patch/Default and permit better Quilt handling on any package that
might use Kernel/Patch/Default.

Signed-off-by: Christian Marangi <[email protected]>
include/kernel-defaults.mk
include/quilt.mk

index cbe415abe64ab95fe3df6dcb98dd95cdda1e154f..bdfdaaa6164ad28d2b947f42a0bfef0216f1a110 100644 (file)
@@ -25,7 +25,6 @@ ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
     define Kernel/Prepare/Default
        $(LINUX_CAT) $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
        $(Kernel/Patch)
-       $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
     endef
   else
     define Kernel/Prepare/Default
index a58390f6c5471d1996de4f5f1972992488040c63..d85d35ffc46f7e72c767111b06a162cd32f578d9 100644 (file)
@@ -133,6 +133,7 @@ define Quilt/Refresh/Kernel
        $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(GENERIC_PATCH_DIR),generic/)
        $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(GENERIC_HACK_DIR),generic-hack/)
        $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(PATCH_DIR),platform/)
+       $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
 endef
 
 define Quilt/Template