• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Google CHRE Reference Implementation for Hexagon v62 Architecture on SLPI
3#
4
5include $(CHRE_PREFIX)/build/clean_build_template_args.mk
6
7TARGET_NAME = google_hexagonv62_slpi
8# Sized based on the buffer allocated in the host daemon (4096 bytes), minus
9# FlatBuffer overhead (max 80 bytes), minus some extra space to make a nice
10# round number and allow for addition of new fields to the FlatBuffer
11TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000
12TARGET_CFLAGS += $(GOOGLE_HEXAGONV62_SLPI_CFLAGS)
13TARGET_CFLAGS += -DCHRE_FIRST_SUPPORTED_API_VERSION=CHRE_API_VERSION_1_1
14TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV62_SLPI_SRCS)
15TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV62_SLPI_LATE_LIBS)
16TARGET_PLATFORM_ID = 0x476f6f676c000002
17HEXAGON_ARCH = v62
18
19TARGET_CFLAGS += $(SLPI_CFLAGS)
20TARGET_VARIANT_SRCS += $(SLPI_SRCS)
21
22# Add SLPI/SMGR-specific compiler flags and source files
23TARGET_CFLAGS += $(SLPI_SMGR_CFLAGS)
24TARGET_VARIANT_SRCS += $(SLPI_SMGR_SRCS)
25
26ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
27ifneq ($(IS_NANOAPP_BUILD),)
28TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
29include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
30endif
31
32include $(CHRE_PREFIX)/build/arch/hexagon.mk
33include $(CHRE_PREFIX)/build/build_template.mk
34endif
35