Soong module for selinux files including board-specific directories.
se_filegroup is used to export selinux files from board-specific
directories (e.g. device/google/wahoo/sepolicy).
Use se_filegroup module to export partner extension of compatibility
mapping to build logic in system/sepolicy.
Bug: 33691272
Bug: 74669108
Test: .cil mapping files can be correctly added from vendor directory.
Change-Id: Iaa2a95d0e326cb03a478fc12c1a14ba40e57e117
diff --git a/Android.bp b/Android.bp
index 8154f48..26102c9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,16 +12,30 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+se_filegroup {
+ name: "26.0.board.compat.map",
+ srcs: [
+ "compat/26.0/26.0.cil",
+ ],
+}
+
+se_filegroup {
+ name: "27.0.board.compat.map",
+ srcs: [
+ "compat/27.0/27.0.cil",
+ ],
+}
+
se_cil_compat_map {
name: "26.0.cil",
srcs: [
- "private/compat/26.0/26.0.cil",
+ ":26.0.board.compat.map",
],
}
se_cil_compat_map {
name: "27.0.cil",
srcs: [
- "private/compat/27.0/27.0.cil",
+ ":27.0.board.compat.map",
],
}