This picks up the major work of allowing multiple heap implementations and enable dlmalloc as an alternate heap to the simple existing one (now called 'miniheap'). Also added a novm page allocator for memory management on systems too small or missing an mmu to have a vm. Not much more than a simple bitmap allocator that the heap pulls from. Allows for other heaps and/or users of physical memory to coexist and span multiple banks of memory.
27 lines
426 B
Makefile
27 lines
426 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
ARCH := arm
|
|
ARM_CPU := cortex-a9-neon
|
|
WITH_SMP := 1
|
|
|
|
MODULE_DEPS := \
|
|
lib/cbuf \
|
|
dev/interrupt/arm_gic \
|
|
dev/timer/arm_cortex_a9
|
|
|
|
MODULE_SRCS += \
|
|
$(LOCAL_DIR)/clocks.c \
|
|
$(LOCAL_DIR)/debug.c \
|
|
$(LOCAL_DIR)/platform.c \
|
|
$(LOCAL_DIR)/uart.c
|
|
|
|
MEMBASE := 0x0
|
|
MEMSIZE ?= 0x10000000 # 256MB
|
|
|
|
LINKER_SCRIPT += \
|
|
$(BUILDDIR)/system-onesegment.ld
|
|
|
|
include make/module.mk
|