rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | MODULE := $(LOCAL_DIR) |
| 4 | |
| 5 | CPU := generic |
| 6 | |
| 7 | MODULE_DEPS += \ |
| 8 | lib/cbuf \ |
| 9 | |
| 10 | ifeq ($(ARCH), x86) |
| 11 | MODULE_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 | |
| 22 | else |
| 23 | MODULE_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 | |
| 32 | endif |
| 33 | |
| 34 | LK_HEAP_IMPLEMENTATION ?= dlmalloc |
| 35 | |
| 36 | LINKER_SCRIPT += \ |
| 37 | $(BUILDDIR)/kernel.ld |
| 38 | |
| 39 | include make/module.mk |
| 40 | |