| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1 | // Define the common source files for all the libc instances | 
|  | 2 | // ========================================================= | 
|  | 3 | libc_common_src_files = [ | 
| Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 4 | "async_safe/async_safe_log.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 5 | "bionic/ether_aton.c", | 
|  | 6 | "bionic/ether_ntoa.c", | 
|  | 7 | "bionic/fts.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 8 | "bionic/initgroups.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 9 | "bionic/isatty.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 10 | "bionic/pututline.c", | 
|  | 11 | "bionic/sched_cpualloc.c", | 
|  | 12 | "bionic/sched_cpucount.c", | 
|  | 13 | "bionic/sigblock.c", | 
|  | 14 | "bionic/siginterrupt.c", | 
|  | 15 | "bionic/sigsetmask.c", | 
| Elliott Hughes | 3a4c454 | 2017-07-19 17:20:24 -0700 | [diff] [blame] | 16 | "stdio/fmemopen.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 17 | "stdio/fread.c", | 
| Elliott Hughes | 7f0849f | 2016-08-26 16:17:17 -0700 | [diff] [blame] | 18 | "stdio/parsefloat.c", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 19 | "stdio/refill.c", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 20 | "stdio/stdio.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 21 | "stdio/stdio_ext.cpp", | 
| Elliott Hughes | 7f0849f | 2016-08-26 16:17:17 -0700 | [diff] [blame] | 22 | "stdio/vfscanf.c", | 
|  | 23 | "stdio/vfwscanf.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 24 | "stdlib/atexit.c", | 
|  | 25 | "stdlib/exit.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 26 | ] | 
|  | 27 |  | 
|  | 28 | // Various kinds of cruft. | 
|  | 29 | // ======================================================== | 
|  | 30 | libc_common_src_files += [ | 
|  | 31 | "bionic/ndk_cruft.cpp", | 
|  | 32 | ] | 
|  | 33 |  | 
|  | 34 | libc_common_src_files_32 = [ | 
|  | 35 | "bionic/legacy_32_bit_support.cpp", | 
|  | 36 | "bionic/time64.c", | 
|  | 37 | ] | 
|  | 38 |  | 
| Elliott Hughes | 53cf348 | 2016-08-09 13:06:41 -0700 | [diff] [blame] | 39 | libc_common_flags = [ | 
|  | 40 | "-D_LIBC=1", | 
|  | 41 | "-Wall", | 
|  | 42 | "-Wextra", | 
|  | 43 | "-Wunused", | 
|  | 44 | "-Wno-deprecated-declarations", | 
| Elliott Hughes | b348d5c | 2017-07-24 16:53:11 -0700 | [diff] [blame] | 45 | "-Wno-gcc-compat", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 46 | "-Wframe-larger-than=2048", | 
| Elliott Hughes | 53cf348 | 2016-08-09 13:06:41 -0700 | [diff] [blame] | 47 |  | 
|  | 48 | // Try to catch typical 32-bit assumptions that break with 64-bit pointers. | 
|  | 49 | "-Werror=pointer-to-int-cast", | 
|  | 50 | "-Werror=int-to-pointer-cast", | 
|  | 51 | "-Werror=type-limits", | 
|  | 52 | "-Werror", | 
|  | 53 | ] | 
|  | 54 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 55 | // Define some common cflags | 
|  | 56 | // ======================================================== | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 57 | cc_defaults { | 
|  | 58 | name: "libc_defaults", | 
| Dan Willemsen | 7ec52b1 | 2016-11-28 17:02:25 -0800 | [diff] [blame] | 59 | defaults: ["linux_bionic_supported"], | 
| Elliott Hughes | 53cf348 | 2016-08-09 13:06:41 -0700 | [diff] [blame] | 60 | cflags: libc_common_flags, | 
|  | 61 | asflags: libc_common_flags, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 62 | conlyflags: ["-std=gnu99"], | 
|  | 63 | cppflags: [], | 
| Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 64 | include_dirs: [ | 
|  | 65 | "bionic/libc/async_safe/include", | 
|  | 66 | "external/jemalloc/include", | 
|  | 67 | ], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 68 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 69 | stl: "none", | 
|  | 70 | system_shared_libs: [], | 
| Colin Cross | 27c43c5 | 2016-04-07 13:27:24 -0700 | [diff] [blame] | 71 | sanitize: { | 
|  | 72 | never: true, | 
|  | 73 | }, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 74 | native_coverage: false, | 
| Colin Cross | 5a22d3e | 2016-05-18 14:06:22 -0700 | [diff] [blame] | 75 | clang: true, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 76 | } | 
|  | 77 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 78 | // ANDROIDMK TRANSLATION ERROR: unsupported directive | 
|  | 79 | // ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true) | 
|  | 80 | //libc_common_cflags += ["-DDEBUG"] | 
|  | 81 | // ANDROIDMK TRANSLATION ERROR: unsupported directive | 
|  | 82 | // endif | 
|  | 83 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 84 | // ======================================================== | 
|  | 85 | // libc_stack_protector.a - stack protector code | 
|  | 86 | // ======================================================== | 
|  | 87 | // | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 88 | // Code that implements the stack protector (or that runs | 
|  | 89 | // before TLS has been set up) needs to be compiled with | 
|  | 90 | // -fno-stack-protector, since it accesses the stack canary | 
|  | 91 | // TLS slot. | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 92 |  | 
|  | 93 | cc_library_static { | 
|  | 94 |  | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 95 | srcs: [ | 
|  | 96 | "bionic/__libc_init_main_thread.cpp", | 
|  | 97 | "bionic/__stack_chk_fail.cpp", | 
|  | 98 | ], | 
|  | 99 | arch: { | 
|  | 100 | arm64: { | 
|  | 101 | srcs: ["arch-arm64/bionic/__set_tls.c"], | 
|  | 102 | }, | 
|  | 103 | x86: { | 
| Dan Willemsen | 879cec2 | 2016-02-29 10:37:56 -0800 | [diff] [blame] | 104 | srcs: ["arch-x86/bionic/__set_tls.cpp"], | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 105 | }, | 
|  | 106 | x86_64: { | 
|  | 107 | srcs: ["arch-x86_64/bionic/__set_tls.c"], | 
|  | 108 | }, | 
|  | 109 | }, | 
|  | 110 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 111 | defaults: ["libc_defaults"], | 
|  | 112 | cflags: ["-fno-stack-protector"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 113 | name: "libc_stack_protector", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 114 | } | 
|  | 115 |  | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 116 | // libc_init_static.cpp also needs to be built without stack protector, | 
|  | 117 | // because it's responsible for setting up TLS for static executables. | 
|  | 118 | // This isn't the case for dynamic executables because the dynamic linker | 
|  | 119 | // has already set up the main thread's TLS. | 
|  | 120 |  | 
|  | 121 | cc_library_static { | 
|  | 122 | name: "libc_init_static", | 
|  | 123 | defaults: ["libc_defaults"], | 
|  | 124 | srcs: ["bionic/libc_init_static.cpp"], | 
|  | 125 | cflags: ["-fno-stack-protector"], | 
|  | 126 | } | 
|  | 127 |  | 
| Stephen Crane | f4b1cbd | 2017-05-09 14:27:43 -0700 | [diff] [blame] | 128 | cc_library_static { | 
|  | 129 | name: "libc_init_dynamic", | 
|  | 130 | defaults: ["libc_defaults"], | 
|  | 131 | srcs: ["bionic/libc_init_dynamic.cpp"], | 
|  | 132 | cflags: ["-fno-stack-protector"], | 
|  | 133 | } | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 134 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 135 | // ======================================================== | 
|  | 136 | // libc_tzcode.a - upstream 'tzcode' code | 
|  | 137 | // ======================================================== | 
|  | 138 |  | 
|  | 139 | cc_library_static { | 
|  | 140 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 141 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 142 | srcs: [ | 
| Dan Willemsen | 9c9aa74 | 2016-01-15 16:00:57 -0800 | [diff] [blame] | 143 | "tzcode/**/*.c", | 
| Elliott Hughes | 0e8616a | 2017-04-11 14:44:51 -0700 | [diff] [blame] | 144 | "tzcode/bionic.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 145 | "upstream-openbsd/lib/libc/time/wcsftime.c", // tzcode doesn't include wcsftime, so we use the OpenBSD one. | 
|  | 146 | ], | 
|  | 147 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 148 | cflags: [ | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 149 | "-Wno-unused-parameter", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 150 | // Don't use ridiculous amounts of stack. | 
|  | 151 | "-DALL_STATE", | 
|  | 152 | // Include tzsetwall, timelocal, timegm, time2posix, and posix2time. | 
|  | 153 | "-DSTD_INSPIRED", | 
| Colin Cross | a35d23d | 2015-11-19 13:32:49 -0800 | [diff] [blame] | 154 | // Obviously, we want to be thread-safe. | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 155 | "-DTHREAD_SAFE", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 156 | // The name of the tm_gmtoff field in our struct tm. | 
|  | 157 | "-DTM_GMTOFF=tm_gmtoff", | 
|  | 158 | // Where we store our tzdata. | 
| Colin Cross | 7b29495 | 2016-09-29 14:08:13 -0700 | [diff] [blame] | 159 | "-DTZDIR=\"/system/usr/share/zoneinfo\"", | 
| Elliott Hughes | 0a610d0 | 2016-07-29 14:04:17 -0700 | [diff] [blame] | 160 | // Include `tzname`, `timezone`, and `daylight` globals. | 
|  | 161 | "-DHAVE_POSIX_DECLS=0", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 162 | "-DUSG_COMPAT=1", | 
| Colin Cross | a35d23d | 2015-11-19 13:32:49 -0800 | [diff] [blame] | 163 | // Use the empty string (instead of "   ") as the timezone abbreviation | 
|  | 164 | // fallback. | 
| Colin Cross | 7b29495 | 2016-09-29 14:08:13 -0700 | [diff] [blame] | 165 | "-DWILDABBR=\"\"", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 166 | "-DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU", | 
|  | 167 | "-Dlint", | 
|  | 168 | ], | 
|  | 169 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 170 | local_include_dirs: ["tzcode/"], | 
|  | 171 | name: "libc_tzcode", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 172 | } | 
|  | 173 |  | 
|  | 174 | // ======================================================== | 
|  | 175 | // libc_dns.a - modified NetBSD DNS code | 
|  | 176 | // ======================================================== | 
|  | 177 |  | 
|  | 178 | cc_library_static { | 
|  | 179 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 180 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 181 | srcs: [ | 
| Dan Willemsen | 9c9aa74 | 2016-01-15 16:00:57 -0800 | [diff] [blame] | 182 | "dns/**/*.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 183 |  | 
|  | 184 | "upstream-netbsd/lib/libc/isc/ev_streams.c", | 
|  | 185 | "upstream-netbsd/lib/libc/isc/ev_timers.c", | 
|  | 186 | "upstream-netbsd/lib/libc/resolv/mtctxres.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 187 | ], | 
|  | 188 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 189 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 190 | "-DANDROID_CHANGES", | 
|  | 191 | "-DINET6", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 192 | "-Wno-unused-parameter", | 
|  | 193 | "-include netbsd-compat.h", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 194 | "-Wframe-larger-than=66000", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 195 | ], | 
|  | 196 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 197 | local_include_dirs: [ | 
|  | 198 | "dns/include", | 
|  | 199 | "private", | 
|  | 200 | "upstream-netbsd/lib/libc/include", | 
|  | 201 | "upstream-netbsd/android/include", | 
|  | 202 | ], | 
|  | 203 |  | 
|  | 204 | name: "libc_dns", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 205 | } | 
|  | 206 |  | 
|  | 207 | // ======================================================== | 
|  | 208 | // libc_freebsd.a - upstream FreeBSD C library code | 
|  | 209 | // ======================================================== | 
|  | 210 | // | 
|  | 211 | // These files are built with the freebsd-compat.h header file | 
|  | 212 | // automatically included. | 
|  | 213 |  | 
|  | 214 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 215 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 216 | srcs: [ | 
|  | 217 | "upstream-freebsd/lib/libc/gen/ldexp.c", | 
|  | 218 | "upstream-freebsd/lib/libc/gen/sleep.c", | 
|  | 219 | "upstream-freebsd/lib/libc/gen/usleep.c", | 
|  | 220 | "upstream-freebsd/lib/libc/stdlib/getopt_long.c", | 
|  | 221 | "upstream-freebsd/lib/libc/stdlib/qsort.c", | 
|  | 222 | "upstream-freebsd/lib/libc/stdlib/quick_exit.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 223 | "upstream-freebsd/lib/libc/string/wcpcpy.c", | 
|  | 224 | "upstream-freebsd/lib/libc/string/wcpncpy.c", | 
|  | 225 | "upstream-freebsd/lib/libc/string/wcscasecmp.c", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 226 | "upstream-freebsd/lib/libc/string/wcscat.c", | 
|  | 227 | "upstream-freebsd/lib/libc/string/wcschr.c", | 
|  | 228 | "upstream-freebsd/lib/libc/string/wcscmp.c", | 
|  | 229 | "upstream-freebsd/lib/libc/string/wcscpy.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 230 | "upstream-freebsd/lib/libc/string/wcscspn.c", | 
|  | 231 | "upstream-freebsd/lib/libc/string/wcsdup.c", | 
|  | 232 | "upstream-freebsd/lib/libc/string/wcslcat.c", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 233 | "upstream-freebsd/lib/libc/string/wcslen.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 234 | "upstream-freebsd/lib/libc/string/wcsncasecmp.c", | 
|  | 235 | "upstream-freebsd/lib/libc/string/wcsncat.c", | 
|  | 236 | "upstream-freebsd/lib/libc/string/wcsncmp.c", | 
|  | 237 | "upstream-freebsd/lib/libc/string/wcsncpy.c", | 
|  | 238 | "upstream-freebsd/lib/libc/string/wcsnlen.c", | 
|  | 239 | "upstream-freebsd/lib/libc/string/wcspbrk.c", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 240 | "upstream-freebsd/lib/libc/string/wcsrchr.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 241 | "upstream-freebsd/lib/libc/string/wcsspn.c", | 
| Elliott Hughes | 20f3399 | 2017-07-13 09:45:00 -0700 | [diff] [blame] | 242 | "upstream-freebsd/lib/libc/string/wcsstr.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 243 | "upstream-freebsd/lib/libc/string/wcstok.c", | 
|  | 244 | "upstream-freebsd/lib/libc/string/wmemchr.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 245 | "upstream-freebsd/lib/libc/string/wmemcmp.c", | 
| Elliott Hughes | 20f3399 | 2017-07-13 09:45:00 -0700 | [diff] [blame] | 246 | "upstream-freebsd/lib/libc/string/wmemcpy.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 247 | "upstream-freebsd/lib/libc/string/wmemmove.c", | 
| Dan Willemsen | 9c9aa74 | 2016-01-15 16:00:57 -0800 | [diff] [blame] | 248 | "upstream-freebsd/lib/libc/string/wmemset.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 249 | ], | 
|  | 250 | arch: { | 
|  | 251 | arm64: { | 
|  | 252 | exclude_srcs: [ | 
|  | 253 | "upstream-freebsd/lib/libc/string/wmemmove.c", | 
|  | 254 | ], | 
|  | 255 | }, | 
|  | 256 | x86: { | 
|  | 257 | exclude_srcs: [ | 
|  | 258 | "upstream-freebsd/lib/libc/string/wcschr.c", | 
|  | 259 | "upstream-freebsd/lib/libc/string/wcscmp.c", | 
|  | 260 | "upstream-freebsd/lib/libc/string/wcslen.c", | 
|  | 261 | "upstream-freebsd/lib/libc/string/wcsrchr.c", | 
|  | 262 | ], | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 263 | atom: { | 
|  | 264 | exclude_srcs: [ | 
|  | 265 | "upstream-freebsd/lib/libc/string/wmemcmp.c", | 
|  | 266 | ], | 
|  | 267 | }, | 
|  | 268 | ssse3: { | 
|  | 269 | exclude_srcs: [ | 
|  | 270 | "upstream-freebsd/lib/libc/string/wcscat.c", | 
|  | 271 | "upstream-freebsd/lib/libc/string/wcscpy.c", | 
|  | 272 | ], | 
|  | 273 | }, | 
|  | 274 | sse4: { | 
|  | 275 | exclude_srcs: [ | 
|  | 276 | "upstream-freebsd/lib/libc/string/wmemcmp.c", | 
|  | 277 | ], | 
|  | 278 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 279 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 280 | }, | 
|  | 281 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 282 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 283 | "-Wno-sign-compare", | 
|  | 284 | "-Wno-uninitialized", | 
|  | 285 | "-include freebsd-compat.h", | 
|  | 286 | ], | 
|  | 287 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 288 | local_include_dirs: [ | 
|  | 289 | "upstream-freebsd/android/include", | 
|  | 290 | ], | 
|  | 291 |  | 
|  | 292 | name: "libc_freebsd", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 293 | } | 
|  | 294 |  | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 295 | cc_library_static { | 
|  | 296 | defaults: ["libc_defaults"], | 
|  | 297 | srcs: [ | 
|  | 298 | "upstream-freebsd/lib/libc/stdlib/realpath.c", | 
|  | 299 | ], | 
|  | 300 |  | 
|  | 301 | cflags: [ | 
|  | 302 | "-Wno-sign-compare", | 
|  | 303 | "-include freebsd-compat.h", | 
|  | 304 | "-Wframe-larger-than=15000", | 
|  | 305 | ], | 
|  | 306 |  | 
|  | 307 | local_include_dirs: [ | 
|  | 308 | "upstream-freebsd/android/include", | 
|  | 309 | ], | 
|  | 310 |  | 
|  | 311 | name: "libc_freebsd_large_stack", | 
|  | 312 | } | 
|  | 313 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 314 | // ======================================================== | 
|  | 315 | // libc_netbsd.a - upstream NetBSD C library code | 
|  | 316 | // ======================================================== | 
|  | 317 | // | 
|  | 318 | // These files are built with the netbsd-compat.h header file | 
|  | 319 | // automatically included. | 
|  | 320 |  | 
|  | 321 | cc_library_static { | 
|  | 322 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 323 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 324 | srcs: [ | 
|  | 325 | "upstream-netbsd/common/lib/libc/stdlib/random.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 326 | "upstream-netbsd/lib/libc/gen/nice.c", | 
|  | 327 | "upstream-netbsd/lib/libc/gen/popen.c", | 
|  | 328 | "upstream-netbsd/lib/libc/gen/psignal.c", | 
|  | 329 | "upstream-netbsd/lib/libc/gen/utime.c", | 
|  | 330 | "upstream-netbsd/lib/libc/gen/utmp.c", | 
|  | 331 | "upstream-netbsd/lib/libc/inet/nsap_addr.c", | 
|  | 332 | "upstream-netbsd/lib/libc/regex/regcomp.c", | 
|  | 333 | "upstream-netbsd/lib/libc/regex/regerror.c", | 
|  | 334 | "upstream-netbsd/lib/libc/regex/regexec.c", | 
|  | 335 | "upstream-netbsd/lib/libc/regex/regfree.c", | 
|  | 336 | "upstream-netbsd/lib/libc/stdlib/bsearch.c", | 
|  | 337 | "upstream-netbsd/lib/libc/stdlib/div.c", | 
|  | 338 | "upstream-netbsd/lib/libc/stdlib/drand48.c", | 
|  | 339 | "upstream-netbsd/lib/libc/stdlib/erand48.c", | 
|  | 340 | "upstream-netbsd/lib/libc/stdlib/jrand48.c", | 
|  | 341 | "upstream-netbsd/lib/libc/stdlib/lcong48.c", | 
|  | 342 | "upstream-netbsd/lib/libc/stdlib/ldiv.c", | 
|  | 343 | "upstream-netbsd/lib/libc/stdlib/lldiv.c", | 
|  | 344 | "upstream-netbsd/lib/libc/stdlib/lrand48.c", | 
|  | 345 | "upstream-netbsd/lib/libc/stdlib/mrand48.c", | 
|  | 346 | "upstream-netbsd/lib/libc/stdlib/nrand48.c", | 
|  | 347 | "upstream-netbsd/lib/libc/stdlib/_rand48.c", | 
|  | 348 | "upstream-netbsd/lib/libc/stdlib/rand_r.c", | 
|  | 349 | "upstream-netbsd/lib/libc/stdlib/reallocarr.c", | 
|  | 350 | "upstream-netbsd/lib/libc/stdlib/seed48.c", | 
|  | 351 | "upstream-netbsd/lib/libc/stdlib/srand48.c", | 
|  | 352 | "upstream-netbsd/lib/libc/string/memccpy.c", | 
|  | 353 | "upstream-netbsd/lib/libc/string/strcasestr.c", | 
|  | 354 | "upstream-netbsd/lib/libc/string/strcoll.c", | 
|  | 355 | "upstream-netbsd/lib/libc/string/strxfrm.c", | 
|  | 356 | ], | 
|  | 357 | multilib: { | 
|  | 358 | lib32: { | 
|  | 359 | // LP32 cruft | 
|  | 360 | srcs: ["upstream-netbsd/common/lib/libc/hash/sha1/sha1.c"], | 
|  | 361 | }, | 
|  | 362 | }, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 363 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 364 | "-Wno-sign-compare", | 
|  | 365 | "-Wno-uninitialized", | 
| Dan Willemsen | 879cec2 | 2016-02-29 10:37:56 -0800 | [diff] [blame] | 366 | "-Wno-unused-parameter", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 367 | "-DPOSIX_MISTAKE", | 
|  | 368 | "-include netbsd-compat.h", | 
|  | 369 | ], | 
|  | 370 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 371 | local_include_dirs: [ | 
|  | 372 | "upstream-netbsd/android/include", | 
|  | 373 | "upstream-netbsd/lib/libc/include", | 
|  | 374 | ], | 
|  | 375 |  | 
|  | 376 | name: "libc_netbsd", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 377 | } | 
|  | 378 |  | 
|  | 379 | // ======================================================== | 
|  | 380 | // libc_openbsd_ndk.a - upstream OpenBSD C library code | 
|  | 381 | // that can be safely included in the libc_ndk.a (doesn't | 
|  | 382 | // contain any troublesome global data or constructors). | 
|  | 383 | // ======================================================== | 
|  | 384 | // | 
|  | 385 | // These files are built with the openbsd-compat.h header file | 
|  | 386 | // automatically included. | 
|  | 387 |  | 
|  | 388 | cc_library_static { | 
|  | 389 | name: "libc_openbsd_ndk", | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 390 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 391 | srcs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 392 | "upstream-openbsd/lib/libc/gen/alarm.c", | 
|  | 393 | "upstream-openbsd/lib/libc/gen/ctype_.c", | 
|  | 394 | "upstream-openbsd/lib/libc/gen/daemon.c", | 
|  | 395 | "upstream-openbsd/lib/libc/gen/err.c", | 
|  | 396 | "upstream-openbsd/lib/libc/gen/errx.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 397 | "upstream-openbsd/lib/libc/gen/fnmatch.c", | 
|  | 398 | "upstream-openbsd/lib/libc/gen/ftok.c", | 
|  | 399 | "upstream-openbsd/lib/libc/gen/getprogname.c", | 
|  | 400 | "upstream-openbsd/lib/libc/gen/isctype.c", | 
|  | 401 | "upstream-openbsd/lib/libc/gen/setprogname.c", | 
|  | 402 | "upstream-openbsd/lib/libc/gen/time.c", | 
|  | 403 | "upstream-openbsd/lib/libc/gen/tolower_.c", | 
|  | 404 | "upstream-openbsd/lib/libc/gen/toupper_.c", | 
|  | 405 | "upstream-openbsd/lib/libc/gen/verr.c", | 
|  | 406 | "upstream-openbsd/lib/libc/gen/verrx.c", | 
|  | 407 | "upstream-openbsd/lib/libc/gen/vwarn.c", | 
|  | 408 | "upstream-openbsd/lib/libc/gen/vwarnx.c", | 
|  | 409 | "upstream-openbsd/lib/libc/gen/warn.c", | 
|  | 410 | "upstream-openbsd/lib/libc/gen/warnx.c", | 
|  | 411 | "upstream-openbsd/lib/libc/locale/btowc.c", | 
|  | 412 | "upstream-openbsd/lib/libc/locale/mbrlen.c", | 
|  | 413 | "upstream-openbsd/lib/libc/locale/mbstowcs.c", | 
|  | 414 | "upstream-openbsd/lib/libc/locale/mbtowc.c", | 
|  | 415 | "upstream-openbsd/lib/libc/locale/wcscoll.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 416 | "upstream-openbsd/lib/libc/locale/wcstoimax.c", | 
|  | 417 | "upstream-openbsd/lib/libc/locale/wcstol.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 418 | "upstream-openbsd/lib/libc/locale/wcstoll.c", | 
|  | 419 | "upstream-openbsd/lib/libc/locale/wcstombs.c", | 
|  | 420 | "upstream-openbsd/lib/libc/locale/wcstoul.c", | 
|  | 421 | "upstream-openbsd/lib/libc/locale/wcstoull.c", | 
|  | 422 | "upstream-openbsd/lib/libc/locale/wcstoumax.c", | 
|  | 423 | "upstream-openbsd/lib/libc/locale/wcsxfrm.c", | 
|  | 424 | "upstream-openbsd/lib/libc/locale/wctob.c", | 
|  | 425 | "upstream-openbsd/lib/libc/locale/wctomb.c", | 
| Elliott Hughes | 26fda77 | 2016-04-06 11:56:41 -0700 | [diff] [blame] | 426 | "upstream-openbsd/lib/libc/net/base64.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 427 | "upstream-openbsd/lib/libc/net/htonl.c", | 
|  | 428 | "upstream-openbsd/lib/libc/net/htons.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 429 | "upstream-openbsd/lib/libc/net/inet_lnaof.c", | 
|  | 430 | "upstream-openbsd/lib/libc/net/inet_makeaddr.c", | 
|  | 431 | "upstream-openbsd/lib/libc/net/inet_netof.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 432 | "upstream-openbsd/lib/libc/net/inet_ntoa.c", | 
|  | 433 | "upstream-openbsd/lib/libc/net/inet_ntop.c", | 
|  | 434 | "upstream-openbsd/lib/libc/net/inet_pton.c", | 
|  | 435 | "upstream-openbsd/lib/libc/net/ntohl.c", | 
|  | 436 | "upstream-openbsd/lib/libc/net/ntohs.c", | 
| Colin Cross | 8ce38af | 2016-01-19 12:50:20 -0800 | [diff] [blame] | 437 | "upstream-openbsd/lib/libc/net/res_random.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 438 | "upstream-openbsd/lib/libc/stdio/fflush.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 439 | "upstream-openbsd/lib/libc/stdio/fgetln.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 440 | "upstream-openbsd/lib/libc/stdio/fgets.c", | 
|  | 441 | "upstream-openbsd/lib/libc/stdio/fgetwc.c", | 
|  | 442 | "upstream-openbsd/lib/libc/stdio/fgetws.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 443 | "upstream-openbsd/lib/libc/stdio/flags.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 444 | "upstream-openbsd/lib/libc/stdio/fpurge.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 445 | "upstream-openbsd/lib/libc/stdio/fputs.c", | 
|  | 446 | "upstream-openbsd/lib/libc/stdio/fputwc.c", | 
|  | 447 | "upstream-openbsd/lib/libc/stdio/fputws.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 448 | "upstream-openbsd/lib/libc/stdio/fvwrite.c", | 
|  | 449 | "upstream-openbsd/lib/libc/stdio/fwalk.c", | 
|  | 450 | "upstream-openbsd/lib/libc/stdio/fwide.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 451 | "upstream-openbsd/lib/libc/stdio/fwrite.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 452 | "upstream-openbsd/lib/libc/stdio/getdelim.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 453 | "upstream-openbsd/lib/libc/stdio/gets.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 454 | "upstream-openbsd/lib/libc/stdio/makebuf.c", | 
|  | 455 | "upstream-openbsd/lib/libc/stdio/mktemp.c", | 
|  | 456 | "upstream-openbsd/lib/libc/stdio/open_memstream.c", | 
|  | 457 | "upstream-openbsd/lib/libc/stdio/open_wmemstream.c", | 
|  | 458 | "upstream-openbsd/lib/libc/stdio/perror.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 459 | "upstream-openbsd/lib/libc/stdio/puts.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 460 | "upstream-openbsd/lib/libc/stdio/rget.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 461 | "upstream-openbsd/lib/libc/stdio/setvbuf.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 462 | "upstream-openbsd/lib/libc/stdio/tempnam.c", | 
|  | 463 | "upstream-openbsd/lib/libc/stdio/tmpnam.c", | 
|  | 464 | "upstream-openbsd/lib/libc/stdio/ungetc.c", | 
|  | 465 | "upstream-openbsd/lib/libc/stdio/ungetwc.c", | 
|  | 466 | "upstream-openbsd/lib/libc/stdio/vasprintf.c", | 
|  | 467 | "upstream-openbsd/lib/libc/stdio/vdprintf.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 468 | "upstream-openbsd/lib/libc/stdio/vsscanf.c", | 
|  | 469 | "upstream-openbsd/lib/libc/stdio/vswprintf.c", | 
|  | 470 | "upstream-openbsd/lib/libc/stdio/vswscanf.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 471 | "upstream-openbsd/lib/libc/stdio/wbuf.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 472 | "upstream-openbsd/lib/libc/stdio/wsetup.c", | 
|  | 473 | "upstream-openbsd/lib/libc/stdlib/abs.c", | 
|  | 474 | "upstream-openbsd/lib/libc/stdlib/atoi.c", | 
|  | 475 | "upstream-openbsd/lib/libc/stdlib/atol.c", | 
|  | 476 | "upstream-openbsd/lib/libc/stdlib/atoll.c", | 
|  | 477 | "upstream-openbsd/lib/libc/stdlib/getenv.c", | 
| Colin Cross | b839610 | 2016-04-07 13:24:50 -0700 | [diff] [blame] | 478 | "upstream-openbsd/lib/libc/stdlib/getsubopt.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 479 | "upstream-openbsd/lib/libc/stdlib/insque.c", | 
|  | 480 | "upstream-openbsd/lib/libc/stdlib/imaxabs.c", | 
|  | 481 | "upstream-openbsd/lib/libc/stdlib/imaxdiv.c", | 
|  | 482 | "upstream-openbsd/lib/libc/stdlib/labs.c", | 
|  | 483 | "upstream-openbsd/lib/libc/stdlib/llabs.c", | 
|  | 484 | "upstream-openbsd/lib/libc/stdlib/lsearch.c", | 
|  | 485 | "upstream-openbsd/lib/libc/stdlib/reallocarray.c", | 
|  | 486 | "upstream-openbsd/lib/libc/stdlib/remque.c", | 
|  | 487 | "upstream-openbsd/lib/libc/stdlib/setenv.c", | 
|  | 488 | "upstream-openbsd/lib/libc/stdlib/strtoimax.c", | 
|  | 489 | "upstream-openbsd/lib/libc/stdlib/strtol.c", | 
|  | 490 | "upstream-openbsd/lib/libc/stdlib/strtoll.c", | 
|  | 491 | "upstream-openbsd/lib/libc/stdlib/strtoul.c", | 
|  | 492 | "upstream-openbsd/lib/libc/stdlib/strtoull.c", | 
|  | 493 | "upstream-openbsd/lib/libc/stdlib/strtoumax.c", | 
|  | 494 | "upstream-openbsd/lib/libc/stdlib/system.c", | 
|  | 495 | "upstream-openbsd/lib/libc/stdlib/tfind.c", | 
|  | 496 | "upstream-openbsd/lib/libc/stdlib/tsearch.c", | 
|  | 497 | "upstream-openbsd/lib/libc/string/strcasecmp.c", | 
|  | 498 | "upstream-openbsd/lib/libc/string/strcspn.c", | 
|  | 499 | "upstream-openbsd/lib/libc/string/strdup.c", | 
|  | 500 | "upstream-openbsd/lib/libc/string/strndup.c", | 
|  | 501 | "upstream-openbsd/lib/libc/string/strpbrk.c", | 
|  | 502 | "upstream-openbsd/lib/libc/string/strsep.c", | 
|  | 503 | "upstream-openbsd/lib/libc/string/strspn.c", | 
|  | 504 | "upstream-openbsd/lib/libc/string/strstr.c", | 
|  | 505 | "upstream-openbsd/lib/libc/string/strtok.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 506 | "upstream-openbsd/lib/libc/string/wcslcpy.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 507 | "upstream-openbsd/lib/libc/string/wcswidth.c", | 
|  | 508 | ], | 
|  | 509 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 510 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 511 | "-Wno-sign-compare", | 
|  | 512 | "-Wno-uninitialized", | 
|  | 513 | "-Wno-unused-parameter", | 
|  | 514 | "-include openbsd-compat.h", | 
|  | 515 | ], | 
|  | 516 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 517 | local_include_dirs: [ | 
|  | 518 | "private", | 
|  | 519 | "stdio", | 
|  | 520 | "upstream-openbsd/android/include", | 
|  | 521 | "upstream-openbsd/lib/libc/include", | 
|  | 522 | "upstream-openbsd/lib/libc/gdtoa/", | 
|  | 523 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 524 | } | 
|  | 525 |  | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 526 | cc_library_static { | 
|  | 527 | name: "libc_openbsd_large_stack", | 
|  | 528 | defaults: ["libc_defaults"], | 
|  | 529 | srcs: [ | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 530 | "upstream-openbsd/lib/libc/stdio/vfprintf.c", | 
|  | 531 | "upstream-openbsd/lib/libc/stdio/vfwprintf.c", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 532 | ], | 
|  | 533 | cflags: [ | 
|  | 534 | "-include openbsd-compat.h", | 
|  | 535 | "-Wno-sign-compare", | 
|  | 536 | "-Wframe-larger-than=5000", | 
|  | 537 | ], | 
|  | 538 |  | 
|  | 539 | local_include_dirs: [ | 
|  | 540 | "stdio", | 
|  | 541 | "upstream-openbsd/android/include", | 
|  | 542 | "upstream-openbsd/lib/libc/include", | 
|  | 543 | "upstream-openbsd/lib/libc/gdtoa/", | 
|  | 544 | ], | 
|  | 545 | } | 
|  | 546 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 547 | // ======================================================== | 
|  | 548 | // libc_openbsd.a - upstream OpenBSD C library code | 
|  | 549 | // ======================================================== | 
|  | 550 | // | 
|  | 551 | // These files are built with the openbsd-compat.h header file | 
|  | 552 | // automatically included. | 
|  | 553 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 554 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 555 | srcs: [ | 
| Dan Willemsen | 35e91a1 | 2015-09-17 15:28:45 -0700 | [diff] [blame] | 556 | // These two depend on getentropy_linux.c, which isn't in libc_ndk.a. | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 557 | "upstream-openbsd/lib/libc/crypt/arc4random.c", | 
|  | 558 | "upstream-openbsd/lib/libc/crypt/arc4random_uniform.c", | 
|  | 559 |  | 
|  | 560 | // May be overriden by per-arch optimized versions | 
|  | 561 | "upstream-openbsd/lib/libc/string/memchr.c", | 
|  | 562 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 563 | "upstream-openbsd/lib/libc/string/memrchr.c", | 
|  | 564 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 565 | "upstream-openbsd/lib/libc/string/stpncpy.c", | 
|  | 566 | "upstream-openbsd/lib/libc/string/strcat.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 567 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 568 | "upstream-openbsd/lib/libc/string/strlcat.c", | 
|  | 569 | "upstream-openbsd/lib/libc/string/strlcpy.c", | 
|  | 570 | "upstream-openbsd/lib/libc/string/strncat.c", | 
|  | 571 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 572 | "upstream-openbsd/lib/libc/string/strncpy.c", | 
|  | 573 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 574 |  | 
|  | 575 | arch: { | 
|  | 576 | arm: { | 
|  | 577 | exclude_srcs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 578 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 579 | ], | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 580 | cortex_a7: { | 
|  | 581 | exclude_srcs: [ | 
|  | 582 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 583 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 584 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 585 | ], | 
|  | 586 | }, | 
|  | 587 | cortex_a53: { | 
|  | 588 | exclude_srcs: [ | 
|  | 589 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 590 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 591 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 592 | ], | 
|  | 593 | }, | 
|  | 594 | cortex_a53_a57: { | 
|  | 595 | exclude_srcs: [ | 
|  | 596 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 597 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 598 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 599 | ], | 
|  | 600 | }, | 
|  | 601 | cortex_a8: { | 
|  | 602 | exclude_srcs: [ | 
|  | 603 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 604 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 605 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 606 | ], | 
|  | 607 | }, | 
|  | 608 | cortex_a9: { | 
|  | 609 | exclude_srcs: [ | 
|  | 610 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 611 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 612 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 613 | ], | 
|  | 614 | }, | 
|  | 615 | cortex_a15: { | 
|  | 616 | exclude_srcs: [ | 
|  | 617 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 618 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 619 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 620 | ], | 
|  | 621 | }, | 
| Christopher Ferris | 94bd274 | 2017-05-08 12:09:03 -0700 | [diff] [blame] | 622 | cortex_a73: { | 
|  | 623 | exclude_srcs: [ | 
|  | 624 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 625 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 626 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 627 | ], | 
|  | 628 | }, | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 629 | denver: { | 
|  | 630 | exclude_srcs: [ | 
|  | 631 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 632 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 633 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 634 | ], | 
|  | 635 | }, | 
|  | 636 | krait: { | 
|  | 637 | exclude_srcs: [ | 
|  | 638 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 639 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 640 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 641 | ], | 
|  | 642 | }, | 
| Christopher Ferris | 950a958 | 2017-03-29 13:10:56 -0700 | [diff] [blame] | 643 | kryo: { | 
|  | 644 | exclude_srcs: [ | 
|  | 645 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 646 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 647 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 648 | ], | 
|  | 649 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 650 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 651 | arm64: { | 
|  | 652 | exclude_srcs: [ | 
|  | 653 | "upstream-openbsd/lib/libc/string/memchr.c", | 
|  | 654 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 655 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 656 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 657 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 658 | ], | 
|  | 659 | }, | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 660 | mips: { | 
|  | 661 | exclude_srcs: [ | 
|  | 662 | "upstream-openbsd/lib/libc/string/memchr.c", | 
|  | 663 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 664 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 665 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 666 | ], | 
|  | 667 | }, | 
|  | 668 | mips64: { | 
|  | 669 | exclude_srcs: [ | 
|  | 670 | "upstream-openbsd/lib/libc/string/memchr.c", | 
|  | 671 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 672 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 673 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 674 | ], | 
|  | 675 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 676 | x86: { | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 677 | exclude_srcs: [ | 
|  | 678 | "upstream-openbsd/lib/libc/string/memchr.c", | 
|  | 679 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 680 | "upstream-openbsd/lib/libc/string/memrchr.c", | 
|  | 681 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 682 | "upstream-openbsd/lib/libc/string/stpncpy.c", | 
|  | 683 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 684 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 685 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 686 | "upstream-openbsd/lib/libc/string/strncpy.c", | 
|  | 687 | ], | 
|  | 688 | ssse3: { | 
|  | 689 | exclude_srcs: [ | 
|  | 690 | "upstream-openbsd/lib/libc/string/strlcat.c", | 
|  | 691 | "upstream-openbsd/lib/libc/string/strlcpy.c", | 
|  | 692 | "upstream-openbsd/lib/libc/string/strncat.c", | 
|  | 693 | ], | 
|  | 694 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 695 | }, | 
|  | 696 |  | 
|  | 697 | x86_64: { | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 698 | exclude_srcs: [ | 
|  | 699 | "upstream-openbsd/lib/libc/string/memmove.c", | 
|  | 700 | "upstream-openbsd/lib/libc/string/stpcpy.c", | 
|  | 701 | "upstream-openbsd/lib/libc/string/stpncpy.c", | 
|  | 702 | "upstream-openbsd/lib/libc/string/strcat.c", | 
|  | 703 | "upstream-openbsd/lib/libc/string/strcpy.c", | 
|  | 704 | "upstream-openbsd/lib/libc/string/strlcat.c", | 
|  | 705 | "upstream-openbsd/lib/libc/string/strlcpy.c", | 
|  | 706 | "upstream-openbsd/lib/libc/string/strncat.c", | 
|  | 707 | "upstream-openbsd/lib/libc/string/strncmp.c", | 
|  | 708 | "upstream-openbsd/lib/libc/string/strncpy.c", | 
|  | 709 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 710 | }, | 
|  | 711 | }, | 
|  | 712 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 713 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 714 | "-Wno-sign-compare", | 
|  | 715 | "-Wno-uninitialized", | 
|  | 716 | "-Wno-unused-parameter", | 
|  | 717 | "-include openbsd-compat.h", | 
|  | 718 | ], | 
|  | 719 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 720 | local_include_dirs: [ | 
|  | 721 | "private", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 722 | "upstream-openbsd/android/include", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 723 | ], | 
|  | 724 |  | 
|  | 725 | name: "libc_openbsd", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 726 | } | 
|  | 727 |  | 
|  | 728 | // ======================================================== | 
|  | 729 | // libc_gdtoa.a - upstream OpenBSD C library gdtoa code | 
|  | 730 | // ======================================================== | 
|  | 731 | // | 
|  | 732 | // These files are built with the openbsd-compat.h header file | 
|  | 733 | // automatically included. | 
|  | 734 |  | 
|  | 735 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 736 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 737 | srcs: [ | 
|  | 738 | "upstream-openbsd/android/gdtoa_support.cpp", | 
|  | 739 | "upstream-openbsd/lib/libc/gdtoa/dmisc.c", | 
|  | 740 | "upstream-openbsd/lib/libc/gdtoa/dtoa.c", | 
|  | 741 | "upstream-openbsd/lib/libc/gdtoa/gdtoa.c", | 
|  | 742 | "upstream-openbsd/lib/libc/gdtoa/gethex.c", | 
|  | 743 | "upstream-openbsd/lib/libc/gdtoa/gmisc.c", | 
|  | 744 | "upstream-openbsd/lib/libc/gdtoa/hd_init.c", | 
|  | 745 | "upstream-openbsd/lib/libc/gdtoa/hdtoa.c", | 
|  | 746 | "upstream-openbsd/lib/libc/gdtoa/hexnan.c", | 
|  | 747 | "upstream-openbsd/lib/libc/gdtoa/ldtoa.c", | 
|  | 748 | "upstream-openbsd/lib/libc/gdtoa/misc.c", | 
|  | 749 | "upstream-openbsd/lib/libc/gdtoa/smisc.c", | 
|  | 750 | "upstream-openbsd/lib/libc/gdtoa/strtod.c", | 
|  | 751 | "upstream-openbsd/lib/libc/gdtoa/strtodg.c", | 
|  | 752 | "upstream-openbsd/lib/libc/gdtoa/strtof.c", | 
|  | 753 | "upstream-openbsd/lib/libc/gdtoa/strtord.c", | 
|  | 754 | "upstream-openbsd/lib/libc/gdtoa/sum.c", | 
|  | 755 | "upstream-openbsd/lib/libc/gdtoa/ulp.c", | 
|  | 756 | ], | 
|  | 757 | multilib: { | 
|  | 758 | lib64: { | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 759 | srcs: ["upstream-openbsd/lib/libc/gdtoa/strtorQ.c"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 760 | }, | 
|  | 761 | }, | 
|  | 762 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 763 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 764 | "-Wno-sign-compare", | 
|  | 765 | "-Wno-uninitialized", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 766 | "-include openbsd-compat.h", | 
|  | 767 | ], | 
|  | 768 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 769 | local_include_dirs: [ | 
|  | 770 | "private", | 
|  | 771 | "upstream-openbsd/android/include", | 
|  | 772 | "upstream-openbsd/lib/libc/include", | 
|  | 773 | ], | 
|  | 774 |  | 
|  | 775 | name: "libc_gdtoa", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 776 | } | 
|  | 777 |  | 
|  | 778 | // ======================================================== | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 779 | // libc_fortify.a - container for our FORITFY | 
|  | 780 | // implementation details | 
|  | 781 | // ======================================================== | 
|  | 782 | cc_library_static { | 
|  | 783 | defaults: ["libc_defaults"], | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 784 | srcs: ["bionic/fortify.cpp"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 785 |  | 
|  | 786 | name: "libc_fortify", | 
|  | 787 |  | 
|  | 788 | // Disable FORTIFY for the compilation of these, so we don't end up having | 
|  | 789 | // FORTIFY silently call itself. | 
| George Burgess IV | b97049c | 2017-07-24 15:05:05 -0700 | [diff] [blame] | 790 | cflags: ["-U_FORTIFY_SOURCE", "-D__BIONIC_DECLARE_FORTIFY_HELPERS"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 791 |  | 
|  | 792 | arch: { | 
|  | 793 | arm: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 794 | cflags: ["-DNO___MEMCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 795 | srcs: [ | 
|  | 796 | "arch-arm/generic/bionic/__memcpy_chk.S", | 
|  | 797 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 798 | cortex_a7: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 799 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 800 | srcs: [ | 
|  | 801 | "arch-arm/cortex-a7/bionic/__strcat_chk.S", | 
|  | 802 | "arch-arm/cortex-a7/bionic/__strcpy_chk.S", | 
|  | 803 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 804 | }, | 
|  | 805 | cortex_a53: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 806 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 807 | srcs: [ | 
|  | 808 | "arch-arm/cortex-a53/bionic/__strcat_chk.S", | 
|  | 809 | "arch-arm/cortex-a53/bionic/__strcpy_chk.S", | 
|  | 810 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 811 | }, | 
|  | 812 | cortex_a53_a57: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 813 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 814 | srcs: [ | 
|  | 815 | "arch-arm/cortex-a15/bionic/__strcat_chk.S", | 
|  | 816 | "arch-arm/cortex-a15/bionic/__strcpy_chk.S", | 
|  | 817 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 818 | }, | 
|  | 819 | cortex_a8: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 820 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 821 | srcs: [ | 
|  | 822 | "arch-arm/cortex-a15/bionic/__strcat_chk.S", | 
|  | 823 | "arch-arm/cortex-a15/bionic/__strcpy_chk.S", | 
|  | 824 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 825 | }, | 
|  | 826 | cortex_a9: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 827 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 828 | srcs: [ | 
|  | 829 | "arch-arm/cortex-a9/bionic/__strcat_chk.S", | 
|  | 830 | "arch-arm/cortex-a9/bionic/__strcpy_chk.S", | 
|  | 831 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 832 | }, | 
|  | 833 | cortex_a15: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 834 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 835 | srcs: [ | 
|  | 836 | "arch-arm/cortex-a15/bionic/__strcat_chk.S", | 
|  | 837 | "arch-arm/cortex-a15/bionic/__strcpy_chk.S", | 
|  | 838 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 839 | }, | 
|  | 840 | cortex_a73: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 841 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 842 | srcs: [ | 
|  | 843 | "arch-arm/denver/bionic/__strcat_chk.S", | 
|  | 844 | "arch-arm/denver/bionic/__strcpy_chk.S", | 
|  | 845 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 846 | }, | 
|  | 847 | denver: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 848 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 849 | srcs: [ | 
|  | 850 | "arch-arm/denver/bionic/__strcat_chk.S", | 
|  | 851 | "arch-arm/denver/bionic/__strcpy_chk.S", | 
|  | 852 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 853 | }, | 
|  | 854 | krait: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 855 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 856 | srcs: [ | 
|  | 857 | "arch-arm/krait/bionic/__strcat_chk.S", | 
|  | 858 | "arch-arm/krait/bionic/__strcpy_chk.S", | 
|  | 859 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 860 | }, | 
|  | 861 | kryo: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 862 | cflags: ["-DNO___STRCAT_CHK", "-DNO___STRCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 863 | srcs: [ | 
|  | 864 | "arch-arm/krait/bionic/__strcat_chk.S", | 
|  | 865 | "arch-arm/krait/bionic/__strcpy_chk.S", | 
|  | 866 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 867 | }, | 
|  | 868 | }, | 
|  | 869 | arm64: { | 
| George Burgess IV | d34b0a9 | 2017-07-25 11:43:39 -0700 | [diff] [blame] | 870 | cflags: ["-DNO___MEMCPY_CHK"], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 871 | srcs: [ | 
|  | 872 | "arch-arm64/generic/bionic/__memcpy_chk.S", | 
|  | 873 | ], | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 874 | }, | 
|  | 875 | }, | 
|  | 876 | } | 
|  | 877 |  | 
|  | 878 | // ======================================================== | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 879 | // libc_bionic.a - home-grown C library code | 
|  | 880 | // ======================================================== | 
|  | 881 |  | 
|  | 882 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 883 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 884 | srcs: [ | 
| Yabin Cui | 9b687dc | 2015-11-30 14:07:58 -0800 | [diff] [blame] | 885 | // The following implementations depend on pthread data, so we can't | 
|  | 886 | // include them in libc_ndk.a. | 
|  | 887 | "bionic/__cxa_thread_atexit_impl.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 888 | "bionic/fork.cpp", | 
|  | 889 |  | 
|  | 890 | // The data that backs getauxval is initialized in the libc init | 
|  | 891 | // functions which are invoked by the linker. If this file is included | 
|  | 892 | // in libc_ndk.a, only one of the copies of the global data will be | 
|  | 893 | // initialized, resulting in nullptr dereferences. | 
|  | 894 | "bionic/getauxval.cpp", | 
|  | 895 |  | 
| Dan Willemsen | 35e91a1 | 2015-09-17 15:28:45 -0700 | [diff] [blame] | 896 | // These four require getauxval, which isn't available on older | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 897 | // platforms. | 
|  | 898 | "bionic/getentropy_linux.c", | 
|  | 899 | "bionic/sysconf.cpp", | 
|  | 900 | "bionic/vdso.cpp", | 
| Dan Willemsen | 35e91a1 | 2015-09-17 15:28:45 -0700 | [diff] [blame] | 901 | "bionic/setjmp_cookie.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 902 |  | 
| Josh Gao | 10ec928 | 2017-04-03 15:13:29 -0700 | [diff] [blame] | 903 | // The following must not be statically linked into libc_ndk.a, because | 
|  | 904 | // debuggerd will look for the abort message in libc.so's copy. | 
|  | 905 | "bionic/android_set_abort_message.cpp", | 
|  | 906 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 907 | "bionic/strchr.cpp", | 
|  | 908 | "bionic/strnlen.c", | 
|  | 909 | "bionic/strrchr.cpp", | 
|  | 910 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 911 |  | 
|  | 912 | arch: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 913 | arm: { | 
|  | 914 | srcs: [ | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 915 | "arch-arm/generic/bionic/memcmp.S", | 
|  | 916 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 917 | "arch-arm/generic/bionic/memset.S", | 
|  | 918 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 919 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 920 | "arch-arm/generic/bionic/strlen.c", | 
|  | 921 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 922 | "arch-arm/bionic/atomics_arm.c", | 
|  | 923 | "arch-arm/bionic/__bionic_clone.S", | 
|  | 924 | "arch-arm/bionic/_exit_with_stack_teardown.S", | 
|  | 925 | "arch-arm/bionic/libgcc_compat.c", | 
|  | 926 | "arch-arm/bionic/popcount_tab.c", | 
|  | 927 | "arch-arm/bionic/__restore.S", | 
|  | 928 | "arch-arm/bionic/setjmp.S", | 
|  | 929 | "arch-arm/bionic/syscall.S", | 
|  | 930 | "arch-arm/bionic/vfork.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 931 | ], | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 932 | cortex_a7: { | 
|  | 933 | srcs: [ | 
|  | 934 | "arch-arm/cortex-a7/bionic/memset.S", | 
| Christopher Ferris | ecebb49 | 2016-11-28 11:09:49 -0800 | [diff] [blame] | 935 | "arch-arm/cortex-a7/bionic/memcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 936 |  | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 937 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 938 | "arch-arm/cortex-a15/bionic/strcat.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 939 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 940 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 941 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 942 |  | 
|  | 943 | "arch-arm/denver/bionic/memmove.S", | 
|  | 944 | ], | 
|  | 945 | exclude_srcs: [ | 
|  | 946 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 947 | "arch-arm/generic/bionic/memset.S", | 
|  | 948 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 949 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 950 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 951 | ], | 
|  | 952 | }, | 
|  | 953 | cortex_a53: { | 
|  | 954 | srcs: [ | 
|  | 955 | "arch-arm/cortex-a53/bionic/memcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 956 |  | 
|  | 957 | "arch-arm/cortex-a7/bionic/memset.S", | 
|  | 958 |  | 
|  | 959 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 960 | "arch-arm/cortex-a15/bionic/strcat.S", | 
|  | 961 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 962 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
|  | 963 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 964 |  | 
|  | 965 | "arch-arm/denver/bionic/memmove.S", | 
|  | 966 | ], | 
|  | 967 | exclude_srcs: [ | 
|  | 968 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 969 | "arch-arm/generic/bionic/memset.S", | 
|  | 970 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 971 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 972 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 973 | ], | 
|  | 974 | }, | 
|  | 975 | cortex_a53_a57: { | 
|  | 976 | srcs: [ | 
|  | 977 | "arch-arm/cortex-a15/bionic/memcpy.S", | 
|  | 978 | "arch-arm/cortex-a15/bionic/memset.S", | 
|  | 979 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 980 | "arch-arm/cortex-a15/bionic/strcat.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 981 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 982 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 983 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 984 |  | 
|  | 985 | "arch-arm/denver/bionic/memmove.S", | 
|  | 986 | ], | 
|  | 987 | exclude_srcs: [ | 
|  | 988 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 989 | "arch-arm/generic/bionic/memset.S", | 
|  | 990 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 991 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 992 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 993 | ], | 
|  | 994 | }, | 
|  | 995 | cortex_a8: { | 
|  | 996 | srcs: [ | 
|  | 997 | "arch-arm/cortex-a15/bionic/memcpy.S", | 
|  | 998 | "arch-arm/cortex-a15/bionic/memset.S", | 
|  | 999 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1000 | "arch-arm/cortex-a15/bionic/strcat.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1001 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 1002 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1003 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1004 |  | 
|  | 1005 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1006 | ], | 
|  | 1007 | exclude_srcs: [ | 
|  | 1008 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1009 | "arch-arm/generic/bionic/memset.S", | 
|  | 1010 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1011 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1012 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1013 | ], | 
|  | 1014 | }, | 
|  | 1015 | cortex_a9: { | 
|  | 1016 | srcs: [ | 
|  | 1017 | "arch-arm/cortex-a9/bionic/memcpy.S", | 
|  | 1018 | "arch-arm/cortex-a9/bionic/memset.S", | 
|  | 1019 | "arch-arm/cortex-a9/bionic/stpcpy.S", | 
|  | 1020 | "arch-arm/cortex-a9/bionic/strcat.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1021 | "arch-arm/cortex-a9/bionic/strcmp.S", | 
|  | 1022 | "arch-arm/cortex-a9/bionic/strcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1023 | "arch-arm/cortex-a9/bionic/strlen.S", | 
|  | 1024 |  | 
|  | 1025 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1026 | ], | 
|  | 1027 | exclude_srcs: [ | 
|  | 1028 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1029 | "arch-arm/generic/bionic/memset.S", | 
|  | 1030 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1031 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1032 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1033 | ], | 
|  | 1034 | }, | 
|  | 1035 | cortex_a15: { | 
|  | 1036 | srcs: [ | 
|  | 1037 | "arch-arm/cortex-a15/bionic/memcpy.S", | 
|  | 1038 | "arch-arm/cortex-a15/bionic/memset.S", | 
|  | 1039 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1040 | "arch-arm/cortex-a15/bionic/strcat.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1041 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 1042 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1043 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1044 |  | 
|  | 1045 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1046 | ], | 
|  | 1047 | exclude_srcs: [ | 
|  | 1048 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1049 | "arch-arm/generic/bionic/memset.S", | 
|  | 1050 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1051 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1052 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1053 | ], | 
|  | 1054 | }, | 
| Christopher Ferris | 94bd274 | 2017-05-08 12:09:03 -0700 | [diff] [blame] | 1055 | cortex_a73: { | 
|  | 1056 | srcs: [ | 
|  | 1057 | "arch-arm/cortex-a7/bionic/memset.S", | 
|  | 1058 |  | 
|  | 1059 | "arch-arm/denver/bionic/memcpy.S", | 
|  | 1060 | "arch-arm/denver/bionic/memmove.S", | 
| Christopher Ferris | 94bd274 | 2017-05-08 12:09:03 -0700 | [diff] [blame] | 1061 |  | 
|  | 1062 | "arch-arm/krait/bionic/strcmp.S", | 
|  | 1063 |  | 
|  | 1064 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1065 | "arch-arm/cortex-a15/bionic/strcat.S", | 
|  | 1066 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
|  | 1067 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1068 | ], | 
|  | 1069 | exclude_srcs: [ | 
|  | 1070 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1071 | "arch-arm/generic/bionic/memset.S", | 
|  | 1072 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1073 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1074 | "arch-arm/generic/bionic/strlen.c", | 
| Christopher Ferris | 94bd274 | 2017-05-08 12:09:03 -0700 | [diff] [blame] | 1075 | ], | 
|  | 1076 | }, | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1077 | denver: { | 
|  | 1078 | srcs: [ | 
|  | 1079 | "arch-arm/denver/bionic/memcpy.S", | 
|  | 1080 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1081 | "arch-arm/denver/bionic/memset.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1082 |  | 
|  | 1083 | // Use cortex-a15 versions of strcat/strcpy/strlen. | 
|  | 1084 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1085 | "arch-arm/cortex-a15/bionic/strcat.S", | 
|  | 1086 | "arch-arm/cortex-a15/bionic/strcmp.S", | 
|  | 1087 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
|  | 1088 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1089 | ], | 
|  | 1090 | exclude_srcs: [ | 
|  | 1091 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1092 | "arch-arm/generic/bionic/memset.S", | 
|  | 1093 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1094 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1095 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1096 | ], | 
|  | 1097 | }, | 
|  | 1098 | krait: { | 
|  | 1099 | srcs: [ | 
|  | 1100 | "arch-arm/krait/bionic/memcpy.S", | 
|  | 1101 | "arch-arm/krait/bionic/memset.S", | 
|  | 1102 | "arch-arm/krait/bionic/strcmp.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1103 |  | 
|  | 1104 | // Use cortex-a15 versions of strcat/strcpy/strlen. | 
|  | 1105 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1106 | "arch-arm/cortex-a15/bionic/strcat.S", | 
|  | 1107 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
|  | 1108 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1109 |  | 
|  | 1110 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1111 | ], | 
|  | 1112 | exclude_srcs: [ | 
|  | 1113 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1114 | "arch-arm/generic/bionic/memset.S", | 
|  | 1115 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1116 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1117 | "arch-arm/generic/bionic/strlen.c", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1118 | ], | 
|  | 1119 | }, | 
| Christopher Ferris | 950a958 | 2017-03-29 13:10:56 -0700 | [diff] [blame] | 1120 | kryo: { | 
|  | 1121 | srcs: [ | 
| Jake Weinstein | 04d99df | 2016-08-25 20:03:25 -0400 | [diff] [blame] | 1122 | "arch-arm/kryo/bionic/memcpy.S", | 
| Jake Weinstein | 4d114f9 | 2017-04-07 14:55:53 -0400 | [diff] [blame] | 1123 | "arch-arm/cortex-a7/bionic/memset.S", | 
| Christopher Ferris | 950a958 | 2017-03-29 13:10:56 -0700 | [diff] [blame] | 1124 | "arch-arm/krait/bionic/strcmp.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1125 |  | 
| Christopher Ferris | 950a958 | 2017-03-29 13:10:56 -0700 | [diff] [blame] | 1126 | // Use cortex-a15 versions of strcat/strcpy/strlen. | 
|  | 1127 | "arch-arm/cortex-a15/bionic/stpcpy.S", | 
|  | 1128 | "arch-arm/cortex-a15/bionic/strcat.S", | 
|  | 1129 | "arch-arm/cortex-a15/bionic/strcpy.S", | 
|  | 1130 | "arch-arm/cortex-a15/bionic/strlen.S", | 
|  | 1131 |  | 
|  | 1132 | "arch-arm/denver/bionic/memmove.S", | 
|  | 1133 | ], | 
|  | 1134 | exclude_srcs: [ | 
|  | 1135 | "arch-arm/generic/bionic/memcpy.S", | 
|  | 1136 | "arch-arm/generic/bionic/memset.S", | 
|  | 1137 | "arch-arm/generic/bionic/strcmp.S", | 
|  | 1138 | "arch-arm/generic/bionic/strcpy.S", | 
|  | 1139 | "arch-arm/generic/bionic/strlen.c", | 
| Christopher Ferris | 950a958 | 2017-03-29 13:10:56 -0700 | [diff] [blame] | 1140 | ], | 
|  | 1141 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1142 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1143 | arm64: { | 
|  | 1144 | srcs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1145 | "arch-arm64/generic/bionic/memchr.S", | 
|  | 1146 | "arch-arm64/generic/bionic/memcmp.S", | 
|  | 1147 | "arch-arm64/generic/bionic/memcpy.S", | 
|  | 1148 | "arch-arm64/generic/bionic/memmove.S", | 
|  | 1149 | "arch-arm64/generic/bionic/memset.S", | 
|  | 1150 | "arch-arm64/generic/bionic/stpcpy.S", | 
|  | 1151 | "arch-arm64/generic/bionic/strchr.S", | 
|  | 1152 | "arch-arm64/generic/bionic/strcmp.S", | 
|  | 1153 | "arch-arm64/generic/bionic/strcpy.S", | 
|  | 1154 | "arch-arm64/generic/bionic/strlen.S", | 
|  | 1155 | "arch-arm64/generic/bionic/strncmp.S", | 
|  | 1156 | "arch-arm64/generic/bionic/strnlen.S", | 
|  | 1157 | "arch-arm64/generic/bionic/wmemmove.S", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1158 |  | 
|  | 1159 | "arch-arm64/bionic/__bionic_clone.S", | 
|  | 1160 | "arch-arm64/bionic/_exit_with_stack_teardown.S", | 
|  | 1161 | "arch-arm64/bionic/setjmp.S", | 
|  | 1162 | "arch-arm64/bionic/syscall.S", | 
|  | 1163 | "arch-arm64/bionic/vfork.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1164 | ], | 
|  | 1165 | exclude_srcs: [ | 
|  | 1166 | "bionic/__memcpy_chk.cpp", | 
|  | 1167 | "bionic/strchr.cpp", | 
|  | 1168 | "bionic/strnlen.c", | 
|  | 1169 | ], | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1170 | denver64: { | 
|  | 1171 | srcs: [ | 
|  | 1172 | "arch-arm64/denver64/bionic/memcpy.S", | 
|  | 1173 | "arch-arm64/denver64/bionic/memset.S", | 
|  | 1174 | ], | 
|  | 1175 | exclude_srcs: [ | 
|  | 1176 | "arch-arm64/generic/bionic/memcpy.S", | 
|  | 1177 | "arch-arm64/generic/bionic/memset.S", | 
|  | 1178 | ], | 
|  | 1179 | }, | 
| Jake Weinstein | 372f19e | 2016-11-17 16:01:25 -0500 | [diff] [blame] | 1180 | cortex_a53: { | 
|  | 1181 | srcs: [ | 
|  | 1182 | "arch-arm64/cortex-a53/bionic/memmove.S", | 
|  | 1183 | ], | 
|  | 1184 | exclude_srcs: [ | 
|  | 1185 | "arch-arm64/generic/bionic/memmove.S", | 
|  | 1186 | ], | 
|  | 1187 | }, | 
| Christopher Ferris | 94bd274 | 2017-05-08 12:09:03 -0700 | [diff] [blame] | 1188 | cortex_a73: { | 
|  | 1189 | srcs: [ | 
|  | 1190 | "arch-arm64/cortex-a53/bionic/memmove.S", | 
|  | 1191 | ], | 
|  | 1192 | exclude_srcs: [ | 
|  | 1193 | "arch-arm64/generic/bionic/memmove.S", | 
|  | 1194 | ], | 
|  | 1195 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1196 | }, | 
|  | 1197 |  | 
|  | 1198 | mips: { | 
|  | 1199 | srcs: [ | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1200 | "arch-mips/string/memcmp.c", | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1201 | "arch-mips/string/memcpy.c", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1202 | "arch-mips/string/memset.S", | 
|  | 1203 | "arch-mips/string/strcmp.S", | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1204 | "arch-mips/string/strncmp.S", | 
|  | 1205 | "arch-mips/string/strlen.c", | 
|  | 1206 | "arch-mips/string/strnlen.c", | 
|  | 1207 | "arch-mips/string/strchr.c", | 
|  | 1208 | "arch-mips/string/strcpy.c", | 
|  | 1209 | "arch-mips/string/memchr.c", | 
|  | 1210 | "arch-mips/string/memmove.c", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1211 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1212 | "arch-mips/bionic/__bionic_clone.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1213 | "arch-mips/bionic/cacheflush.cpp", | 
|  | 1214 | "arch-mips/bionic/_exit_with_stack_teardown.S", | 
| Dan Willemsen | 879cec2 | 2016-02-29 10:37:56 -0800 | [diff] [blame] | 1215 | "arch-mips/bionic/libgcc_compat.c", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1216 | "arch-mips/bionic/setjmp.S", | 
|  | 1217 | "arch-mips/bionic/syscall.S", | 
|  | 1218 | "arch-mips/bionic/vfork.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1219 | ], | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1220 | exclude_srcs: [ | 
|  | 1221 | "bionic/strchr.cpp", | 
|  | 1222 | "bionic/strnlen.c", | 
|  | 1223 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1224 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1225 | mips64: { | 
|  | 1226 | srcs: [ | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1227 | "arch-mips/string/memcmp.c", | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1228 | "arch-mips/string/memcpy.c", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1229 | "arch-mips/string/memset.S", | 
|  | 1230 | "arch-mips/string/strcmp.S", | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1231 | "arch-mips/string/strncmp.S", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1232 | "arch-mips/string/strlen.c", | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1233 | "arch-mips/string/strnlen.c", | 
|  | 1234 | "arch-mips/string/strchr.c", | 
|  | 1235 | "arch-mips/string/strcpy.c", | 
|  | 1236 | "arch-mips/string/memchr.c", | 
|  | 1237 | "arch-mips/string/memmove.c", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1238 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1239 | "arch-mips64/bionic/__bionic_clone.S", | 
|  | 1240 | "arch-mips64/bionic/_exit_with_stack_teardown.S", | 
|  | 1241 | "arch-mips64/bionic/setjmp.S", | 
|  | 1242 | "arch-mips64/bionic/syscall.S", | 
|  | 1243 | "arch-mips64/bionic/vfork.S", | 
|  | 1244 | "arch-mips64/bionic/stat.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1245 | ], | 
| Prashant Patil | fcb877a | 2017-03-16 18:07:00 +0530 | [diff] [blame] | 1246 | exclude_srcs: [ | 
|  | 1247 | "bionic/strchr.cpp", | 
|  | 1248 | "bionic/strnlen.c", | 
|  | 1249 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1250 | }, | 
|  | 1251 |  | 
|  | 1252 | x86: { | 
|  | 1253 | srcs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1254 | "arch-x86/generic/string/memcmp.S", | 
|  | 1255 | "arch-x86/generic/string/strcmp.S", | 
|  | 1256 | "arch-x86/generic/string/strncmp.S", | 
|  | 1257 | "arch-x86/generic/string/strcat.S", | 
|  | 1258 | "arch-x86/atom/string/sse2-memchr-atom.S", | 
|  | 1259 | "arch-x86/atom/string/sse2-memrchr-atom.S", | 
|  | 1260 | "arch-x86/atom/string/sse2-strchr-atom.S", | 
|  | 1261 | "arch-x86/atom/string/sse2-strnlen-atom.S", | 
|  | 1262 | "arch-x86/atom/string/sse2-strrchr-atom.S", | 
|  | 1263 | "arch-x86/atom/string/sse2-wcschr-atom.S", | 
|  | 1264 | "arch-x86/atom/string/sse2-wcsrchr-atom.S", | 
|  | 1265 | "arch-x86/atom/string/sse2-wcslen-atom.S", | 
|  | 1266 | "arch-x86/atom/string/sse2-wcscmp-atom.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1267 | "arch-x86/silvermont/string/sse2-memcpy-slm.S", | 
|  | 1268 | "arch-x86/silvermont/string/sse2-memmove-slm.S", | 
|  | 1269 | "arch-x86/silvermont/string/sse2-memset-slm.S", | 
|  | 1270 | "arch-x86/silvermont/string/sse2-stpcpy-slm.S", | 
|  | 1271 | "arch-x86/silvermont/string/sse2-stpncpy-slm.S", | 
|  | 1272 | "arch-x86/silvermont/string/sse2-strcpy-slm.S", | 
|  | 1273 | "arch-x86/silvermont/string/sse2-strlen-slm.S", | 
|  | 1274 | "arch-x86/silvermont/string/sse2-strncpy-slm.S", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1275 |  | 
|  | 1276 | "arch-x86/bionic/__bionic_clone.S", | 
|  | 1277 | "arch-x86/bionic/_exit_with_stack_teardown.S", | 
|  | 1278 | "arch-x86/bionic/libgcc_compat.c", | 
|  | 1279 | "arch-x86/bionic/__restore.S", | 
|  | 1280 | "arch-x86/bionic/setjmp.S", | 
|  | 1281 | "arch-x86/bionic/syscall.S", | 
|  | 1282 | "arch-x86/bionic/vfork.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1283 | ], | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1284 |  | 
|  | 1285 | exclude_srcs: [ | 
|  | 1286 | "bionic/strchr.cpp", | 
|  | 1287 | "bionic/strnlen.c", | 
|  | 1288 | "bionic/strrchr.cpp", | 
|  | 1289 | ], | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1290 | atom: { | 
|  | 1291 | srcs: [ | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1292 | "arch-x86/atom/string/sse2-memset-atom.S", | 
|  | 1293 | "arch-x86/atom/string/sse2-strlen-atom.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1294 | "arch-x86/atom/string/ssse3-memcmp-atom.S", | 
| Dan Willemsen | 701b545 | 2016-01-12 19:35:40 -0800 | [diff] [blame] | 1295 | "arch-x86/atom/string/ssse3-memcpy-atom.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1296 | "arch-x86/atom/string/ssse3-memmove-atom.S", | 
| Dan Willemsen | 701b545 | 2016-01-12 19:35:40 -0800 | [diff] [blame] | 1297 | "arch-x86/atom/string/ssse3-strcpy-atom.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1298 | "arch-x86/atom/string/ssse3-strncpy-atom.S", | 
|  | 1299 | "arch-x86/atom/string/ssse3-wmemcmp-atom.S", | 
|  | 1300 | ], | 
|  | 1301 | exclude_srcs: [ | 
|  | 1302 | "arch-x86/generic/string/memcmp.S", | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1303 | "arch-x86/silvermont/string/sse2-memcpy-slm.S", | 
|  | 1304 | "arch-x86/silvermont/string/sse2-memmove-slm.S", | 
|  | 1305 | "arch-x86/silvermont/string/sse2-memset-slm.S", | 
|  | 1306 | "arch-x86/silvermont/string/sse2-strcpy-slm.S", | 
|  | 1307 | "arch-x86/silvermont/string/sse2-strlen-slm.S", | 
|  | 1308 | "arch-x86/silvermont/string/sse2-strncpy-slm.S", | 
|  | 1309 | ], | 
|  | 1310 | }, | 
|  | 1311 | ssse3: { | 
|  | 1312 | srcs: [ | 
|  | 1313 | "arch-x86/atom/string/ssse3-strncat-atom.S", | 
|  | 1314 | "arch-x86/atom/string/ssse3-strlcat-atom.S", | 
|  | 1315 | "arch-x86/atom/string/ssse3-strlcpy-atom.S", | 
|  | 1316 | "arch-x86/atom/string/ssse3-strcat-atom.S", | 
|  | 1317 | "arch-x86/atom/string/ssse3-strcmp-atom.S", | 
|  | 1318 | "arch-x86/atom/string/ssse3-strncmp-atom.S", | 
|  | 1319 | "arch-x86/atom/string/ssse3-wcscat-atom.S", | 
|  | 1320 | "arch-x86/atom/string/ssse3-wcscpy-atom.S", | 
|  | 1321 | ], | 
|  | 1322 | exclude_srcs: [ | 
|  | 1323 | "arch-x86/generic/string/strcmp.S", | 
|  | 1324 | "arch-x86/generic/string/strncmp.S", | 
|  | 1325 | "arch-x86/generic/string/strcat.S", | 
|  | 1326 | ], | 
|  | 1327 | }, | 
|  | 1328 | sse4: { | 
|  | 1329 | srcs: [ | 
|  | 1330 | "arch-x86/silvermont/string/sse4-memcmp-slm.S", | 
|  | 1331 | "arch-x86/silvermont/string/sse4-wmemcmp-slm.S", | 
|  | 1332 | ], | 
|  | 1333 | exclude_srcs: [ | 
|  | 1334 | "arch-x86/generic/string/memcmp.S", | 
|  | 1335 | ], | 
|  | 1336 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1337 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1338 | x86_64: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1339 | srcs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1340 | "arch-x86_64/string/sse2-memcpy-slm.S", | 
|  | 1341 | "arch-x86_64/string/sse2-memmove-slm.S", | 
|  | 1342 | "arch-x86_64/string/sse2-memset-slm.S", | 
|  | 1343 | "arch-x86_64/string/sse2-stpcpy-slm.S", | 
|  | 1344 | "arch-x86_64/string/sse2-stpncpy-slm.S", | 
|  | 1345 | "arch-x86_64/string/sse2-strcat-slm.S", | 
|  | 1346 | "arch-x86_64/string/sse2-strcpy-slm.S", | 
|  | 1347 | "arch-x86_64/string/sse2-strlcat-slm.S", | 
|  | 1348 | "arch-x86_64/string/sse2-strlcpy-slm.S", | 
|  | 1349 | "arch-x86_64/string/sse2-strlen-slm.S", | 
|  | 1350 | "arch-x86_64/string/sse2-strncat-slm.S", | 
|  | 1351 | "arch-x86_64/string/sse2-strncpy-slm.S", | 
|  | 1352 | "arch-x86_64/string/sse4-memcmp-slm.S", | 
|  | 1353 | "arch-x86_64/string/ssse3-strcmp-slm.S", | 
|  | 1354 | "arch-x86_64/string/ssse3-strncmp-slm.S", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1355 |  | 
|  | 1356 | "arch-x86_64/bionic/__bionic_clone.S", | 
|  | 1357 | "arch-x86_64/bionic/_exit_with_stack_teardown.S", | 
|  | 1358 | "arch-x86_64/bionic/__restore_rt.S", | 
|  | 1359 | "arch-x86_64/bionic/setjmp.S", | 
|  | 1360 | "arch-x86_64/bionic/syscall.S", | 
|  | 1361 | "arch-x86_64/bionic/vfork.S", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1362 | ], | 
|  | 1363 | }, | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1364 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1365 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1366 | cppflags: ["-Wold-style-cast"], | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1367 | include_dirs: ["bionic/libstdc++/include"], | 
|  | 1368 | name: "libc_bionic", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1369 | } | 
|  | 1370 |  | 
| Elliott Hughes | 3f6eee9 | 2016-12-13 23:47:25 +0000 | [diff] [blame] | 1371 | genrule { | 
|  | 1372 | name: "generated_android_ids", | 
| Colin Cross | 35bbed8 | 2017-01-17 18:16:07 -0800 | [diff] [blame] | 1373 | out: ["generated_android_ids.h"], | 
|  | 1374 | srcs: [":android_filesystem_config_header"], | 
|  | 1375 | tool_files: ["fs_config_generator.py"], | 
|  | 1376 | cmd: "$(location fs_config_generator.py) aidarray $(in) > $(out)", | 
| Elliott Hughes | 3f6eee9 | 2016-12-13 23:47:25 +0000 | [diff] [blame] | 1377 | } | 
|  | 1378 |  | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1379 | // ======================================================== | 
|  | 1380 | // libc_bionic_ndk.a- The portions of libc_bionic that can | 
|  | 1381 | // be safely used in libc_ndk.a (no troublesome global data | 
|  | 1382 | // or constructors). | 
|  | 1383 | // ======================================================== | 
|  | 1384 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1385 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1386 | srcs: [ | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1387 | "bionic/NetdClientDispatch.cpp", | 
|  | 1388 | "bionic/__cmsg_nxthdr.cpp", | 
|  | 1389 | "bionic/__errno.cpp", | 
|  | 1390 | "bionic/__gnu_basename.cpp", | 
|  | 1391 | "bionic/__libc_current_sigrtmax.cpp", | 
|  | 1392 | "bionic/__libc_current_sigrtmin.cpp", | 
|  | 1393 | "bionic/__set_errno.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1394 | "bionic/abort.cpp", | 
|  | 1395 | "bionic/accept.cpp", | 
|  | 1396 | "bionic/accept4.cpp", | 
|  | 1397 | "bionic/access.cpp", | 
|  | 1398 | "bionic/arpa_inet.cpp", | 
|  | 1399 | "bionic/assert.cpp", | 
|  | 1400 | "bionic/atof.cpp", | 
| Josh Gao | a170d9b | 2016-11-10 16:08:29 -0800 | [diff] [blame] | 1401 | "bionic/bionic_arc4random.cpp", | 
| Tom Cherry | ac49ced | 2017-08-17 13:18:52 -0700 | [diff] [blame] | 1402 | "bionic/bionic_futex.cpp", | 
| Colin Cross | 8ce38af | 2016-01-19 12:50:20 -0800 | [diff] [blame] | 1403 | "bionic/bionic_netlink.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1404 | "bionic/bionic_systrace.cpp", | 
|  | 1405 | "bionic/bionic_time_conversions.cpp", | 
|  | 1406 | "bionic/brk.cpp", | 
|  | 1407 | "bionic/c16rtomb.cpp", | 
|  | 1408 | "bionic/c32rtomb.cpp", | 
|  | 1409 | "bionic/chmod.cpp", | 
|  | 1410 | "bionic/chown.cpp", | 
|  | 1411 | "bionic/clearenv.cpp", | 
|  | 1412 | "bionic/clock.cpp", | 
|  | 1413 | "bionic/clock_getcpuclockid.cpp", | 
|  | 1414 | "bionic/clock_nanosleep.cpp", | 
|  | 1415 | "bionic/clone.cpp", | 
|  | 1416 | "bionic/close.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1417 | "bionic/connect.cpp", | 
|  | 1418 | "bionic/ctype.cpp", | 
|  | 1419 | "bionic/dirent.cpp", | 
|  | 1420 | "bionic/dup2.cpp", | 
| Victor Khimenko | 0a0743f | 2017-07-10 21:15:37 +0200 | [diff] [blame] | 1421 | "bionic/environ.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1422 | "bionic/epoll_create.cpp", | 
|  | 1423 | "bionic/epoll_pwait.cpp", | 
|  | 1424 | "bionic/epoll_wait.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1425 | "bionic/error.cpp", | 
|  | 1426 | "bionic/eventfd_read.cpp", | 
|  | 1427 | "bionic/eventfd_write.cpp", | 
| Elliott Hughes | e19c672 | 2016-08-26 16:15:57 +0000 | [diff] [blame] | 1428 | "bionic/exec.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1429 | "bionic/faccessat.cpp", | 
|  | 1430 | "bionic/fchmod.cpp", | 
|  | 1431 | "bionic/fchmodat.cpp", | 
|  | 1432 | "bionic/ffs.cpp", | 
|  | 1433 | "bionic/fgetxattr.cpp", | 
|  | 1434 | "bionic/flistxattr.cpp", | 
|  | 1435 | "bionic/flockfile.cpp", | 
|  | 1436 | "bionic/fpclassify.cpp", | 
|  | 1437 | "bionic/fsetxattr.cpp", | 
|  | 1438 | "bionic/ftruncate.cpp", | 
| Elliott Hughes | 13d79ab | 2016-04-15 17:40:33 -0700 | [diff] [blame] | 1439 | "bionic/ftw.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1440 | "bionic/futimens.cpp", | 
|  | 1441 | "bionic/getcwd.cpp", | 
| Dan Willemsen | 23aae1c | 2016-03-29 15:21:38 -0700 | [diff] [blame] | 1442 | "bionic/getdomainname.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1443 | "bionic/gethostname.cpp", | 
| Elliott Hughes | e4510a2 | 2016-04-06 08:34:58 -0700 | [diff] [blame] | 1444 | "bionic/getpagesize.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1445 | "bionic/getpgrp.cpp", | 
|  | 1446 | "bionic/getpid.cpp", | 
| Elliott Hughes | 8f0e42f | 2016-11-29 15:10:29 -0800 | [diff] [blame] | 1447 | "bionic/getpriority.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1448 | "bionic/gettid.cpp", | 
| Mark Salyzyn | b38347a | 2016-04-05 09:09:46 -0700 | [diff] [blame] | 1449 | "bionic/grp_pwd.cpp", | 
| Elliott Hughes | c41b560 | 2017-07-27 17:08:08 -0700 | [diff] [blame] | 1450 | "bionic/icu_wrappers.cpp", | 
| Dan Willemsen | 9b59acc | 2016-01-05 14:32:06 -0800 | [diff] [blame] | 1451 | "bionic/ifaddrs.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1452 | "bionic/inotify_init.cpp", | 
| Dan Willemsen | dc6b0a7 | 2015-11-09 14:03:46 -0800 | [diff] [blame] | 1453 | "bionic/ioctl.cpp", | 
| Elliott Hughes | 7532b32 | 2017-07-11 15:00:17 -0700 | [diff] [blame] | 1454 | "bionic/killpg.cpp", | 
| Elliott Hughes | fc8e688 | 2016-11-18 16:27:29 -0800 | [diff] [blame] | 1455 | "bionic/langinfo.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1456 | "bionic/lchown.cpp", | 
|  | 1457 | "bionic/lfs64_support.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1458 | "bionic/libc_init_common.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1459 | "bionic/libgen.cpp", | 
|  | 1460 | "bionic/link.cpp", | 
|  | 1461 | "bionic/locale.cpp", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1462 | "bionic/lockf.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1463 | "bionic/lstat.cpp", | 
|  | 1464 | "bionic/malloc_info.cpp", | 
| Colin Cross | ee84786 | 2016-04-29 14:06:07 -0700 | [diff] [blame] | 1465 | "bionic/mblen.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1466 | "bionic/mbrtoc16.cpp", | 
|  | 1467 | "bionic/mbrtoc32.cpp", | 
| Elliott Hughes | cae33ad | 2016-08-15 14:14:40 -0700 | [diff] [blame] | 1468 | "bionic/memmem.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1469 | "bionic/mempcpy.cpp", | 
|  | 1470 | "bionic/mkdir.cpp", | 
|  | 1471 | "bionic/mkfifo.cpp", | 
|  | 1472 | "bionic/mknod.cpp", | 
|  | 1473 | "bionic/mntent.cpp", | 
| Dan Willemsen | dc6b0a7 | 2015-11-09 14:03:46 -0800 | [diff] [blame] | 1474 | "bionic/mremap.cpp", | 
| Colin Cross | 8ce38af | 2016-01-19 12:50:20 -0800 | [diff] [blame] | 1475 | "bionic/net_if.cpp", | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1476 | "bionic/netdb.cpp", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1477 | "bionic/netinet_in.cpp", | 
| Elliott Hughes | 6cfb84b | 2016-04-06 17:14:45 -0700 | [diff] [blame] | 1478 | "bionic/nl_types.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1479 | "bionic/open.cpp", | 
|  | 1480 | "bionic/pathconf.cpp", | 
|  | 1481 | "bionic/pause.cpp", | 
|  | 1482 | "bionic/pipe.cpp", | 
|  | 1483 | "bionic/poll.cpp", | 
|  | 1484 | "bionic/posix_fadvise.cpp", | 
|  | 1485 | "bionic/posix_fallocate.cpp", | 
|  | 1486 | "bionic/posix_madvise.cpp", | 
|  | 1487 | "bionic/posix_timers.cpp", | 
|  | 1488 | "bionic/ptrace.cpp", | 
|  | 1489 | "bionic/pty.cpp", | 
|  | 1490 | "bionic/raise.cpp", | 
|  | 1491 | "bionic/rand.cpp", | 
|  | 1492 | "bionic/readlink.cpp", | 
|  | 1493 | "bionic/reboot.cpp", | 
|  | 1494 | "bionic/recv.cpp", | 
|  | 1495 | "bionic/rename.cpp", | 
|  | 1496 | "bionic/rmdir.cpp", | 
|  | 1497 | "bionic/scandir.cpp", | 
|  | 1498 | "bionic/sched_getaffinity.cpp", | 
|  | 1499 | "bionic/sched_getcpu.cpp", | 
|  | 1500 | "bionic/semaphore.cpp", | 
|  | 1501 | "bionic/send.cpp", | 
|  | 1502 | "bionic/setegid.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1503 | "bionic/seteuid.cpp", | 
|  | 1504 | "bionic/setpgrp.cpp", | 
|  | 1505 | "bionic/sigaction.cpp", | 
|  | 1506 | "bionic/sigaddset.cpp", | 
|  | 1507 | "bionic/sigdelset.cpp", | 
|  | 1508 | "bionic/sigemptyset.cpp", | 
|  | 1509 | "bionic/sigfillset.cpp", | 
| Colin Cross | b839610 | 2016-04-07 13:24:50 -0700 | [diff] [blame] | 1510 | "bionic/sighold.cpp", | 
|  | 1511 | "bionic/sigignore.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1512 | "bionic/sigismember.cpp", | 
|  | 1513 | "bionic/signal.cpp", | 
|  | 1514 | "bionic/signalfd.cpp", | 
| Colin Cross | b839610 | 2016-04-07 13:24:50 -0700 | [diff] [blame] | 1515 | "bionic/sigpause.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1516 | "bionic/sigpending.cpp", | 
|  | 1517 | "bionic/sigprocmask.cpp", | 
|  | 1518 | "bionic/sigqueue.cpp", | 
| Colin Cross | b839610 | 2016-04-07 13:24:50 -0700 | [diff] [blame] | 1519 | "bionic/sigrelse.cpp", | 
|  | 1520 | "bionic/sigset.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1521 | "bionic/sigsuspend.cpp", | 
|  | 1522 | "bionic/sigtimedwait.cpp", | 
|  | 1523 | "bionic/sigwait.cpp", | 
|  | 1524 | "bionic/sigwaitinfo.cpp", | 
|  | 1525 | "bionic/socket.cpp", | 
|  | 1526 | "bionic/stat.cpp", | 
|  | 1527 | "bionic/statvfs.cpp", | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1528 | "bionic/stdlib_l.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1529 | "bionic/strchrnul.cpp", | 
|  | 1530 | "bionic/strerror.cpp", | 
|  | 1531 | "bionic/strerror_r.cpp", | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1532 | "bionic/string_l.cpp", | 
|  | 1533 | "bionic/strings_l.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1534 | "bionic/strsignal.cpp", | 
|  | 1535 | "bionic/strtold.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1536 | "bionic/symlink.cpp", | 
| Colin Cross | fc8ed2f | 2016-04-11 14:51:38 -0700 | [diff] [blame] | 1537 | "bionic/sync_file_range.cpp", | 
| Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 1538 | "bionic/sys_msg.cpp", | 
|  | 1539 | "bionic/sys_sem.cpp", | 
|  | 1540 | "bionic/sys_shm.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1541 | "bionic/sys_siglist.c", | 
|  | 1542 | "bionic/sys_signame.c", | 
| Elliott Hughes | 449eff0 | 2016-06-08 19:51:20 -0700 | [diff] [blame] | 1543 | "bionic/sys_time.cpp", | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1544 | "bionic/sysinfo.cpp", | 
|  | 1545 | "bionic/syslog.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1546 | "bionic/system_properties.cpp", | 
|  | 1547 | "bionic/tdestroy.cpp", | 
|  | 1548 | "bionic/termios.cpp", | 
|  | 1549 | "bionic/thread_private.cpp", | 
|  | 1550 | "bionic/tmpfile.cpp", | 
|  | 1551 | "bionic/umount.cpp", | 
|  | 1552 | "bionic/unlink.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1553 | "bionic/wait.cpp", | 
|  | 1554 | "bionic/wchar.cpp", | 
| Dan Albert | e2fd010 | 2017-07-11 14:27:07 -0700 | [diff] [blame] | 1555 | "bionic/wchar_l.cpp", | 
| Elliott Hughes | 7f0849f | 2016-08-26 16:17:17 -0700 | [diff] [blame] | 1556 | "bionic/wcstod.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1557 | "bionic/wctype.cpp", | 
| Elliott Hughes | c41b560 | 2017-07-27 17:08:08 -0700 | [diff] [blame] | 1558 | "bionic/wcwidth.cpp", | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1559 | "bionic/wmempcpy.cpp", | 
|  | 1560 | ], | 
| Dan Willemsen | 268a673 | 2015-10-15 14:49:45 -0700 | [diff] [blame] | 1561 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1562 | multilib: { | 
|  | 1563 | lib32: { | 
|  | 1564 | // LP32 cruft | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 1565 | srcs: ["bionic/mmap.cpp"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1566 | }, | 
|  | 1567 | }, | 
|  | 1568 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1569 | cppflags: ["-Wold-style-cast"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1570 | local_include_dirs: ["stdio"], | 
|  | 1571 | include_dirs: ["bionic/libstdc++/include"], | 
|  | 1572 | name: "libc_bionic_ndk", | 
| Elliott Hughes | 3f6eee9 | 2016-12-13 23:47:25 +0000 | [diff] [blame] | 1573 | generated_headers: ["generated_android_ids"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1574 | } | 
|  | 1575 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1576 | // ======================================================== | 
|  | 1577 | // libc_pthread.a - pthreads parts that previously lived in | 
|  | 1578 | // libc_bionic.a. Relocated to their own library because | 
|  | 1579 | // they can't be included in libc_ndk.a (as they layout of | 
|  | 1580 | // pthread_t has changed over the years and has ABI | 
|  | 1581 | // compatibility issues). | 
|  | 1582 | // ======================================================== | 
|  | 1583 |  | 
|  | 1584 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1585 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1586 | srcs: [ | 
|  | 1587 | "bionic/pthread_atfork.cpp", | 
|  | 1588 | "bionic/pthread_attr.cpp", | 
| Colin Cross | a35d23d | 2015-11-19 13:32:49 -0800 | [diff] [blame] | 1589 | "bionic/pthread_barrier.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1590 | "bionic/pthread_cond.cpp", | 
|  | 1591 | "bionic/pthread_create.cpp", | 
|  | 1592 | "bionic/pthread_detach.cpp", | 
|  | 1593 | "bionic/pthread_equal.cpp", | 
|  | 1594 | "bionic/pthread_exit.cpp", | 
|  | 1595 | "bionic/pthread_getcpuclockid.cpp", | 
|  | 1596 | "bionic/pthread_getschedparam.cpp", | 
|  | 1597 | "bionic/pthread_gettid_np.cpp", | 
| Elliott Hughes | 7484c21 | 2017-02-02 02:41:38 +0000 | [diff] [blame] | 1598 | "bionic/pthread_internal.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1599 | "bionic/pthread_join.cpp", | 
|  | 1600 | "bionic/pthread_key.cpp", | 
|  | 1601 | "bionic/pthread_kill.cpp", | 
|  | 1602 | "bionic/pthread_mutex.cpp", | 
|  | 1603 | "bionic/pthread_once.cpp", | 
|  | 1604 | "bionic/pthread_rwlock.cpp", | 
|  | 1605 | "bionic/pthread_self.cpp", | 
|  | 1606 | "bionic/pthread_setname_np.cpp", | 
|  | 1607 | "bionic/pthread_setschedparam.cpp", | 
|  | 1608 | "bionic/pthread_sigmask.cpp", | 
| Colin Cross | a35d23d | 2015-11-19 13:32:49 -0800 | [diff] [blame] | 1609 | "bionic/pthread_spinlock.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1610 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1611 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1612 | cppflags: ["-Wold-style-cast"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1613 | include_dirs: ["bionic/libstdc++/include"], | 
|  | 1614 | name: "libc_pthread", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1615 | } | 
|  | 1616 |  | 
|  | 1617 | // ======================================================== | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1618 | // libc_syscalls.a | 
|  | 1619 | // ======================================================== | 
|  | 1620 |  | 
|  | 1621 | cc_library_static { | 
| Colin Cross | 27c43c5 | 2016-04-07 13:27:24 -0700 | [diff] [blame] | 1622 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1623 | arch: { | 
|  | 1624 | arm: { | 
|  | 1625 | srcs: ["arch-arm/syscalls/**/*.S"], | 
|  | 1626 | }, | 
|  | 1627 | arm64: { | 
|  | 1628 | srcs: ["arch-arm64/syscalls/**/*.S"], | 
|  | 1629 | }, | 
|  | 1630 | mips: { | 
|  | 1631 | srcs: ["arch-mips/syscalls/**/*.S"], | 
|  | 1632 | }, | 
|  | 1633 | mips64: { | 
|  | 1634 | srcs: ["arch-mips64/syscalls/**/*.S"], | 
|  | 1635 | }, | 
|  | 1636 | x86: { | 
|  | 1637 | srcs: ["arch-x86/syscalls/**/*.S"], | 
|  | 1638 | }, | 
|  | 1639 | x86_64: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1640 | srcs: ["arch-x86_64/syscalls/**/*.S"], | 
|  | 1641 | }, | 
|  | 1642 | }, | 
|  | 1643 | name: "libc_syscalls", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1644 | } | 
|  | 1645 |  | 
|  | 1646 | // ======================================================== | 
|  | 1647 | // libc_aeabi.a | 
|  | 1648 | // This is an LP32 ARM-only library that needs to be built with -fno-builtin | 
|  | 1649 | // to avoid infinite recursion. For the other architectures we just build an | 
|  | 1650 | // empty library to keep this makefile simple. | 
|  | 1651 | // ======================================================== | 
|  | 1652 |  | 
|  | 1653 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1654 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1655 | arch: { | 
|  | 1656 | arm: { | 
|  | 1657 | srcs: ["arch-arm/bionic/__aeabi.c"], | 
|  | 1658 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1659 | }, | 
|  | 1660 | name: "libc_aeabi", | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1661 | cflags: ["-fno-builtin"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1662 | } | 
|  | 1663 |  | 
|  | 1664 | // ======================================================== | 
|  | 1665 | // libc_ndk.a | 
|  | 1666 | // Compatibility library for the NDK. This library contains | 
|  | 1667 | // all the parts of libc that are safe to statically link. | 
|  | 1668 | // We can't safely statically link things that can only run | 
|  | 1669 | // on a certain version of the OS. Examples include | 
|  | 1670 | // anything that talks to netd (a large portion of the DNS | 
|  | 1671 | // code) and anything that is dependent on the layout of a | 
|  | 1672 | // data structure that has changed across releases (such as | 
|  | 1673 | // pthread_t). | 
|  | 1674 | // ======================================================== | 
|  | 1675 |  | 
|  | 1676 | cc_library_static { | 
|  | 1677 | name: "libc_ndk", | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1678 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1679 | srcs: libc_common_src_files + ["bionic/malloc_common.cpp"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1680 | multilib: { | 
|  | 1681 | lib32: { | 
|  | 1682 | srcs: libc_common_src_files_32, | 
|  | 1683 | }, | 
|  | 1684 | }, | 
|  | 1685 | arch: { | 
|  | 1686 | arm: { | 
|  | 1687 | srcs: [ | 
|  | 1688 | "arch-arm/bionic/exidx_dynamic.c", | 
|  | 1689 | "arch-common/bionic/crtbegin_so.c", | 
|  | 1690 | "arch-arm/bionic/atexit_legacy.c", | 
|  | 1691 | "arch-common/bionic/crtend_so.S", | 
|  | 1692 | ], | 
|  | 1693 | whole_static_libs: ["libc_aeabi"], | 
|  | 1694 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1695 | }, | 
|  | 1696 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1697 | cflags: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1698 | "-fvisibility=hidden", | 
|  | 1699 | "-DLIBC_STATIC", | 
|  | 1700 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1701 |  | 
|  | 1702 | whole_static_libs: [ | 
|  | 1703 | "libc_bionic_ndk", | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 1704 | "libc_fortify", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1705 | "libc_freebsd", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 1706 | "libc_freebsd_large_stack", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1707 | "libc_gdtoa", | 
|  | 1708 | "libc_malloc", | 
|  | 1709 | "libc_netbsd", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 1710 | "libc_openbsd_large_stack", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1711 | "libc_openbsd_ndk", | 
|  | 1712 | "libc_stack_protector", | 
|  | 1713 | "libc_syscalls", | 
|  | 1714 | "libc_tzcode", | 
|  | 1715 | "libm", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1716 | "libjemalloc", | 
| Elliott Hughes | 816fab9 | 2016-05-27 17:57:46 -0700 | [diff] [blame] | 1717 | "libstdc++", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1718 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1719 | } | 
|  | 1720 |  | 
|  | 1721 | // ======================================================== | 
|  | 1722 | // libc_common.a | 
|  | 1723 | // ======================================================== | 
|  | 1724 |  | 
|  | 1725 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1726 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1727 | srcs: libc_common_src_files, | 
|  | 1728 | multilib: { | 
|  | 1729 | lib32: { | 
|  | 1730 | srcs: libc_common_src_files_32, | 
|  | 1731 | }, | 
|  | 1732 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1733 | name: "libc_common", | 
|  | 1734 |  | 
|  | 1735 | whole_static_libs: [ | 
|  | 1736 | "libc_bionic", | 
|  | 1737 | "libc_bionic_ndk", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1738 | "libc_dns", | 
| George Burgess IV | 6cb0687 | 2017-07-21 13:28:42 -0700 | [diff] [blame] | 1739 | "libc_fortify", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1740 | "libc_freebsd", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 1741 | "libc_freebsd_large_stack", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1742 | "libc_gdtoa", | 
|  | 1743 | "libc_malloc", | 
|  | 1744 | "libc_netbsd", | 
|  | 1745 | "libc_openbsd", | 
| Elliott Hughes | 8e547bd | 2016-08-16 15:57:47 -0700 | [diff] [blame] | 1746 | "libc_openbsd_large_stack", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1747 | "libc_openbsd_ndk", | 
|  | 1748 | "libc_pthread", | 
|  | 1749 | "libc_stack_protector", | 
|  | 1750 | "libc_syscalls", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1751 | "libc_tzcode", | 
| Elliott Hughes | 816fab9 | 2016-05-27 17:57:46 -0700 | [diff] [blame] | 1752 | "libstdc++", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1753 | ], | 
|  | 1754 |  | 
|  | 1755 | arch: { | 
|  | 1756 | arm: { | 
|  | 1757 | whole_static_libs: ["libc_aeabi"], | 
|  | 1758 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1759 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1760 | } | 
|  | 1761 |  | 
|  | 1762 | // ======================================================== | 
|  | 1763 | // libc_nomalloc.a | 
|  | 1764 | // ======================================================== | 
|  | 1765 | // | 
|  | 1766 | // This is a version of the static C library that does not | 
|  | 1767 | // include malloc. It's useful in situations when the user wants | 
|  | 1768 | // to provide their own malloc implementation, or wants to | 
|  | 1769 | // explicitly disallow the use of malloc, such as in the | 
|  | 1770 | // dynamic linker. | 
|  | 1771 |  | 
|  | 1772 | cc_library_static { | 
| Dimitry Ivanov | fc0d480 | 2016-12-06 11:10:09 -0800 | [diff] [blame] | 1773 | name: "libc_nomalloc", | 
|  | 1774 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1775 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1776 |  | 
|  | 1777 | arch: { | 
|  | 1778 | arm: { | 
|  | 1779 | srcs: ["arch-arm/bionic/exidx_static.c"], | 
|  | 1780 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1781 | }, | 
|  | 1782 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1783 | cflags: ["-DLIBC_STATIC"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1784 |  | 
| Colin Cross | a3f9fca | 2016-01-11 13:20:55 -0800 | [diff] [blame] | 1785 | whole_static_libs: [ | 
|  | 1786 | "libc_common", | 
|  | 1787 | "libc_init_static", | 
|  | 1788 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1789 | } | 
|  | 1790 |  | 
|  | 1791 | // ======================================================== | 
|  | 1792 | // libc_malloc.a: the _prefixed_ malloc functions (like dlcalloc). | 
|  | 1793 | // ======================================================== | 
|  | 1794 | cc_library_static { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1795 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1796 | srcs: ["bionic/jemalloc_wrapper.cpp"], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1797 | cflags: ["-fvisibility=hidden"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1798 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1799 | name: "libc_malloc", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1800 | } | 
|  | 1801 |  | 
|  | 1802 | // ======================================================== | 
|  | 1803 | // libc.a + libc.so | 
|  | 1804 | // ======================================================== | 
|  | 1805 | cc_library { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1806 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1807 | name: "libc", | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1808 | product_variables: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1809 | platform_sdk_version: { | 
|  | 1810 | asflags: ["-DPLATFORM_SDK_VERSION=%d"], | 
|  | 1811 | }, | 
|  | 1812 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1813 | static: { | 
|  | 1814 | srcs: [ | 
|  | 1815 | "bionic/dl_iterate_phdr_static.cpp", | 
| Elliott Hughes | a57ca0d | 2016-11-17 18:18:08 -0800 | [diff] [blame] | 1816 | "bionic/icu_static.cpp", | 
| Dan Willemsen | 0c65708 | 2016-05-12 01:43:07 -0700 | [diff] [blame] | 1817 | "bionic/malloc_common.cpp", | 
| Dan Willemsen | 3e62171 | 2016-02-03 21:48:08 -0800 | [diff] [blame] | 1818 | "bionic/libc_init_static.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1819 | ], | 
|  | 1820 | cflags: ["-DLIBC_STATIC"], | 
| Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 1821 | whole_static_libs: ["libc_init_static"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1822 | }, | 
|  | 1823 | shared: { | 
|  | 1824 | srcs: [ | 
|  | 1825 | "arch-common/bionic/crtbegin_so.c", | 
|  | 1826 | "arch-common/bionic/crtbrand.S", | 
| Elliott Hughes | a57ca0d | 2016-11-17 18:18:08 -0800 | [diff] [blame] | 1827 | "bionic/icu.cpp", | 
| Dan Willemsen | 0c65708 | 2016-05-12 01:43:07 -0700 | [diff] [blame] | 1828 | "bionic/malloc_common.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1829 | "bionic/NetdClient.cpp", | 
|  | 1830 | "arch-common/bionic/crtend_so.S", | 
|  | 1831 | ], | 
| Stephen Crane | f4b1cbd | 2017-05-09 14:27:43 -0700 | [diff] [blame] | 1832 | whole_static_libs: ["libc_init_dynamic"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1833 | }, | 
|  | 1834 |  | 
|  | 1835 | required: ["tzdata"], | 
|  | 1836 |  | 
|  | 1837 | // Leave the symbols in the shared library so that stack unwinders can produce | 
|  | 1838 | // meaningful name resolution. | 
| Colin Cross | 37f3632 | 2016-04-25 14:09:13 -0700 | [diff] [blame] | 1839 | strip: { | 
|  | 1840 | keep_symbols: true, | 
|  | 1841 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1842 |  | 
| Colin Cross | 4ce94d2 | 2016-11-15 13:15:43 -0800 | [diff] [blame] | 1843 | // Do not pack libc.so relocations; see http://b/20645321 for details. | 
|  | 1844 | pack_relocations: false, | 
|  | 1845 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1846 | // WARNING: The only library libc.so should depend on is libdl.so!  If you add other libraries, | 
|  | 1847 | // make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries.  This | 
|  | 1848 | // ensures that symbols that are pulled into those new libraries from libgcc.a are not declared | 
|  | 1849 | // external; if that were the case, then libc would not pull those symbols from libgcc.a as it | 
|  | 1850 | // should, instead relying on the external symbols from the dependent libraries.  That would | 
|  | 1851 | // create a "cloaked" dependency on libgcc.a in libc though the libraries, which is not what | 
|  | 1852 | // you wanted! | 
|  | 1853 |  | 
|  | 1854 | shared_libs: ["libdl"], | 
| Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 1855 | whole_static_libs: ["libc_common", "libjemalloc"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1856 |  | 
|  | 1857 | nocrt: true, | 
|  | 1858 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1859 | arch: { | 
|  | 1860 | arm: { | 
| Dmitriy Ivanov | 280d546 | 2015-09-28 10:14:17 -0700 | [diff] [blame] | 1861 | //TODO: This is to work around b/24465209. Remove after root cause is fixed | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1862 | ldflags: ["-Wl,--hash-style=both"], | 
|  | 1863 |  | 
| Dan Willemsen | 9e6f98f | 2015-11-03 14:30:57 -0800 | [diff] [blame] | 1864 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1865 | version_script: "libc.arm.map", | 
|  | 1866 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1867 | shared: { | 
| Dan Willemsen | 0c65708 | 2016-05-12 01:43:07 -0700 | [diff] [blame] | 1868 | srcs: [ | 
|  | 1869 | "arch-arm/bionic/exidx_dynamic.c", | 
|  | 1870 |  | 
|  | 1871 | // special for arm | 
|  | 1872 | "arch-arm/bionic/atexit_legacy.c", | 
|  | 1873 | ], | 
|  | 1874 | // special for arm | 
|  | 1875 | cflags: ["-DCRT_LEGACY_WORKAROUND"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1876 | }, | 
|  | 1877 | static: { | 
|  | 1878 | srcs: ["arch-arm/bionic/exidx_static.c"], | 
|  | 1879 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1880 | }, | 
| Dan Willemsen | 9e6f98f | 2015-11-03 14:30:57 -0800 | [diff] [blame] | 1881 | arm64: { | 
|  | 1882 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1883 | version_script: "libc.arm64.map", | 
|  | 1884 | }, | 
|  | 1885 | mips: { | 
|  | 1886 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1887 | version_script: "libc.mips.map", | 
|  | 1888 | }, | 
|  | 1889 | mips64: { | 
|  | 1890 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1891 | version_script: "libc.mips64.map", | 
|  | 1892 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1893 | x86: { | 
| Dmitriy Ivanov | 280d546 | 2015-09-28 10:14:17 -0700 | [diff] [blame] | 1894 | //TODO: This is to work around b/24465209. Remove after root cause is fixed | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1895 | ldflags: ["-Wl,--hash-style=both"], | 
| Dan Willemsen | 9e6f98f | 2015-11-03 14:30:57 -0800 | [diff] [blame] | 1896 |  | 
|  | 1897 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1898 | version_script: "libc.x86.map", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1899 | }, | 
|  | 1900 | x86_64: { | 
| Dan Willemsen | 9e6f98f | 2015-11-03 14:30:57 -0800 | [diff] [blame] | 1901 | // Don't re-export new/delete and friends, even if the compiler really wants to. | 
|  | 1902 | version_script: "libc.x86_64.map", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1903 | }, | 
|  | 1904 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1905 | } | 
|  | 1906 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1907 | // ======================================================== | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1908 | // libstdc++.so + libstdc++.a | 
|  | 1909 | // ======================================================== | 
|  | 1910 | cc_library { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1911 | defaults: ["libc_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1912 | include_dirs: ["bionic/libstdc++/include"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1913 | srcs: [ | 
|  | 1914 | "bionic/__cxa_guard.cpp", | 
|  | 1915 | "bionic/__cxa_pure_virtual.cpp", | 
|  | 1916 | "bionic/new.cpp", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1917 | ], | 
|  | 1918 | name: "libstdc++", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1919 | system_shared_libs: ["libc"], | 
| Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 1920 | static_libs: ["libasync_safe"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1921 |  | 
| Dimitry Ivanov | 6cc8d47 | 2016-07-28 13:52:17 -0700 | [diff] [blame] | 1922 | //TODO (dimitry): This is to work around b/24465209. Remove after root cause is fixed | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1923 | arch: { | 
|  | 1924 | arm: { | 
|  | 1925 | ldflags: ["-Wl,--hash-style=both"], | 
| Dimitry Ivanov | 6cc8d47 | 2016-07-28 13:52:17 -0700 | [diff] [blame] | 1926 | version_script: "libstdc++.arm.map", | 
|  | 1927 | }, | 
|  | 1928 | arm64: { | 
|  | 1929 | version_script: "libstdc++.arm64.map", | 
|  | 1930 | }, | 
|  | 1931 | mips: { | 
|  | 1932 | version_script: "libstdc++.mips.map", | 
|  | 1933 | }, | 
|  | 1934 | mips64: { | 
|  | 1935 | version_script: "libstdc++.mips64.map", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1936 | }, | 
|  | 1937 | x86: { | 
|  | 1938 | ldflags: ["-Wl,--hash-style=both"], | 
| Dimitry Ivanov | 6cc8d47 | 2016-07-28 13:52:17 -0700 | [diff] [blame] | 1939 | version_script: "libstdc++.x86.map", | 
|  | 1940 | }, | 
|  | 1941 | x86_64: { | 
|  | 1942 | version_script: "libstdc++.x86_64.map", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1943 | }, | 
|  | 1944 | }, | 
|  | 1945 | } | 
|  | 1946 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1947 | cc_defaults { | 
|  | 1948 | name: "crt_defaults", | 
| Dan Willemsen | 7ec52b1 | 2016-11-28 17:02:25 -0800 | [diff] [blame] | 1949 | defaults: ["linux_bionic_supported"], | 
| Dan Willemsen | 230a7a4 | 2017-04-07 14:09:05 -0700 | [diff] [blame] | 1950 | vendor_available: true, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1951 |  | 
|  | 1952 | no_default_compiler_flags: true, | 
|  | 1953 |  | 
| Elliott Hughes | 82e950c | 2017-07-27 16:39:02 -0700 | [diff] [blame] | 1954 | cflags: ["-Wno-gcc-compat", "-Werror"], | 
|  | 1955 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1956 | arch: { | 
|  | 1957 | arm: { | 
|  | 1958 | local_include_dirs: ["arch-arm/include"], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1959 | }, | 
|  | 1960 | arm64: { | 
|  | 1961 | local_include_dirs: ["arch-arm64/include"], | 
|  | 1962 | }, | 
|  | 1963 | mips: { | 
|  | 1964 | local_include_dirs: ["arch-mips/include"], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1965 | }, | 
|  | 1966 | mips64: { | 
|  | 1967 | local_include_dirs: ["arch-mips64/include"], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1968 | }, | 
|  | 1969 | x86: { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1970 | local_include_dirs: ["arch-x86/include"], | 
|  | 1971 | }, | 
|  | 1972 | x86_64: { | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1973 | local_include_dirs: ["arch-x86_64/include"], | 
|  | 1974 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1975 | }, | 
| Elliott Hughes | b348d5c | 2017-07-24 16:53:11 -0700 | [diff] [blame] | 1976 | clang: true, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1977 | } | 
|  | 1978 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1979 | cc_defaults { | 
|  | 1980 | name: "crt_so_defaults", | 
|  | 1981 |  | 
| Elliott Hughes | 82e950c | 2017-07-27 16:39:02 -0700 | [diff] [blame] | 1982 | cflags: ["-Wno-gcc-compat", "-Werror"], | 
|  | 1983 |  | 
| Dan Willemsen | 230a7a4 | 2017-04-07 14:09:05 -0700 | [diff] [blame] | 1984 | vendor_available: true, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 1985 | arch: { | 
|  | 1986 | mips: { | 
|  | 1987 | cflags: ["-fPIC"], | 
|  | 1988 | }, | 
|  | 1989 | mips64: { | 
|  | 1990 | cflags: ["-fPIC"], | 
|  | 1991 | }, | 
|  | 1992 | x86: { | 
|  | 1993 | cflags: ["-fPIC"], | 
|  | 1994 | }, | 
|  | 1995 | x86_64: { | 
|  | 1996 | cflags: ["-fPIC"], | 
|  | 1997 | }, | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 1998 | }, | 
|  | 1999 | } | 
|  | 2000 |  | 
| Dan Willemsen | a3ed901 | 2017-04-04 15:51:26 -0700 | [diff] [blame] | 2001 | // crt obj files | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2002 | cc_object { | 
|  | 2003 | name: "crtbrand", | 
| Dan Willemsen | a3ed901 | 2017-04-04 15:51:26 -0700 | [diff] [blame] | 2004 | // crtbrand.c needs <stdint.h> and a #define for the platform SDK version. | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2005 | local_include_dirs: ["include"], | 
|  | 2006 | product_variables: { | 
|  | 2007 | platform_sdk_version: { | 
|  | 2008 | asflags: ["-DPLATFORM_SDK_VERSION=%d"], | 
|  | 2009 | }, | 
|  | 2010 | }, | 
|  | 2011 | srcs: ["arch-common/bionic/crtbrand.S"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2012 |  | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 2013 | defaults: [ | 
|  | 2014 | "crt_defaults", | 
|  | 2015 | "crt_so_defaults", | 
|  | 2016 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2017 | } | 
|  | 2018 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2019 | cc_object { | 
|  | 2020 | name: "crtbegin_so1", | 
|  | 2021 | local_include_dirs: ["include"], | 
|  | 2022 | srcs: ["arch-common/bionic/crtbegin_so.c"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2023 |  | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 2024 | defaults: [ | 
|  | 2025 | "crt_defaults", | 
|  | 2026 | "crt_so_defaults", | 
|  | 2027 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2028 | } | 
|  | 2029 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2030 | cc_object { | 
|  | 2031 | name: "crtbegin_so", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2032 |  | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 2033 | defaults: [ | 
|  | 2034 | "crt_defaults", | 
|  | 2035 | "crt_so_defaults", | 
|  | 2036 | ], | 
| Colin Cross | 77d57bf | 2016-04-11 14:34:18 -0700 | [diff] [blame] | 2037 | objs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2038 | "crtbegin_so1", | 
|  | 2039 | "crtbrand", | 
|  | 2040 | ], | 
|  | 2041 | } | 
|  | 2042 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2043 | cc_object { | 
|  | 2044 | name: "crtend_so", | 
|  | 2045 | local_include_dirs: ["include"], | 
|  | 2046 | srcs: ["arch-common/bionic/crtend_so.S"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2047 |  | 
| Colin Cross | 6ab8f89 | 2015-11-23 14:12:15 -0800 | [diff] [blame] | 2048 | defaults: [ | 
|  | 2049 | "crt_defaults", | 
|  | 2050 | "crt_so_defaults", | 
|  | 2051 | ], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2052 | } | 
|  | 2053 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2054 | cc_object { | 
|  | 2055 | name: "crtbegin_static1", | 
|  | 2056 | local_include_dirs: ["include"], | 
|  | 2057 | srcs: ["arch-common/bionic/crtbegin.c"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2058 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2059 | arch: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2060 | mips: { | 
|  | 2061 | srcs: [ | 
|  | 2062 | "arch-mips/bionic/crtbegin.c", | 
|  | 2063 | ], | 
|  | 2064 | exclude_srcs: [ | 
|  | 2065 | "arch-common/bionic/crtbegin.c", | 
|  | 2066 | ], | 
|  | 2067 | }, | 
|  | 2068 | mips64: { | 
|  | 2069 | srcs: [ | 
|  | 2070 | "arch-mips64/bionic/crtbegin.c", | 
|  | 2071 | ], | 
|  | 2072 | exclude_srcs: [ | 
|  | 2073 | "arch-common/bionic/crtbegin.c", | 
|  | 2074 | ], | 
|  | 2075 | }, | 
|  | 2076 | }, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2077 |  | 
|  | 2078 | defaults: ["crt_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2079 | } | 
|  | 2080 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2081 | cc_object { | 
|  | 2082 | name: "crtbegin_static", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2083 |  | 
| Colin Cross | 77d57bf | 2016-04-11 14:34:18 -0700 | [diff] [blame] | 2084 | objs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2085 | "crtbegin_static1", | 
|  | 2086 | "crtbrand", | 
|  | 2087 | ], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2088 | defaults: ["crt_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2089 | } | 
|  | 2090 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2091 | cc_object { | 
|  | 2092 | name: "crtbegin_dynamic1", | 
|  | 2093 | local_include_dirs: ["include"], | 
|  | 2094 | srcs: ["arch-common/bionic/crtbegin.c"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2095 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2096 | arch: { | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2097 | mips: { | 
|  | 2098 | srcs: [ | 
|  | 2099 | "arch-mips/bionic/crtbegin.c", | 
|  | 2100 | ], | 
|  | 2101 | exclude_srcs: [ | 
|  | 2102 | "arch-common/bionic/crtbegin.c", | 
|  | 2103 | ], | 
|  | 2104 | }, | 
|  | 2105 | mips64: { | 
|  | 2106 | srcs: [ | 
|  | 2107 | "arch-mips64/bionic/crtbegin.c", | 
|  | 2108 | ], | 
|  | 2109 | exclude_srcs: [ | 
|  | 2110 | "arch-common/bionic/crtbegin.c", | 
|  | 2111 | ], | 
|  | 2112 | }, | 
|  | 2113 | }, | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2114 | defaults: ["crt_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2115 | } | 
|  | 2116 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2117 | cc_object { | 
|  | 2118 | name: "crtbegin_dynamic", | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2119 |  | 
| Colin Cross | 77d57bf | 2016-04-11 14:34:18 -0700 | [diff] [blame] | 2120 | objs: [ | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2121 | "crtbegin_dynamic1", | 
|  | 2122 | "crtbrand", | 
|  | 2123 | ], | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2124 | defaults: ["crt_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2125 | } | 
|  | 2126 |  | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2127 | cc_object { | 
|  | 2128 | // We rename crtend.o to crtend_android.o to avoid a | 
|  | 2129 | // name clash between gcc and bionic. | 
|  | 2130 | name: "crtend_android", | 
|  | 2131 | local_include_dirs: ["include"], | 
|  | 2132 | srcs: ["arch-common/bionic/crtend.S"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2133 |  | 
| Colin Cross | 50c21ab | 2015-10-31 23:03:05 -0700 | [diff] [blame] | 2134 | defaults: ["crt_defaults"], | 
| Dan Willemsen | 208ae17 | 2015-09-16 16:33:27 -0700 | [diff] [blame] | 2135 | } | 
| Colin Cross | baa4899 | 2016-07-13 11:15:21 -0700 | [diff] [blame] | 2136 |  | 
| Dan Albert | 22805ea | 2017-03-22 15:28:05 -0700 | [diff] [blame] | 2137 | preprocessed_ndk_headers { | 
|  | 2138 | name: "common_libc", | 
|  | 2139 | from: "include", | 
|  | 2140 | to: "", | 
|  | 2141 | license: "NOTICE", | 
|  | 2142 | } | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2143 |  | 
|  | 2144 | ndk_headers { | 
| Dan Albert | 063e86a | 2016-11-29 11:09:12 -0800 | [diff] [blame] | 2145 | name: "libc_uapi", | 
|  | 2146 | from: "kernel/uapi", | 
|  | 2147 | to: "", | 
|  | 2148 | srcs: [ | 
|  | 2149 | "kernel/uapi/asm-generic/**/*.h", | 
|  | 2150 | "kernel/uapi/drm/**/*.h", | 
|  | 2151 | "kernel/uapi/linux/**/*.h", | 
|  | 2152 | "kernel/uapi/misc/**/*.h", | 
|  | 2153 | "kernel/uapi/mtd/**/*.h", | 
|  | 2154 | "kernel/uapi/rdma/**/*.h", | 
|  | 2155 | "kernel/uapi/scsi/**/*.h", | 
|  | 2156 | "kernel/uapi/sound/**/*.h", | 
|  | 2157 | "kernel/uapi/video/**/*.h", | 
|  | 2158 | "kernel/uapi/xen/**/*.h", | 
|  | 2159 | ], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2160 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2161 | } | 
|  | 2162 |  | 
|  | 2163 | ndk_headers { | 
| Elliott Hughes | 2fad0d5 | 2017-04-27 16:26:55 -0700 | [diff] [blame] | 2164 | name: "libc_kernel_android_uapi_linux", | 
| Dan Albert | bae16ef | 2016-09-14 17:15:48 -0700 | [diff] [blame] | 2165 | from: "kernel/android/uapi/linux", | 
|  | 2166 | to: "linux", | 
|  | 2167 | srcs: ["kernel/android/uapi/linux/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2168 | license: "NOTICE", | 
| Dan Albert | bae16ef | 2016-09-14 17:15:48 -0700 | [diff] [blame] | 2169 | } | 
|  | 2170 |  | 
|  | 2171 | ndk_headers { | 
| Elliott Hughes | 2fad0d5 | 2017-04-27 16:26:55 -0700 | [diff] [blame] | 2172 | name: "libc_kernel_android_scsi", | 
| Elliott Hughes | 5059939 | 2017-05-25 17:13:32 -0700 | [diff] [blame] | 2173 | from: "kernel/android/scsi/scsi", | 
| Elliott Hughes | 2fad0d5 | 2017-04-27 16:26:55 -0700 | [diff] [blame] | 2174 | to: "scsi", | 
|  | 2175 | srcs: ["kernel/android/scsi/**/*.h"], | 
|  | 2176 | license: "NOTICE", | 
|  | 2177 | } | 
|  | 2178 |  | 
|  | 2179 | ndk_headers { | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2180 | name: "libc_asm_arm", | 
|  | 2181 | from: "kernel/uapi/asm-arm", | 
|  | 2182 | to: "arm-linux-androideabi", | 
|  | 2183 | srcs: ["kernel/uapi/asm-arm/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2184 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2185 | } | 
|  | 2186 |  | 
|  | 2187 | ndk_headers { | 
|  | 2188 | name: "libc_asm_arm64", | 
|  | 2189 | from: "kernel/uapi/asm-arm64", | 
|  | 2190 | to: "aarch64-linux-android", | 
|  | 2191 | srcs: ["kernel/uapi/asm-arm64/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2192 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2193 | } | 
|  | 2194 |  | 
|  | 2195 | ndk_headers { | 
|  | 2196 | name: "libc_asm_mips", | 
|  | 2197 | from: "kernel/uapi/asm-mips", | 
|  | 2198 | to: "mipsel-linux-android", | 
|  | 2199 | srcs: ["kernel/uapi/asm-mips/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2200 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2201 | } | 
|  | 2202 |  | 
|  | 2203 | ndk_headers { | 
|  | 2204 | name: "libc_asm_mips64", | 
|  | 2205 | from: "kernel/uapi/asm-mips", | 
|  | 2206 | to: "mips64el-linux-android", | 
|  | 2207 | srcs: ["kernel/uapi/asm-mips/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2208 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2209 | } | 
|  | 2210 |  | 
|  | 2211 | ndk_headers { | 
|  | 2212 | name: "libc_asm_x86", | 
|  | 2213 | from: "kernel/uapi/asm-x86", | 
|  | 2214 | to: "i686-linux-android", | 
|  | 2215 | srcs: ["kernel/uapi/asm-x86/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2216 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2217 | } | 
|  | 2218 |  | 
|  | 2219 | ndk_headers { | 
|  | 2220 | name: "libc_asm_x86_64", | 
|  | 2221 | from: "kernel/uapi/asm-x86", | 
|  | 2222 | to: "x86_64-linux-android", | 
|  | 2223 | srcs: ["kernel/uapi/asm-x86/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2224 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2225 | } | 
|  | 2226 |  | 
|  | 2227 | ndk_headers { | 
|  | 2228 | name: "libc_machine_arm", | 
|  | 2229 | from: "arch-arm/include", | 
|  | 2230 | to: "arm-linux-androideabi", | 
|  | 2231 | srcs: ["arch-arm/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2232 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2233 | } | 
|  | 2234 |  | 
|  | 2235 | ndk_headers { | 
|  | 2236 | name: "libc_machine_arm64", | 
|  | 2237 | from: "arch-arm64/include", | 
|  | 2238 | to: "aarch64-linux-android", | 
|  | 2239 | srcs: ["arch-arm64/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2240 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2241 | } | 
|  | 2242 |  | 
|  | 2243 | ndk_headers { | 
|  | 2244 | name: "libc_machine_mips", | 
|  | 2245 | from: "arch-mips/include", | 
|  | 2246 | to: "mipsel-linux-android", | 
|  | 2247 | srcs: ["arch-mips/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2248 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2249 | } | 
|  | 2250 |  | 
|  | 2251 | ndk_headers { | 
|  | 2252 | name: "libc_machine_mips64", | 
|  | 2253 | from: "arch-mips/include", | 
|  | 2254 | to: "mips64el-linux-android", | 
|  | 2255 | srcs: ["arch-mips/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2256 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2257 | } | 
|  | 2258 |  | 
|  | 2259 | ndk_headers { | 
|  | 2260 | name: "libc_machine_x86", | 
|  | 2261 | from: "arch-x86/include", | 
|  | 2262 | to: "i686-linux-android", | 
|  | 2263 | srcs: ["arch-x86/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2264 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2265 | } | 
|  | 2266 |  | 
|  | 2267 | ndk_headers { | 
|  | 2268 | name: "libc_machine_x86_64", | 
|  | 2269 | from: "arch-x86_64/include", | 
|  | 2270 | to: "x86_64-linux-android", | 
|  | 2271 | srcs: ["arch-x86_64/include/**/*.h"], | 
| Dan Albert | 9259265 | 2016-10-20 01:42:54 -0700 | [diff] [blame] | 2272 | license: "NOTICE", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2273 | } | 
|  | 2274 |  | 
|  | 2275 | ndk_library { | 
| Dan Willemsen | 51a9bf1 | 2017-04-07 14:09:18 -0700 | [diff] [blame] | 2276 | name: "libc", | 
| Dan Albert | 4238a35 | 2016-06-28 11:18:05 -0700 | [diff] [blame] | 2277 | symbol_file: "libc.map.txt", | 
|  | 2278 | first_version: "9", | 
|  | 2279 | } | 
|  | 2280 |  | 
| Dan Willemsen | b8f7fde | 2017-03-20 14:07:47 -0700 | [diff] [blame] | 2281 | llndk_library { | 
| Dan Willemsen | 51a9bf1 | 2017-04-07 14:09:18 -0700 | [diff] [blame] | 2282 | name: "libc", | 
| Dan Willemsen | b8f7fde | 2017-03-20 14:07:47 -0700 | [diff] [blame] | 2283 | symbol_file: "libc.map.txt", | 
|  | 2284 | export_headers_as_system: true, | 
|  | 2285 | export_preprocessed_headers: ["include"], | 
|  | 2286 | arch: { | 
|  | 2287 | arm: { | 
|  | 2288 | export_include_dirs: [ | 
|  | 2289 | "arch-arm/include", | 
|  | 2290 | "kernel/uapi", | 
|  | 2291 | "kernel/uapi/asm-arm", | 
|  | 2292 | "kernel/android/uapi", | 
|  | 2293 | ], | 
|  | 2294 | }, | 
|  | 2295 | arm64: { | 
|  | 2296 | export_include_dirs: [ | 
|  | 2297 | "arch-arm64/include", | 
|  | 2298 | "kernel/uapi", | 
|  | 2299 | "kernel/uapi/asm-arm64", | 
|  | 2300 | "kernel/android/uapi", | 
|  | 2301 | ], | 
|  | 2302 | }, | 
|  | 2303 | mips: { | 
|  | 2304 | export_include_dirs: [ | 
|  | 2305 | "arch-mips/include", | 
|  | 2306 | "kernel/uapi", | 
|  | 2307 | "kernel/uapi/asm-mips", | 
|  | 2308 | "kernel/android/uapi", | 
|  | 2309 | ], | 
|  | 2310 | }, | 
|  | 2311 | mips64: { | 
|  | 2312 | export_include_dirs: [ | 
|  | 2313 | "arch-mips64/include", | 
|  | 2314 | "kernel/uapi", | 
|  | 2315 | "kernel/uapi/asm-mips", | 
|  | 2316 | "kernel/android/uapi", | 
|  | 2317 | ], | 
|  | 2318 | }, | 
|  | 2319 | x86: { | 
|  | 2320 | export_include_dirs: [ | 
|  | 2321 | "arch-x86/include", | 
|  | 2322 | "kernel/uapi", | 
|  | 2323 | "kernel/uapi/asm-x86", | 
|  | 2324 | "kernel/android/uapi", | 
|  | 2325 | ], | 
|  | 2326 | }, | 
|  | 2327 | x86_64: { | 
|  | 2328 | export_include_dirs: [ | 
|  | 2329 | "arch-x86_64/include", | 
|  | 2330 | "kernel/uapi", | 
|  | 2331 | "kernel/uapi/asm-x86", | 
|  | 2332 | "kernel/android/uapi", | 
|  | 2333 | ], | 
|  | 2334 | }, | 
|  | 2335 | }, | 
|  | 2336 | } | 
|  | 2337 |  | 
| Dan Albert | df31aff | 2016-10-06 15:50:41 -0700 | [diff] [blame] | 2338 | ndk_library { | 
| Dan Willemsen | 51a9bf1 | 2017-04-07 14:09:18 -0700 | [diff] [blame] | 2339 | name: "libstdc++", | 
| Dan Albert | df31aff | 2016-10-06 15:50:41 -0700 | [diff] [blame] | 2340 | symbol_file: "libstdc++.map.txt", | 
|  | 2341 | first_version: "9", | 
|  | 2342 | } | 
|  | 2343 |  | 
| Elliott Hughes | 926add1 | 2017-03-02 18:56:12 -0800 | [diff] [blame] | 2344 | subdirs = ["*"] |