aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2018-02-17 23:58:54 -0600
committerTianjie Xu2018-02-18 00:06:31 -0600
commit7a4dacf7245c484f4b602f02ccd470f04535dc62 (patch)
tree3a7a4bca7db8f84e28a6418ccbf1f5995072084a
parent31bcd7c002c0b556790e7fa0db39297f1624e7e1 (diff)
downloadplatform-bootable-recovery-7a4dacf7245c484f4b602f02ccd470f04535dc62.tar.gz
platform-bootable-recovery-7a4dacf7245c484f4b602f02ccd470f04535dc62.tar.xz
platform-bootable-recovery-7a4dacf7245c484f4b602f02ccd470f04535dc62.zip
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
-rw-r--r--applypatch/Android.bp6
-rw-r--r--otafault/Android.bp6
2 files changed, 12 insertions, 0 deletions
diff --git a/applypatch/Android.bp b/applypatch/Android.bp
index d3efa152..cb0b3674 100644
--- a/applypatch/Android.bp
+++ b/applypatch/Android.bp
@@ -57,6 +57,12 @@ cc_library_static {
57 "libotautil", 57 "libotautil",
58 "libz", 58 "libz",
59 ], 59 ],
60
61 target: {
62 darwin: {
63 enabled: false,
64 },
65 },
60} 66}
61 67
62cc_library_static { 68cc_library_static {
diff --git a/otafault/Android.bp b/otafault/Android.bp
index 30d56101..b39d5bee 100644
--- a/otafault/Android.bp
+++ b/otafault/Android.bp
@@ -39,6 +39,12 @@ cc_library_static {
39 "-Wthread-safety", 39 "-Wthread-safety",
40 "-Wthread-safety-negative", 40 "-Wthread-safety-negative",
41 ], 41 ],
42
43 target: {
44 darwin: {
45 enabled: false,
46 },
47 },
42} 48}
43 49
44cc_test { 50cc_test {