1# 2# Copyright (C) 2020 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17host_init_verifier_output := $(PRODUCT_OUT)/host_init_verifier_output.txt 18 19$(host_init_verifier_output): \ 20 $(INSTALLED_SYSTEMIMAGE_TARGET) \ 21 $(INSTALLED_SYSTEM_EXTIMAGE_TARGET) \ 22 $(INSTALLED_VENDORIMAGE_TARGET) \ 23 $(INSTALLED_ODMIMAGE_TARGET) \ 24 $(INSTALLED_PRODUCTIMAGE_TARGET) \ 25 $(call intermediates-dir-for,ETC,passwd_system)/passwd_system \ 26 $(call intermediates-dir-for,ETC,passwd_system_ext)/passwd_system_ext \ 27 $(call intermediates-dir-for,ETC,passwd_vendor)/passwd_vendor \ 28 $(call intermediates-dir-for,ETC,passwd_odm)/passwd_odm \ 29 $(call intermediates-dir-for,ETC,passwd_product)/passwd_product \ 30 $(call intermediates-dir-for,ETC,plat_property_contexts)/plat_property_contexts \ 31 $(call intermediates-dir-for,ETC,system_ext_property_contexts)/system_ext_property_contexts \ 32 $(call intermediates-dir-for,ETC,product_property_contexts)/product_property_contexts \ 33 $(call intermediates-dir-for,ETC,vendor_property_contexts)/vendor_property_contexts \ 34 $(call intermediates-dir-for,ETC,odm_property_contexts)/odm_property_contexts 35 36# Run host_init_verifier on the partition staging directories. 37$(host_init_verifier_output): $(HOST_INIT_VERIFIER) 38 $(HOST_INIT_VERIFIER) \ 39 -p $(call intermediates-dir-for,ETC,passwd_system)/passwd_system \ 40 -p $(call intermediates-dir-for,ETC,passwd_system_ext)/passwd_system_ext \ 41 -p $(call intermediates-dir-for,ETC,passwd_vendor)/passwd_vendor \ 42 -p $(call intermediates-dir-for,ETC,passwd_odm)/passwd_odm \ 43 -p $(call intermediates-dir-for,ETC,passwd_product)/passwd_product \ 44 --property-contexts=$(call intermediates-dir-for,ETC,plat_property_contexts)/plat_property_contexts \ 45 --property-contexts=$(call intermediates-dir-for,ETC,system_ext_property_contexts)/system_ext_property_contexts \ 46 --property-contexts=$(call intermediates-dir-for,ETC,product_property_contexts)/product_property_contexts \ 47 --property-contexts=$(call intermediates-dir-for,ETC,vendor_property_contexts)/vendor_property_contexts \ 48 --property-contexts=$(call intermediates-dir-for,ETC,odm_property_contexts)/odm_property_contexts \ 49 --out_system $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM) \ 50 --out_system_ext $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_EXT) \ 51 --out_vendor $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR) \ 52 --out_odm $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ODM) \ 53 --out_product $(PRODUCT_OUT)/$(TARGET_COPY_OUT_PRODUCT) \ 54 > $@ 55 56$(call dist-for-goals,droidcore-unbundled,$(host_init_verifier_output)) 57