1# 2# Google CHRE Reference Implementation for Hexagon v66 Architecture on SLPI 3# 4 5include $(CHRE_PREFIX)/build/clean_build_template_args.mk 6 7TARGET_NAME = google_hexagonv66_slpi-see-uimg 8# Sized based on the buffer allocated in the host daemon (4096 bytes), minus 9# FlatBuffer overhead (max 80 bytes), minus some extra space to make a nice 10# round number and allow for addition of new fields to the FlatBuffer 11TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000 12TARGET_CFLAGS += -DUIMG_DL_VER_MAJOR=2 13TARGET_CFLAGS += -DCHRE_SLPI_UIMG_ENABLED 14TARGET_CFLAGS += -DCHRE_THREAD_UTIL_ENABLED 15TARGET_CFLAGS += $(GOOGLE_HEXAGONV66_SLPI-SEE-UIMG_CFLAGS) 16TARGET_CFLAGS += -DCHRE_FIRST_SUPPORTED_API_VERSION=CHRE_API_VERSION_1_2 17TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV66_SLPI-SEE-UIMG_SRCS) 18TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV66_SLPI-SEE-UIMG_LATE_LIBS) 19TARGET_PLATFORM_ID = 0x476f6f676c000005 20HEXAGON_ARCH = v66 21 22TARGET_CFLAGS += $(SLPI_CFLAGS) 23TARGET_VARIANT_SRCS += $(SLPI_SRCS) 24 25# Add SLPI/SEE-specific compiler flags and source files 26TARGET_CFLAGS += $(SLPI_SEE_CFLAGS) 27TARGET_CFLAGS += $(SLPI_SEE_QSK_CFLAGS) 28TARGET_VARIANT_SRCS += $(SLPI_SEE_SRCS) 29TARGET_VARIANT_SRCS += $(SLPI_SEE_QSK_SRCS) 30 31# Enable uImage support. 32TARGET_VARIANT_SRCS += $(SYS_SUPPORT_PATH)/qcom/uimg_dl_ver.c 33TARGET_SO_LDFLAGS += --script=$(SYS_SUPPORT_PATH)/qcom/uimage_v2.lcs 34 35ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),) 36ifneq ($(IS_NANOAPP_BUILD),) 37TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so 38include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk 39endif 40 41include $(CHRE_PREFIX)/build/arch/hexagon.mk 42include $(CHRE_PREFIX)/build/build_template.mk 43endif 44