From 9b2631d11a464306e27f2208cd0b3037f7f4cff2 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Thu, 24 Aug 2023 01:07:33 +0000 Subject: [PATCH] Skip building compat files if REL In release build, we don't need to (and shouldn't) build compat files, because it doesn't make sense to build compat files for itself. Currently this didn't happen because REL build only happens on -dev branches. To support main branch setting REL, filtering out PLATFORM_SEPOLICY_VERSION from compat versions list. Bug: 296780580 Test: build with next Change-Id: Ia5c09a1c9b4209ed82dc66307d57decb4f442477 --- core/config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/config.mk b/core/config.mk index 2a30dd92a3..06f9a8b029 100644 --- a/core/config.mk +++ b/core/config.mk @@ -945,13 +945,14 @@ endif .KATI_READONLY := IS_TARGET_MIXED_SEPOLICY # A list of SEPolicy versions, besides PLATFORM_SEPOLICY_VERSION, that the framework supports. -PLATFORM_SEPOLICY_COMPAT_VERSIONS := \ +PLATFORM_SEPOLICY_COMPAT_VERSIONS := $(filter-out $(PLATFORM_SEPOLICY_VERSION), \ 29.0 \ 30.0 \ 31.0 \ 32.0 \ 33.0 \ 34.0 \ + ) .KATI_READONLY := \ PLATFORM_SEPOLICY_COMPAT_VERSIONS \