• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Google CHRE Reference Implementation for Hexagon v66 Architecture on ADSP
3#
4
5include $(CHRE_PREFIX)/build/clean_build_template_args.mk
6
7TARGET_NAME = google_hexagonv66_adsp-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 += -DCHRE_THREAD_UTIL_ENABLED
13TARGET_CFLAGS += $(GOOGLE_HEXAGONV66_ADSP-SEE_CFLAGS)
14TARGET_CFLAGS += -DCHRE_FIRST_SUPPORTED_API_VERSION=CHRE_API_VERSION_1_2
15TARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV66_ADSP-SEE_SRCS)
16TARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV66_ADSP-SEE_LATE_LIBS)
17TARGET_PLATFORM_ID = 0x476f6f676c000007
18HEXAGON_ARCH = v66
19
20# Define build target and settings for building rust archives for this variant
21RUST_TARGET_DIR = $(CHRE_PREFIX)/build/rust
22RUST_TARGET = hexagonv66_rust_target
23
24TARGET_CFLAGS += $(SLPI_CFLAGS)
25TARGET_VARIANT_SRCS += $(SLPI_SRCS)
26
27# Add SLPI/SEE-specific compiler flags and source files
28TARGET_CFLAGS += $(SLPI_SEE_CFLAGS)
29TARGET_CFLAGS += $(SLPI_SEE_QMI_CFLAGS)
30TARGET_VARIANT_SRCS += $(SLPI_SEE_SRCS)
31TARGET_VARIANT_SRCS += $(SLPI_SEE_QMI_SRCS)
32
33ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
34ifneq ($(IS_NANOAPP_BUILD),)
35TARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
36include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
37endif
38
39include $(CHRE_PREFIX)/build/arch/hexagon.mk
40include $(CHRE_PREFIX)/build/build_template.mk
41endif
42