1# 2# Google CHRE Reference Implementation for Hexagon v66 Architecture on SLPI 3# using QSH. 4# 5 6include $(CHRE_PREFIX)/build/clean_build_template_args.mk 7 8TARGET_NAME = google_hexagonv66_slpi-qsh 9# Sized based on the buffer allocated in the host daemon (4096 bytes), minus 10# FlatBuffer overhead (max 80 bytes), minus some extra space to make a nice 11# round number and allow for addition of new fields to the FlatBuffer 12TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000 13TARGET_CFLAGS += -DCHRE_QSH_ENABLED 14TARGET_CFLAGS += -DCHRE_USE_FARF_LOGGING 15TARGET_CFLAGS += $(GOOGLE_HEXAGONV66_SLPI-QSH_CFLAGS) 16TARGET_CFLAGS += -DCHRE_FIRST_SUPPORTED_API_VERSION=CHRE_API_VERSION_1_2 17TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV66_SLPI-QSH_SRCS) 18TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV66_SLPI-QSH_LATE_LIBS) 19TARGET_PLATFORM_ID = 0x476f6f676c00000a 20HEXAGON_ARCH = v66 21 22TARGET_CFLAGS += $(SLPI_CFLAGS) 23TARGET_VARIANT_SRCS += $(SLPI_SRCS) 24 25# Add SLPI/QSH-specific compiler flags and source files 26TARGET_CFLAGS += $(SLPI_QSH_CFLAGS) 27TARGET_VARIANT_SRCS += $(SLPI_QSH_SRCS) 28 29CHRE_USE_BUFFERED_LOGGING = false 30 31ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),) 32ifneq ($(IS_NANOAPP_BUILD),) 33TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so 34include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk 35endif 36 37include $(CHRE_PREFIX)/build/arch/hexagon.mk 38include $(CHRE_PREFIX)/build/build_template.mk 39endif 40