rules.mk 836 B

123456789101112131415161718192021222324252627
  1. #
  2. # Makefile for misc devices that really don't fit anywhere else.
  3. #
  4. LOCAL_DIR := $(GET_LOCAL_DIR)
  5. LCM_DEFINES := $(shell echo $(CUSTOM_LK_LCM) | tr a-z A-Z)
  6. DEFINES += $(foreach LCM,$(LCM_DEFINES),$(LCM))
  7. DEFINES += MTK_LCM_PHYSICAL_ROTATION=\"$(MTK_LCM_PHYSICAL_ROTATION)\"
  8. DEFINES += LCM_WIDTH=\"$(LCM_WIDTH)\"
  9. DEFINES += LCM_HEIGHT=\"$(LCM_HEIGHT)\"
  10. ifeq ($(PLATFORM), $(filter $(PLATFORM), mt6757 mt6763 mt6771 mt6765 mt6762 mt6779 mt6768 mt6785))
  11. DEFINES += LCM_SET_DISPLAY_ON_DELAY=y
  12. endif
  13. LCM_LISTS := $(subst ",,$(CUSTOM_LK_LCM))
  14. OBJS += $(foreach LCM,$(LCM_LISTS),$(LOCAL_DIR)/$(LCM)/$(addsuffix .o, $(LCM)))
  15. OBJS += $(LOCAL_DIR)/mt65xx_lcm_list.o \
  16. $(LOCAL_DIR)/lcm_common.o \
  17. $(LOCAL_DIR)/lcm_gpio.o \
  18. $(LOCAL_DIR)/lcm_i2c.o \
  19. $(LOCAL_DIR)/lcm_util.o \
  20. $(LOCAL_DIR)/lcm_pmic.o
  21. INCLUDES += -I$(LOCAL_DIR)/inc