@@ -21,17 +21,13 @@ else
endif
ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
- ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
- define Kernel/Prepare/Default
+ define Kernel/Prepare/Default
$(LINUX_CAT) $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
+ ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
$(Kernel/Patch)
$(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
- endef
- else
- define Kernel/Prepare/Default
- $(LINUX_CAT) $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
- endef
- endif
+ endif
+ endef
else
define Kernel/Prepare/Default
mkdir -p $(KERNEL_BUILD_DIR)
Date: Mon, 30 Oct 2023 14:46:24 -0700 The two Kernel/Prepare/Default implementations had become identical. As such merge the identical sections together, and only have the extra piece be conditional. Signed-off-by: Elliott Mitchell <ehem+openwrt@m5p.com> --- include/kernel-defaults.mk | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)