google_hexagonv62_slpi-uimg.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-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 += -mno-pic-data-is-text-relative
  11. TARGET_CFLAGS += -DCHRE_SLPI_UIMG_ENABLED
  12. TARGET_CFLAGS += $(GOOGLE_HEXAGONV62_SLPI-UIMG_CFLAGS)
  13. TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV62_SLPI-UIMG_SRCS)
  14. TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV62_SLPI-UIMG_LATE_LIBS)
  15. TARGET_PLATFORM_ID = 0x476f6f676c000002
  16. HEXAGON_ARCH = v62
  17. TARGET_CFLAGS += $(SLPI_CFLAGS)
  18. TARGET_VARIANT_SRCS += $(SLPI_SRCS)
  19. # Add SLPI/SMGR-specific compiler flags and source files
  20. TARGET_CFLAGS += $(SLPI_SMGR_CFLAGS)
  21. TARGET_VARIANT_SRCS += $(SLPI_SMGR_SRCS)
  22. # Enable uImage support.
  23. TARGET_VARIANT_SRCS += $(SYS_SUPPORT_PATH)/qcom/uimg_dl_ver.c
  24. TARGET_SO_LDFLAGS += --script=$(SYS_SUPPORT_PATH)/qcom/uimage.lcs.toolv80
  25. ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
  26. ifneq ($(IS_NANOAPP_BUILD),)
  27. TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
  28. include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
  29. endif
  30. include $(CHRE_PREFIX)/build/arch/hexagon.mk
  31. include $(CHRE_PREFIX)/build/build_template.mk
  32. endif