blob: 62c9de7c1dd64eaa190d075d98f850fbcefb4bce [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4COMMON_PLAT := $(LOCAL_DIR)/../mediatek/common
5
6ARCH := arm
7ARM_CPU := cortex-a7
8WITH_SMP ?= 0
9
10LK_HEAP_IMPLEMENTATION ?= miniheap
11
12GLOBAL_INCLUDES += -I$(LK_TOP_DIR)/include \
13
14MODULE_SRCS += \
15 $(COMMON_PLAT)/boot_mode.c \
16 $(LOCAL_DIR)/cpu_early_init.S \
17 $(LOCAL_DIR)/debug.c \
18 $(LOCAL_DIR)/platform.c \
19 $(LOCAL_DIR)/interrupts.c \
20
21KERNEL_BASE ?= 0x200000
22KERNEL_LOAD_OFFSET ?= 0x0400
23MEMBASE ?= 0x200000
24MEMSIZE ?= 0x00020000 # 128K
25RAMBASE ?= 0x1000 # 4k alignment
26MACH_TYPE := 2701
27
28MODULE_DEPS += \
29 dev/interrupt/arm_gic \
30 dev/timer/arm_generic \
31 lib/bio \
32 lib/partition \
33 lib/fdt \
34 lib/cksum \
35 lib/mempool \
36
37GLOBAL_DEFINES += \
38 MEMBASE=$(MEMBASE) \
39 MEMSIZE=$(MEMSIZE) \
40 RAMBASE=$(RAMBASE) \
41 MACH_TYPE=$(MACH_TYPE) \
42 PLATFORM_SUPPORTS_PANIC_SHELL=1 \
43 WITH_CPU_EARLY_INIT=1 \
44 WITH_NO_FP=1 \
45
46LINKER_SCRIPT += \
47 $(BUILDDIR)/system-onesegment.ld
48
49ARM_CPU := cortex-a9-neon
50
51include make/module.mk $(LOCAL_DIR)/drivers/rules.mk