Skip to content

Commit

Permalink
Makefile: Remove unnecessary kernel source compilation in the prepare…
Browse files Browse the repository at this point in the history
… phase.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Oct 9, 2024
1 parent e7bbc4c commit 563bdb4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 563bdb4

Please sign in to comment.