Browse Source

Disable building libapplypatch on mac

The sdk_mac on build server fails with the error:
bootable/recovery/applypatch/freecache.cpp:23:10: fatal error: 'sys/statfs.h' file not found

So we will disable libapplypatch on mac.

Test: the library still builds on linux; and check the other host targets in the same cl.
Change-Id: Ie4a30708726e51c810f7ad7f1085d38154076cca
Tianjie Xu 3 years ago
parent
commit
7a4dacf724
2 changed files with 12 additions and 0 deletions
  1. 6
    0
      applypatch/Android.bp
  2. 6
    0
      otafault/Android.bp

+ 6
- 0
applypatch/Android.bp View File

@@ -57,6 +57,12 @@ cc_library_static {
57 57
         "libotautil",
58 58
         "libz",
59 59
     ],
60
+
61
+    target: {
62
+        darwin: {
63
+            enabled: false,
64
+        },
65
+    },
60 66
 }
61 67
 
62 68
 cc_library_static {

+ 6
- 0
otafault/Android.bp View File

@@ -39,6 +39,12 @@ cc_library_static {
39 39
         "-Wthread-safety",
40 40
         "-Wthread-safety-negative",
41 41
     ],
42
+
43
+    target: {
44
+        darwin: {
45
+            enabled: false,
46
+        },
47
+    },
42 48
 }
43 49
 
44 50
 cc_test {