Checkpolicy: Migrate to soong
Remove checkmodule target. It's not used anywhere.
Bug: 37512442
Test: build and boot Marlin.
Test: "dispol policy", then display unconditional avtab
Test: run "bpfmt -w Android.bp" verify no changes made.
Change-Id: Ifa29b600bd90cc16c612eb05e1e2ba9f6faed3e6
diff --git a/checkpolicy/Android.bp b/checkpolicy/Android.bp
new file mode 100644
index 0000000..1ca0e07
--- /dev/null
+++ b/checkpolicy/Android.bp
@@ -0,0 +1,26 @@
+common_CFLAGS = [
+ "-Wall",
+ "-Werror",
+ "-Wshadow",
+]
+
+cc_binary_host {
+ name: "checkpolicy",
+ cflags: common_CFLAGS,
+ srcs: [
+ "policy_parse.y",
+ "policy_scan.l",
+ "queue.c",
+ "module_compiler.c",
+ "parse_util.c",
+ "policy_define.c",
+ "checkpolicy.c",
+ ],
+ static_libs: ["libsepol"],
+}
+
+cc_binary_host {
+ name: "dispol",
+ srcs: ["test/dispol.c"],
+ static_libs: ["libsepol"],
+}