M7350/bootable/bootloader/lk/target/msm8952/rules.mk

55 lines
1.1 KiB
Makefile
Raw Normal View History

2024-09-09 08:57:42 +00:00
LOCAL_DIR := $(GET_LOCAL_DIR)
INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
INCLUDES += -I$(LK_TOP_DIR)/dev/gcdb/display -I$(LK_TOP_DIR)/dev/gcdb/display/include
ifeq ($(ENABLE_MDTP_SUPPORT),1)
INCLUDES += -I$(LK_TOP_DIR)/app/aboot
endif
PLATFORM := msm8952
MEMBASE := 0x8F600000 # SDRAM
MEMSIZE := 0x00300000 # 3MB
BASE_ADDR := 0x80000000
SCRATCH_ADDR := 0x90000000
DEFINES += DISPLAY_SPLASH_SCREEN=1
DEFINES += DISPLAY_TYPE_MIPI=1
DEFINES += DISPLAY_TYPE_DSI6G=1
DEFINES += PMI_CONFIGURED=1
MODULES += \
dev/keys \
lib/ptable \
dev/pmic/pm8x41 \
dev/qpnp_haptic \
dev/vib \
lib/libfdt \
dev/qpnp_wled \
dev/pmic/pmi8994 \
dev/pmic/fgsram \
dev/gcdb/display
DEFINES += \
MEMSIZE=$(MEMSIZE) \
MEMBASE=$(MEMBASE) \
BASE_ADDR=$(BASE_ADDR) \
SCRATCH_ADDR=$(SCRATCH_ADDR)
OBJS += \
$(LOCAL_DIR)/init.o \
$(LOCAL_DIR)/meminfo.o \
$(LOCAL_DIR)/target_display.o \
$(LOCAL_DIR)/oem_panel.o
ifeq ($(ENABLE_SMD_SUPPORT),1)
OBJS += \
$(LOCAL_DIR)/regulator.o
endif
ifeq ($(ENABLE_MDTP_SUPPORT),1)
OBJS += \
$(LOCAL_DIR)/mdtp_defs.o
endif