2011-03-25 21:39:33 +00:00
|
|
|
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
|
|
|
|
INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
|
|
|
|
|
|
|
|
PLATFORM := qsd8k
|
|
|
|
|
|
|
|
#define system partition size (in MB), if not defined my custom (from magldr) layout is used. see init.c
|
2011-05-08 01:06:18 +00:00
|
|
|
DEFINES += SYSTEM_PARTITION_SIZE=250
|
2011-03-27 20:24:52 +00:00
|
|
|
#DEFINES += SYSTEM_PARTITION_SIZE=400
|
2011-05-08 01:06:18 +00:00
|
|
|
DEFINES += CACHE_PARTITION_SIZE=5
|
2011-03-25 21:39:33 +00:00
|
|
|
|
|
|
|
#cedesmith note: MEMBASE requires edit in platform/qsd8k/rules.mk
|
|
|
|
# maximum partition size will be about 340mb ( MEMBASE-SCRATCH_ADDR)
|
|
|
|
MEMBASE := 0x28000000
|
|
|
|
MEMSIZE := 0x00100000
|
|
|
|
DEFINES += WSPL_VADDR=0x80000000
|
|
|
|
|
|
|
|
BASE_ADDR := 0x11800000
|
|
|
|
TAGS_ADDR := "(BASE_ADDR+0x00000100)"
|
|
|
|
KERNEL_ADDR := "(BASE_ADDR+0x00008000)"
|
|
|
|
RAMDISK_ADDR := "(BASE_ADDR+0x00a00000)"
|
|
|
|
SCRATCH_ADDR := "(BASE_ADDR+0x01400000)"
|
|
|
|
|
|
|
|
#BASE_ADDR + 0x04000000
|
|
|
|
#MEMBASE := 0x15800000
|
|
|
|
#SCRATCH_ADDR := 0x16800000
|
|
|
|
#SCRATCH_ADDR := "(MEMBASE+0x02000000)"
|
|
|
|
#MEMBASE := SCRATCH_ADDR+0x19000000
|
|
|
|
|
|
|
|
KEYS_USE_GPIO_KEYPAD := 1
|
|
|
|
|
|
|
|
#DEFINES += ENABLE_BATTERY_CHARGING=1
|
|
|
|
#DEFINES += DISPLAY_SPLASH_SCREEN=1
|
|
|
|
DEFINES += DISPLAY_TYPE_LCDC=1
|
|
|
|
|
|
|
|
CFLAGS += -mlittle-endian -mfpu=neon
|
|
|
|
LDFLAGS += -EL
|
|
|
|
|
|
|
|
MODULES += \
|
|
|
|
dev/keys \
|
|
|
|
lib/ptable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
MEMBASE=$(MEMBASE)\
|
|
|
|
MEMSIZE=$(MEMSIZE) \
|
|
|
|
BASE_ADDR=$(BASE_ADDR) \
|
|
|
|
TAGS_ADDR=$(TAGS_ADDR) \
|
|
|
|
KERNEL_ADDR=$(KERNEL_ADDR) \
|
|
|
|
RAMDISK_ADDR=$(RAMDISK_ADDR) \
|
|
|
|
SCRATCH_ADDR=$(SCRATCH_ADDR)
|
|
|
|
|
|
|
|
OBJS += \
|
|
|
|
$(LOCAL_DIR)/init.o \
|
|
|
|
$(LOCAL_DIR)/nand.o \
|
|
|
|
$(LOCAL_DIR)/keypad.o \
|
|
|
|
$(LOCAL_DIR)/atags.o
|
|
|
|
|
|
|
|
OBJS += \
|
|
|
|
$(LOCAL_DIR)/htcleo_boot.o \
|
|
|
|
$(LOCAL_DIR)/htcleo_boot_s.o\
|
|
|
|
$(LOCAL_DIR)/platform.o \
|
|
|
|
$(LOCAL_DIR)/oem_cmd.o
|
|
|
|
|