From 3dff9ab47004dfe3a29b044529fa00455bdb2b0d Mon Sep 17 00:00:00 2001 From: Yifan Hong <elsk@google.com> Date: Fri, 2 Feb 2018 12:48:54 -0800 Subject: [PATCH] Move PLATFORM_SEPOLICY_VERSION to make/core/config.mk Test: m framework_compatibility_matrix.xml -j Test: device boots Bug: 67920434 Bug: 69390067 Change-Id: I3461873c22f704b9bbaa3a4e6f7e1df34d6b61a3 --- Android.mk | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Android.mk b/Android.mk index c12cea78d..44ebca4b0 100644 --- a/Android.mk +++ b/Android.mk @@ -2,30 +2,6 @@ LOCAL_PATH:= $(call my-dir) include $(LOCAL_PATH)/definitions.mk -# PLATFORM_SEPOLICY_VERSION is a number of the form "NN.m" with "NN" mapping to -# PLATFORM_SDK_VERSION and "m" as a minor number which allows for SELinux -# changes independent of PLATFORM_SDK_VERSION. This value will be set to -# 10000.0 to represent tip-of-tree development that is inherently unstable and -# thus designed not to work with any shipping vendor policy. This is similar in -# spirit to how DEFAULT_APP_TARGET_SDK is set. -# The minor version ('m' component) must be updated every time a platform release -# is made which breaks compatibility with the previous platform sepolicy version, -# not just on every increase in PLATFORM_SDK_VERSION. The minor version should -# be reset to 0 on every bump of the PLATFORM_SDK_VERSION. -sepolicy_major_vers := 27 -sepolicy_minor_vers := 0 - -ifneq ($(sepolicy_major_vers), $(PLATFORM_SDK_VERSION)) -$(error sepolicy_major_version does not match PLATFORM_SDK_VERSION, please update.) -endif -ifneq (REL,$(PLATFORM_VERSION_CODENAME)) - sepolicy_major_vers := 10000 - sepolicy_minor_vers := 0 -endif -PLATFORM_SEPOLICY_VERSION := $(join $(addsuffix .,$(sepolicy_major_vers)), $(sepolicy_minor_vers)) -sepolicy_major_vers := -sepolicy_minor_vers := - include $(CLEAR_VARS) # SELinux policy version. # Must be <= /sys/fs/selinux/policyvers reported by the Android kernel. -- GitLab