blob: 24f9e5d40edb9d6d53a690e76fc08bd275dc4431 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4
5CPU := generic
6
7MODULE_DEPS += \
8 lib/cbuf \
9
10ifeq ($(ARCH), x86)
11MODULE_SRCS += \
12 $(LOCAL_DIR)/interrupts.c \
13 $(LOCAL_DIR)/platform.c \
14 $(LOCAL_DIR)/timer.c \
15 $(LOCAL_DIR)/debug.c \
16 $(LOCAL_DIR)/console.c \
17 $(LOCAL_DIR)/keyboard.c \
18 $(LOCAL_DIR)/pci.c \
19 $(LOCAL_DIR)/ide.c \
20 $(LOCAL_DIR)/uart.c \
21
22else
23MODULE_SRCS += \
24 $(LOCAL_DIR)/interrupts.c \
25 $(LOCAL_DIR)/platform.c \
26 $(LOCAL_DIR)/timer.c \
27 $(LOCAL_DIR)/debug.c \
28 $(LOCAL_DIR)/console.c \
29 $(LOCAL_DIR)/keyboard.c \
30 $(LOCAL_DIR)/uart.c \
31
32endif
33
34LK_HEAP_IMPLEMENTATION ?= dlmalloc
35
36LINKER_SCRIPT += \
37 $(BUILDDIR)/kernel.ld
38
39include make/module.mk
40