xref: /aosp_15_r20/system/chre/build/variant/google_hexagonv62_slpi-uimg.mk (revision 84e339476a462649f82315436d70fd732297a399)
1*84e33947SAndroid Build Coastguard Worker#
2*84e33947SAndroid Build Coastguard Worker# Google CHRE Reference Implementation for Hexagon v62 Architecture on SLPI
3*84e33947SAndroid Build Coastguard Worker#
4*84e33947SAndroid Build Coastguard Worker
5*84e33947SAndroid Build Coastguard Workerinclude $(CHRE_PREFIX)/build/clean_build_template_args.mk
6*84e33947SAndroid Build Coastguard Worker
7*84e33947SAndroid Build Coastguard WorkerTARGET_NAME = google_hexagonv62_slpi-uimg
8*84e33947SAndroid Build Coastguard Worker# Sized based on the buffer allocated in the host daemon (4096 bytes), minus
9*84e33947SAndroid Build Coastguard Worker# FlatBuffer overhead (max 80 bytes), minus some extra space to make a nice
10*84e33947SAndroid Build Coastguard Worker# round number and allow for addition of new fields to the FlatBuffer
11*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000
12*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS += -mno-pic-data-is-text-relative
13*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS += -DCHRE_SLPI_UIMG_ENABLED
14*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS += $(GOOGLE_HEXAGONV62_SLPI-UIMG_CFLAGS)
15*84e33947SAndroid Build Coastguard WorkerTARGET_VARIANT_SRCS = $(GOOGLE_HEXAGONV62_SLPI-UIMG_SRCS)
16*84e33947SAndroid Build Coastguard WorkerTARGET_SO_LATE_LIBS = $(GOOGLE_HEXAGONV62_SLPI-UIMG_LATE_LIBS)
17*84e33947SAndroid Build Coastguard WorkerTARGET_PLATFORM_ID = 0x476f6f676c000002
18*84e33947SAndroid Build Coastguard WorkerHEXAGON_ARCH = v62
19*84e33947SAndroid Build Coastguard Worker
20*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS += $(SLPI_CFLAGS)
21*84e33947SAndroid Build Coastguard WorkerTARGET_VARIANT_SRCS += $(SLPI_SRCS)
22*84e33947SAndroid Build Coastguard Worker
23*84e33947SAndroid Build Coastguard Worker# Add SLPI/SMGR-specific compiler flags and source files
24*84e33947SAndroid Build Coastguard WorkerTARGET_CFLAGS += $(SLPI_SMGR_CFLAGS)
25*84e33947SAndroid Build Coastguard WorkerTARGET_VARIANT_SRCS += $(SLPI_SMGR_SRCS)
26*84e33947SAndroid Build Coastguard Worker
27*84e33947SAndroid Build Coastguard Worker# Enable uImage support.
28*84e33947SAndroid Build Coastguard WorkerTARGET_VARIANT_SRCS += $(SYS_SUPPORT_PATH)/qcom/uimg_dl_ver.c
29*84e33947SAndroid Build Coastguard WorkerTARGET_SO_LDFLAGS += --script=$(SYS_SUPPORT_PATH)/qcom/uimage.lcs.toolv80
30*84e33947SAndroid Build Coastguard Worker
31*84e33947SAndroid Build Coastguard Workerifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),)
32*84e33947SAndroid Build Coastguard Workerifneq ($(IS_NANOAPP_BUILD),)
33*84e33947SAndroid Build Coastguard WorkerTARGET_SO_LATE_LIBS += $(CHRE_PREFIX)/build/app_support/google_slpi/libchre_slpi_skel.so
34*84e33947SAndroid Build Coastguard Workerinclude $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
35*84e33947SAndroid Build Coastguard Workerendif
36*84e33947SAndroid Build Coastguard Worker
37*84e33947SAndroid Build Coastguard Workerinclude $(CHRE_PREFIX)/build/arch/hexagon.mk
38*84e33947SAndroid Build Coastguard Workerinclude $(CHRE_PREFIX)/build/build_template.mk
39*84e33947SAndroid Build Coastguard Workerendif
40