| LOCAL_DIR := $(GET_LOCAL_DIR) |
| |
| MODULE := $(LOCAL_DIR) |
| COMMON_PLAT := $(LOCAL_DIR)/../mediatek/common |
| |
| ARCH := arm |
| ARM_CPU := cortex-a7 |
| WITH_SMP ?= 0 |
| |
| LK_HEAP_IMPLEMENTATION ?= miniheap |
| |
| GLOBAL_INCLUDES += -I$(LK_TOP_DIR)/include \ |
| |
| MODULE_SRCS += \ |
| $(COMMON_PLAT)/boot_mode.c \ |
| $(LOCAL_DIR)/cpu_early_init.S \ |
| $(LOCAL_DIR)/debug.c \ |
| $(LOCAL_DIR)/platform.c \ |
| $(LOCAL_DIR)/interrupts.c \ |
| |
| KERNEL_BASE ?= 0x200000 |
| KERNEL_LOAD_OFFSET ?= 0x0400 |
| MEMBASE ?= 0x200000 |
| MEMSIZE ?= 0x00020000 # 128K |
| RAMBASE ?= 0x1000 # 4k alignment |
| MACH_TYPE := 2701 |
| |
| MODULE_DEPS += \ |
| dev/interrupt/arm_gic \ |
| dev/timer/arm_generic \ |
| lib/bio \ |
| lib/partition \ |
| lib/fdt \ |
| lib/cksum \ |
| lib/mempool \ |
| |
| GLOBAL_DEFINES += \ |
| MEMBASE=$(MEMBASE) \ |
| MEMSIZE=$(MEMSIZE) \ |
| RAMBASE=$(RAMBASE) \ |
| MACH_TYPE=$(MACH_TYPE) \ |
| PLATFORM_SUPPORTS_PANIC_SHELL=1 \ |
| WITH_CPU_EARLY_INIT=1 \ |
| WITH_NO_FP=1 \ |
| |
| LINKER_SCRIPT += \ |
| $(BUILDDIR)/system-onesegment.ld |
| |
| ARM_CPU := cortex-a9-neon |
| |
| include make/module.mk $(LOCAL_DIR)/drivers/rules.mk |