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