rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | MODULE := $(LOCAL_DIR) |
| 4 | COMMON_PLAT := $(LOCAL_DIR)/../mediatek/common |
| 5 | |
| 6 | ARCH := arm |
| 7 | ARM_CPU := cortex-a7 |
| 8 | WITH_SMP ?= 0 |
| 9 | |
| 10 | LK_HEAP_IMPLEMENTATION ?= miniheap |
| 11 | |
| 12 | GLOBAL_INCLUDES += -I$(LK_TOP_DIR)/include \ |
| 13 | |
| 14 | MODULE_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 | |
| 21 | KERNEL_BASE ?= 0x200000 |
| 22 | KERNEL_LOAD_OFFSET ?= 0x0400 |
| 23 | MEMBASE ?= 0x200000 |
| 24 | MEMSIZE ?= 0x00020000 # 128K |
| 25 | RAMBASE ?= 0x1000 # 4k alignment |
| 26 | MACH_TYPE := 2701 |
| 27 | |
| 28 | MODULE_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 | |
| 37 | GLOBAL_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 | |
| 46 | LINKER_SCRIPT += \ |
| 47 | $(BUILDDIR)/system-onesegment.ld |
| 48 | |
| 49 | ARM_CPU := cortex-a9-neon |
| 50 | |
| 51 | include make/module.mk $(LOCAL_DIR)/drivers/rules.mk |