meow :3
This commit is contained in:
parent
65c8be1e5f
commit
a97a31ce59
23
Makefile
23
Makefile
|
|
@ -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
5480
linux/.config
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user