1LOCAL_MODULE_CLASS := ETC 2LOCAL_MODULE_TAGS := optional 3LOCAL_ADDITIONAL_DEPENDENCIES += \ 4 $(HOST_OUT_EXECUTABLES)/domainGeneratorPolicy.py \ 5 $(PFW_TOPLEVEL_FILE) $(PFW_CRITERIA_FILE) $(PFW_CRITERION_TYPES_FILE) 6 7include $(BUILD_SYSTEM)/base_rules.mk 8 9$(LOCAL_BUILT_MODULE): MY_CRITERION_TYPES_FILE := $(PFW_CRITERION_TYPES_FILE) 10$(LOCAL_BUILT_MODULE): MY_TOOL := $(HOST_OUT_EXECUTABLES)/domainGeneratorPolicy.py 11$(LOCAL_BUILT_MODULE): MY_TOPLEVEL_FILE := $(PFW_TOPLEVEL_FILE) 12$(LOCAL_BUILT_MODULE): MY_CRITERIA_FILE := $(PFW_CRITERIA_FILE) 13$(LOCAL_BUILT_MODULE): MY_TUNING_FILE := $(PFW_TUNING_FILE) 14$(LOCAL_BUILT_MODULE): MY_EDD_FILES := $(PFW_EDD_FILES) 15$(LOCAL_BUILT_MODULE): MY_DOMAIN_FILES := $(PFW_DOMAIN_FILES) 16$(LOCAL_BUILT_MODULE): MY_SCHEMAS_DIR := $(PFW_SCHEMAS_DIR) 17$(LOCAL_BUILT_MODULE): MY_CRITERION_TYPES_FILE := $(PFW_CRITERION_TYPES_FILE) 18$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 19 20 "$(MY_TOOL)" --validate \ 21 --toplevel-config "$(MY_TOPLEVEL_FILE)" \ 22 --criteria "$(MY_CRITERIA_FILE)" \ 23 --criteriontypes "$(MY_CRITERION_TYPES_FILE)" \ 24 --initial-settings $(MY_TUNING_FILE) \ 25 --add-edds $(MY_EDD_FILES) \ 26 --add-domains $(MY_DOMAIN_FILES) \ 27 --schemas-dir $(MY_SCHEMAS_DIR) > "$@" 28 29 30# Clear variables for further use 31PFW_TOPLEVEL_FILE := 32PFW_STRUCTURE_FILES := 33PFW_CRITERIA_FILE := 34PFW_CRITERION_TYPES_FILE := 35PFW_TUNING_FILE := 36PFW_EDD_FILES := 37PFW_DOMAIN_FILES := 38PFW_SCHEMAS_DIR := $(PFW_DEFAULT_SCHEMAS_DIR) 39