Merge "otautil: Only build the needed files for host build."
diff --git a/otautil/Android.bp b/otautil/Android.bp
index 45d119c..572d8df 100644
--- a/otautil/Android.bp
+++ b/otautil/Android.bp
@@ -17,17 +17,13 @@
 
     host_supported: true,
 
+    // Minimal set of files to support host build.
     srcs: [
-        "SysUtil.cpp",
-        "DirUtil.cpp",
-        "ThermalUtil.cpp",
-        "mounts.cpp",
         "paths.cpp",
         "rangeset.cpp",
     ],
 
     static_libs: [
-        "libselinux",
         "libbase",
     ],
 
@@ -42,10 +38,17 @@
     ],
 
     target: {
-        darwin: {
-            exclude_srcs: [
+        android: {
+            srcs: [
+                "DirUtil.cpp",
+                "SysUtil.cpp",
+                "ThermalUtil.cpp",
                 "mounts.cpp",
             ],
+
+            static_libs: [
+                "libselinux",
+            ],
         },
     },
 }