Finally figured out how to provide direct path to config

Honestly reading the code is the best docs
This commit is contained in:
2025-11-02 17:35:51 +02:00
parent 138abd5634
commit 13ddec78a4
3 changed files with 19 additions and 10 deletions

View File

@@ -4,19 +4,12 @@ BUILD_DIR ?= $(MAKEFILE_DIR)build
ARCH ?= x86
KERNEL_FILE_NAME ?= bzImage
export BUILD_DIR
export ARCH
export KERNEL_FILE_NAME
KERNEL_PATH = $(BUILD_DIR)/arch/$(ARCH)/boot/$(bzImage)
all: $(KERNEL_PATH)
$(KERNEL_PATH):
@mkdir -p $(BUILD_DIR)/linux/kernel
cp $(MAKEFILE_DIR)/linux/.config $(BUILD_DIR)/linux/kernel/.config
$(MAKE) -C $(MAKEFILE_DIR)/linux/kernel O=$(BUILD_DIR)/linux/kernel
kernel:
$(MAKE) -C $(MAKEFILE_DIR)/linux
clean: