google_hexagonv66_adsp-see.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Google CHRE Reference Implementation for Hexagon v66 Architecture on ADSP
  3. #
  4. include $(CHRE_PREFIX)/build/clean_build_template_args.mk
  5. TARGET_NAME = google_hexagonv66_adsp-see
  6. # Sized based on the buffer allocated in the host daemon (4096 bytes), minus
  7. # FlatBuffer overhead (max 80 bytes), minus some extra space to make a nice
  8. # round number and allow for addition of new fields to the FlatBuffer
  9. TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000
  10. TARGET_CFLAGS += -DCHRE_THREAD_UTIL_ENABLED
  11. TARGET_CFLAGS += $(GOOGLE_HEXAGONV66_ADSP-SEE_CFLAGS)
  12. TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV66_ADSP-SEE_SRCS)
  13. TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV66_ADSP-SEE_LATE_LIBS)
  14. TARGET_PLATFORM_ID = 0x476f6f676c000007
  15. HEXAGON_ARCH = v66
  16. TARGET_CFLAGS += $(SLPI_CFLAGS)
  17. TARGET_VARIANT_SRCS += $(SLPI_SRCS)
  18. # Add SLPI/SEE-specific compiler flags and source files
  19. TARGET_CFLAGS += $(SLPI_SEE_CFLAGS)
  20. TARGET_CFLAGS += $(SLPI_SEE_QMI_CFLAGS)
  21. TARGET_VARIANT_SRCS += $(SLPI_SEE_SRCS)
  22. TARGET_VARIANT_SRCS += $(SLPI_SEE_QMI_SRCS)
  23. ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
  24. ifneq ($(IS_NANOAPP_BUILD),)
  25. TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
  26. include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
  27. endif
  28. include $(CHRE_PREFIX)/build/arch/hexagon.mk
  29. include $(CHRE_PREFIX)/build/build_template.mk
  30. endif