blob: 20872cc78abe665382c6cd46ad37cab833159c97 [file] [log] [blame]
# top level project rules for the MSM8953 project
#
LOCAL_DIR := $(GET_LOCAL_DIR)
TARGET := msm8953
MODULES += app/aboot
ifeq ($(TARGET_BUILD_VARIANT),user)
DEBUG := 0
else
ifeq ($(DISABLE_LOGGING_BL),1)
DEBUG := 0
else
DEBUG := 1
endif
endif
EMMC_BOOT := 1
ifeq ($(ENABLE_DISPLAY),1)
DEFINES += ENABLE_DISPLAY=1
DEFINES += DISPLAY_SPLASH_SCREEN=1
endif
ENABLE_SECAPP_LOADER := 1
ENABLE_RPMB_SUPPORT := 1
ifeq ($(VERIFIED_BOOT),1)
ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
#enable fbcon display menu
ENABLE_FBCON_DISPLAY_MSG := 1
endif
endif
ifeq ($(VERIFIED_BOOT_2),1)
ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
#enable fbcon display menu
ENABLE_FBCON_DISPLAY_MSG := 1
endif
endif
#Enable below flag to compile cmnlib64
DEFINES += ENABLE_CMNLIB64_LOADING=1
ENABLE_SMD_SUPPORT := 1
ENABLE_PWM_SUPPORT := true
#Comment this to disable this feature.
DEFINES += SECURE_CODE_MEM=1
#DEFINES += WITH_DEBUG_DCC=1
DEFINES += WITH_DEBUG_LOG_BUF=1
DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
DEFINES += DEVICE_TREE=1
#DEFINES += MMC_BOOT_BAM=1
DEFINES += CRYPTO_BAM=1
DEFINES += SPMI_CORE_V2=1
DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
DEFINES += BAM_V170=1
#Enable the feature of long press power on
DEFINES += LONG_PRESS_POWER_ON=1
ifeq ($(ENABLE_RPMB_SUPPORT),1)
DEFINES += USE_RPMB_FOR_DEVINFO=1
endif
#Disable thumb mode
ENABLE_THUMB := false
ENABLE_SDHCI_SUPPORT := 1
ENABLE_USB30_SUPPORT := 1
ifeq ($(ENABLE_SDHCI_SUPPORT),1)
DEFINES += MMC_SDHCI_SUPPORT=1
endif
ifeq ($(ENABLE_FBCON_DISPLAY_MSG),1)
DEFINES += FBCON_DISPLAY_MSG=1
endif
#enable power on vibrator feature
ENABLE_HAP_VIB_SUPPORT := true
ifeq ($(EMMC_BOOT),1)
DEFINES += _EMMC_BOOT=1
endif
ifeq ($(ENABLE_HAP_VIB_SUPPORT),true)
DEFINES += PON_VIB_SUPPORT=1
endif
ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
DEFINES += PON_VIB_SUPPORT=1
endif
ifeq ($(ENABLE_SMD_SUPPORT),1)
DEFINES += SMD_SUPPORT=1
endif
ifeq ($(ENABLE_USB30_SUPPORT),1)
DEFINES += USB30_SUPPORT=1
endif
ifeq ($(APPEND_CMDLINE),1)
DEFINES += _APPEND_CMDLINE=1
endif
#SCM call before entering DLOAD mode
DEFINES += PLATFORM_USE_SCM_DLOAD=1
CFLAGS += -Werror
#enable user force reset feature
DEFINES += USER_FORCE_RESET_SUPPORT=1
# Reset USB clock from target code
DEFINES += USB_RESET_FROM_CLK=1
DEFINES += USE_TARGET_QMP_SETTINGS=1
DEFINES += USE_TARGET_HS200_DELAY=1
#Enable the external reboot functions
ENABLE_REBOOT_MODULE := 1
ifeq ($(VERIFIED_BOOT),1)
ifneq (,$(findstring DISPLAY_SPLASH_SCREEN,$(DEFINES)))
#Enable MDTP feature
ENABLE_MDTP_SUPPORT := 1
endif
endif
ifeq ($(ENABLE_MDTP_SUPPORT),1)
DEFINES += MDTP_SUPPORT=1
endif
#enable battery voltage check
DEFINES += CHECK_BAT_VOLTAGE=1
#Enable the external reboot functions
ENABLE_REBOOT_MODULE := 1
#Use PON register for reboot reason
DEFINES += USE_PON_REBOOT_REG=1