From 563bdb4e232c2a60983e430ba9ef0993514f4024 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Wed, 9 Oct 2024 20:31:48 +0800 Subject: [PATCH] Makefile: Remove unnecessary kernel source compilation in the prepare phase. Signed-off-by: CFC4N --- Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile b/Makefile index 6fe2fe3f1..77b588aba 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,6 @@ help: .PHONY: prepare prepare: - if [ -d "/lib/modules/$(KERN_RELEASE)/build" ]; then \ - $(CMD_CD) /lib/modules/$(KERN_RELEASE)/build && $(KERNEL_HEADER_GEN) || { echo "Kernel header generation failed"; exit 1; } \ - fi if [ -d "$(LINUX_SOURCE_PATH)" ]; then \ $(CMD_CD) $(LINUX_SOURCE_PATH) && $(KERNEL_HEADER_GEN) || { echo "Kernel header generation failed"; exit 1; } \ elif [ -n "$(CROSS_ARCH)" ]; then \