Revert "property_context: split into platform and non-platform components."
am: aa03ef2621
Change-Id: I8a80d25fd5cfb47c4d93e33f0c9ab80024543e2c
This commit is contained in:
commit
620d078e69
3 changed files with 23 additions and 36 deletions
53
Android.mk
53
Android.mk
|
@ -760,64 +760,56 @@ $(LOCAL_BUILT_MODULE): $(addprefix $(PLAT_PRIVATE_POLICY)/, seapp_contexts)
|
|||
##################################
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := plat_property_contexts
|
||||
LOCAL_MODULE := property_contexts
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
# TODO: Change module path to TARGET_SYSTEM_OUT after b/27805372
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
|
||||
plat_pcfiles := $(call build_policy, property_contexts, $(PLAT_PRIVATE_POLICY))
|
||||
all_pc_files := $(call build_policy, property_contexts, $(PLAT_PRIVATE_POLICY) $(BOARD_SEPOLICY_DIRS))
|
||||
all_pcfiles_with_nl := $(call add_nl, $(all_pc_files), $(built_nl))
|
||||
|
||||
plat_property_contexts.tmp := $(intermediates)/plat_property_contexts.tmp
|
||||
$(plat_property_contexts.tmp): PRIVATE_PC_FILES := $(plat_pcfiles)
|
||||
$(plat_property_contexts.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS)
|
||||
$(plat_property_contexts.tmp): $(plat_pcfiles)
|
||||
property_contexts.tmp := $(intermediates)/property_contexts.tmp
|
||||
$(property_contexts.tmp): PRIVATE_PC_FILES := $(all_pcfiles_with_nl)
|
||||
$(property_contexts.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS)
|
||||
$(property_contexts.tmp): $(all_pcfiles_with_nl)
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $(PRIVATE_PC_FILES) > $@
|
||||
|
||||
|
||||
$(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy)
|
||||
$(LOCAL_BUILT_MODULE): $(plat_property_contexts.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc
|
||||
$(LOCAL_BUILT_MODULE): $(property_contexts.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) sed -e 's/#.*$$//' -e '/^$$/d' $< > $@
|
||||
$(hide) $(HOST_OUT_EXECUTABLES)/checkfc -p $(PRIVATE_SEPOLICY) $@
|
||||
|
||||
built_plat_pc := $(LOCAL_BUILT_MODULE)
|
||||
plat_pc_files :=
|
||||
plat_property_contexts.tmp :=
|
||||
built_pc := $(LOCAL_BUILT_MODULE)
|
||||
all_pc_files :=
|
||||
all_pcfiles_with_nl :=
|
||||
property_contexts.tmp :=
|
||||
|
||||
##################################
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := nonplat_property_contexts
|
||||
LOCAL_MODULE := general_property_contexts
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
# TODO: Change module path to TARGET_SYSTEM_OUT after b/27805372
|
||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
|
||||
nonplat_pcfiles := $(call build_policy, property_contexts, $(BOARD_SEPOLICY_DIRS) $(REQD_MASK_POLICY))
|
||||
|
||||
nonplat_property_contexts.tmp := $(intermediates)/nonplat_property_contexts.tmp
|
||||
$(nonplat_property_contexts.tmp): PRIVATE_PC_FILES := $(nonplat_pcfiles)
|
||||
$(nonplat_property_contexts.tmp): PRIVATE_ADDITIONAL_M4DEFS := $(LOCAL_ADDITIONAL_M4DEFS)
|
||||
$(nonplat_property_contexts.tmp): $(nonplat_pcfiles)
|
||||
general_property_contexts.tmp := $(intermediates)/general_property_contexts.tmp
|
||||
$(general_property_contexts.tmp): $(addprefix $(PLAT_PRIVATE_POLICY)/, property_contexts)
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) m4 -s $(PRIVATE_ADDITIONAL_M4DEFS) $(PRIVATE_PC_FILES) > $@
|
||||
$(hide) m4 -s $< > $@
|
||||
|
||||
|
||||
$(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_sepolicy)
|
||||
$(LOCAL_BUILT_MODULE): $(nonplat_property_contexts.tmp) $(built_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc
|
||||
$(LOCAL_BUILT_MODULE): PRIVATE_SEPOLICY := $(built_general_sepolicy)
|
||||
$(LOCAL_BUILT_MODULE): $(general_property_contexts.tmp) $(built_general_sepolicy) $(HOST_OUT_EXECUTABLES)/checkfc $(ACP)
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) sed -e 's/#.*$$//' -e '/^$$/d' $< > $@
|
||||
$(hide) $(HOST_OUT_EXECUTABLES)/checkfc -p $(PRIVATE_SEPOLICY) $@
|
||||
|
||||
built_nonplat_pc := $(LOCAL_BUILT_MODULE)
|
||||
nonplat_pc_files :=
|
||||
nonplat_property_contexts.tmp :=
|
||||
general_property_contexts.tmp :=
|
||||
|
||||
##################################
|
||||
include $(CLEAR_VARS)
|
||||
|
@ -950,7 +942,7 @@ LOCAL_MODULE_TAGS := optional
|
|||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
$(LOCAL_BUILT_MODULE): $(built_sepolicy) $(built_plat_pc) $(built_nonplat_pc) $(built_plat_fc) \
|
||||
$(LOCAL_BUILT_MODULE): $(built_sepolicy) $(built_pc) $(built_plat_fc) \
|
||||
$(buit_nonplat_fc) $(built_plat_sc) $(built_nonplat_sc) $(built_plat_svc) $(built_nonplat_svc)
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) echo -n $(BUILD_FINGERPRINT_FROM_FILE) > $@
|
||||
|
@ -965,8 +957,7 @@ built_nonplat_fc :=
|
|||
built_general_sepolicy :=
|
||||
built_general_sepolicy.conf :=
|
||||
built_nl :=
|
||||
built_plat_pc :=
|
||||
built_nonplat_pc :=
|
||||
built_pc :=
|
||||
built_nonplat_sc :=
|
||||
built_plat_sc :=
|
||||
built_sepolicy :=
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
/mapping_sepolicy\.cil u:object_r:rootfs:s0
|
||||
/nonplat_sepolicy\.cil u:object_r:rootfs:s0
|
||||
/plat_sepolicy\.cil u:object_r:rootfs:s0
|
||||
/plat_property_contexts u:object_r:property_contexts:s0
|
||||
/nonplat_property_contexts u:object_r:property_contexts:s0
|
||||
/property_contexts u:object_r:property_contexts:s0
|
||||
/seapp_contexts u:object_r:rootfs:s0
|
||||
/nonplat_seapp_contexts u:object_r:rootfs:s0
|
||||
/plat_seapp_contexts u:object_r:rootfs:s0
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# empty property_contexts file - this file is used to generate an empty
|
||||
# non-platform property context for devices without any property_contexts
|
||||
# customizations.
|
Loading…
Reference in a new issue