This commit is contained in:
Gvidas Juknevičius 2025-11-02 17:25:36 +02:00
parent 65c8be1e5f
commit a97a31ce59
Signed by: MCorange
GPG Key ID: 5BE6B533CB76FE86
2 changed files with 5503 additions and 0 deletions

View File

@ -0,0 +1,23 @@
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
BUILD_DIR ?= $(MAKEFILE_DIR)build
ARCH ?= x86
KERNEL_FILE_NAME ?= bzImage
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
clean:
rm -rf $(BUILD_DIR)

5480
linux/.config Normal file

File diff suppressed because it is too large Load Diff