1 2ifeq ($(ANDROID_BUILD_TOP),) 3$(error "You should supply an ANDROID_BUILD_TOP environment variable \ 4 containing a path to the Android source tree. This is typically \ 5 provided by initializing the Android build environment.") 6endif 7 8# Variant Prefix ############################################################### 9 10VARIANT_PREFIX = $(ANDROID_BUILD_TOP)/system/chre/variant 11 12# Chre Version String ########################################################## 13 14COMMIT_HASH_COMMAND = git describe --always --long --dirty 15COMMIT_HASH = $(shell $(COMMIT_HASH_COMMAND)) 16 17COMMON_CFLAGS += -DCHRE_VERSION_STRING="\"chre=embos@$(COMMIT_HASH)\"" 18 19# Common Compiler Flags ######################################################## 20 21# Supply a symbol to indicate that the build variant supplies the static 22# nanoapp list. 23COMMON_CFLAGS += -DCHRE_VARIANT_SUPPLIES_STATIC_NANOAPP_LIST 24 25# CHRE event count ############################################################# 26 27EMBOS_CFLAGS += -DCHRE_EVENT_PER_BLOCK=32 28EMBOS_CFLAGS += -DCHRE_MAX_EVENT_BLOCKS=4 29 30# Optional Features ############################################################ 31 32CHRE_AUDIO_SUPPORT_ENABLED = true 33CHRE_GNSS_SUPPORT_ENABLED = false 34CHRE_SENSORS_SUPPORT_ENABLED = true 35CHRE_WIFI_SUPPORT_ENABLED = false 36CHRE_WWAN_SUPPORT_ENABLED = false 37CHRE_BLE_SUPPORT_ENABLED = false 38 39# Common Source Files ########################################################## 40 41COMMON_SRCS += $(VARIANT_PREFIX)/exynos-embos/static_nanoapps.cc 42 43