1LOCAL_PATH := $(call my-dir)
2
3################################################################################
4include $(CLEAR_VARS)
5LOCAL_MODULE := android.hardware.configstore@1.1-service
6# seccomp is not required for coverage build.
7ifneq ($(NATIVE_COVERAGE),true)
8LOCAL_REQUIRED_MODULES_arm64 := configstore@1.1.policy
9endif
10LOCAL_VENDOR_MODULE := true
11LOCAL_MODULE_CLASS := EXECUTABLES
12LOCAL_MODULE_RELATIVE_PATH := hw
13LOCAL_INIT_RC := android.hardware.configstore@1.1-service.rc
14LOCAL_SRC_FILES:= service.cpp
15
16include $(LOCAL_PATH)/surfaceflinger.mk
17
18LOCAL_SHARED_LIBRARIES := \
19    libhidlbase \
20    libbase \
21    libhwminijail \
22    liblog \
23    libutils \
24    android.hardware.configstore@1.0 \
25    android.hardware.configstore@1.1
26
27include $(BUILD_EXECUTABLE)
28
29# seccomp filter for configstore
30ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm64))
31include $(CLEAR_VARS)
32LOCAL_MODULE := configstore@1.1.policy
33LOCAL_MODULE_CLASS := ETC
34LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/seccomp_policy
35LOCAL_SRC_FILES := seccomp_policy/configstore@1.1-$(TARGET_ARCH).policy
36include $(BUILD_PREBUILT)
37endif
38
39# disable configstore
40include $(CLEAR_VARS)
41LOCAL_MODULE := disable_configstore
42LOCAL_MODULE_CLASS := EXECUTABLES
43LOCAL_SRC_FILES:= disable_configstore.cpp
44LOCAL_OVERRIDES_MODULES := android.hardware.configstore@1.1-service
45LOCAL_VENDOR_MODULE := true
46LOCAL_UNINSTALLABLE_MODULE := true
47
48include $(BUILD_EXECUTABLE)
49