google_hexagonv62_slpi.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # Google CHRE Reference Implementation for Hexagon v62 Architecture on SLPI
  3. #
  4. include $(CHRE_PREFIX)/build/clean_build_template_args.mk
  5. TARGET_NAME = google_hexagonv62_slpi
  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_HEXAGONV62_SLPI_CFLAGS)
  11. TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV62_SLPI_SRCS)
  12. TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV62_SLPI_LATE_LIBS)
  13. TARGET_PLATFORM_ID = 0x476f6f676c000002
  14. HEXAGON_ARCH = v62
  15. TARGET_CFLAGS += $(SLPI_CFLAGS)
  16. TARGET_VARIANT_SRCS += $(SLPI_SRCS)
  17. # Add SLPI/SMGR-specific compiler flags and source files
  18. TARGET_CFLAGS += $(SLPI_SMGR_CFLAGS)
  19. TARGET_VARIANT_SRCS += $(SLPI_SMGR_SRCS)
  20. ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
  21. ifneq ($(IS_NANOAPP_BUILD),)
  22. TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
  23. include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
  24. endif
  25. include $(CHRE_PREFIX)/build/arch/hexagon.mk
  26. include $(CHRE_PREFIX)/build/build_template.mk
  27. endif