1# 2# Qualcomm CHRE Implementation for Hexagon v60, based on Nanohub 3# 4 5include $(CHRE_PREFIX)/build/clean_build_template_args.mk 6 7TARGET_NAME = qcom_hexagonv60_nanohub-uimg 8TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4080 9TARGET_CFLAGS += -mno-pic-data-is-text-relative 10TARGET_CFLAGS += $(QCOM_HEXAGONV60_NANOHUB-UIMG_CFLAGS) 11TARGET_VARIANT_SRCS = $(QCOM_HEXAGONV60_NANOHUB-UIMG_SRCS) 12TARGET_SO_LATE_LIBS = $(QCOM_HEXAGONV60_NANOHUB-UIMG_LATE_LIBS) 13TARGET_PLATFORM_ID = 0x2051434F4D000001 14HEXAGON_ARCH = v60 15 16# Enable uImage support. 17TARGET_VARIANT_SRCS += $(SYS_SUPPORT_PATH)/qcom/uimg_dl_ver.c 18TARGET_SO_LDFLAGS += --script=$(SYS_SUPPORT_PATH)/qcom/uimage.lcs.toolv80 19 20ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),) 21ifneq ($(IS_NANOAPP_BUILD),) 22TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/qcom_nanohub/chre.so 23TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/qcom_nanohub/chre_platform.so 24include $(CHRE_PREFIX)/build/nanoapp/qcom_nanohub.mk 25endif 26 27include $(CHRE_PREFIX)/build/arch/hexagon.mk 28include $(CHRE_PREFIX)/build/build_template.mk 29endif 30