google_hexagonv65_adsp-see-uimg.mk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Google CHRE Reference Implementation for Hexagon v65 Architecture on ADSP
  3. #
  4. include $(CHRE_PREFIX)/build/clean_build_template_args.mk
  5. TARGET_NAME = google_hexagonv65_adsp-see-uimg
  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 += -DUIMG_DL_VER_MAJOR=2
  11. TARGET_CFLAGS += -DCHRE_SLPI_UIMG_ENABLED
  12. TARGET_CFLAGS += -DCHRE_THREAD_UTIL_ENABLED
  13. TARGET_CFLAGS += $(GOOGLE_HEXAGONV65_ADSP-SEE-UIMG_CFLAGS)
  14. TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV65_ADSP-SEE-UIMG_SRCS)
  15. TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV65_ADSP-SEE-UIMG_LATE_LIBS)
  16. TARGET_PLATFORM_ID = 0x476f6f676c000006
  17. HEXAGON_ARCH = v65
  18. TARGET_CFLAGS += $(SLPI_CFLAGS)
  19. TARGET_VARIANT_SRCS += $(SLPI_SRCS)
  20. # Add SLPI/SEE-specific compiler flags and source files
  21. TARGET_CFLAGS += $(SLPI_SEE_CFLAGS)
  22. TARGET_CFLAGS += $(SLPI_SEE_QSK_CFLAGS)
  23. TARGET_VARIANT_SRCS += $(SLPI_SEE_SRCS)
  24. TARGET_VARIANT_SRCS += $(SLPI_SEE_QSK_SRCS)
  25. # Enable uImage support.
  26. TARGET_VARIANT_SRCS += $(SYS_SUPPORT_PATH)/qcom/uimg_dl_ver.c
  27. TARGET_SO_LDFLAGS += --script=$(SYS_SUPPORT_PATH)/qcom/uimage_v2.lcs
  28. ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
  29. ifneq ($(IS_NANOAPP_BUILD),)
  30. TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
  31. include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
  32. endif
  33. include $(CHRE_PREFIX)/build/arch/hexagon.mk
  34. include $(CHRE_PREFIX)/build/build_template.mk
  35. endif