google_hexagonv55_slpi-see.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Google CHRE Reference Implementation for Hexagon v55 Architecture on SLPI
  3. #
  4. include $(CHRE_PREFIX)/build/clean_build_template_args.mk
  5. TARGET_NAME = google_hexagonv55_slpi-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 += $(GOOGLE_HEXAGONV55_SLPI-SEE_CFLAGS)
  11. TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV55_SLPI-SEE_SRCS)
  12. TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV55_SLPI-SEE_LATE_LIBS)
  13. TARGET_PLATFORM_ID = 0x476f6f676c000004
  14. HEXAGON_ARCH = v55
  15. TARGET_CFLAGS += $(SLPI_CFLAGS)
  16. TARGET_VARIANT_SRCS += $(SLPI_SRCS)
  17. # Add SLPI/SEE-specific compiler flags and source files
  18. TARGET_CFLAGS += $(SLPI_SEE_CFLAGS)
  19. TARGET_CFLAGS += $(SLPI_SEE_QMI_CFLAGS)
  20. TARGET_VARIANT_SRCS += $(SLPI_SEE_SRCS)
  21. TARGET_VARIANT_SRCS += $(SLPI_SEE_QMI_SRCS)
  22. ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
  23. ifneq ($(IS_NANOAPP_BUILD),)
  24. TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
  25. include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
  26. endif
  27. include $(CHRE_PREFIX)/build/arch/hexagon.mk
  28. # remove any CUST_H definitions by common code for this variant
  29. TARGET_CFLAGS := $(filter-out -DCUST_H%, $(TARGET_CFLAGS))
  30. # add our private definition, only if requested by variant config
  31. ifdef TARGET_V55_CUST_H
  32. TARGET_CFLAGS += -DCUST_H=\"$(TARGET_V55_CUST_H)\"
  33. endif
  34. include $(CHRE_PREFIX)/build/build_template.mk
  35. endif