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