Android.mk revision 7f3a272ae327c647db4caeaea2a3c7af50bd73b5
1e210488e0d4082b9a0c55195c22191f29ed56bf8Serban ConstantinescuLOCAL_PATH := $(call my-dir) 21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 3d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris# Make everything depend on any changes to included makefiles. 4f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies := $(LOCAL_PATH)/Android.mk 5f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 6f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_ARCH 7f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := 8f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk 9f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \ 10f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk 11f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 12f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 13f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 14f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_2ND_ARCH 15f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX) 16f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk 17f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := 18f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \ 19f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk 20f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif 21f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 22f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crt obj files 23f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ======================================================== 24f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crtbrand.c needs <stdint.h> and a #define for the platform SDK version. 25f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_crt_target_cflags := \ 26f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -I$(LOCAL_PATH)/include \ 27f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \ 28f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 29f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := 30f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk 31f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 32f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX) 33f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk 34f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := 35f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif 36d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris 37ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the common source files for all the libc instances 38ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================= 391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files := \ 4076c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/arc4random.c \ 4176c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/bindresvport.c \ 4276c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/clearenv.c \ 4376c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/daemon.c \ 4476c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/err.c \ 4576c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ether_aton.c \ 4676c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ether_ntoa.c \ 4776c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/fdprintf.c \ 4876c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ftime.c \ 4976c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/fts.c \ 5076c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/getdtablesize.c \ 5176c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/gethostname.c \ 5276c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/getpriority.c \ 5376c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/getpt.c \ 5476c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/if_indextoname.c \ 5576c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/if_nametoindex.c \ 5676c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/initgroups.c \ 5776c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ioctl.c \ 5876c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/isatty.c \ 5976c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/issetugid.c \ 6076c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/md5.c \ 6176c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/memmem.c \ 6276c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/pathconf.c \ 6376c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ptsname.c \ 6476c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/ptsname_r.c \ 6576c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/pututline.c \ 6676c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/sched_cpualloc.c \ 6776c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/sched_cpucount.c \ 6876c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/semaphore.c \ 6976c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/sigblock.c \ 7076c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/siginterrupt.c \ 7176c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/sigsetmask.c \ 7276c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/strntoimax.c \ 7376c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/strntoumax.c \ 7476c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/strtotimeval.c \ 7576c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/system_properties_compat.c \ 7676c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/time64.c \ 7776c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/unlockpt.c \ 78aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/findfp.c \ 79aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/fread.c \ 80aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/fvwrite.c \ 81aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/snprintf.c\ 82aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/sprintf.c \ 83aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/vfprintf.c \ 84aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/atexit.c \ 85aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/ctype_.c \ 86aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/getenv.c \ 87aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/putenv.c \ 88aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/setenv.c \ 89aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/strtod.c \ 90aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes unistd/syslog.c \ 91eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 9259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris# Fortify implementations of libc functions. 9359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferrislibc_common_src_files += \ 9490201d5eca050414d50a433866ccb580415bb0d4Nick Kralevich bionic/__FD_chk.cpp \ 9559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__fgets_chk.cpp \ 9659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__memmove_chk.cpp \ 97b036b5ca36c1e12b075909b3eca6eab73ee611cfNick Kralevich bionic/__read_chk.cpp \ 9860f4f9a5b99a0a66817f50edfc2194a49f8b5146Nick Kralevich bionic/__recvfrom_chk.cpp \ 9959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strchr_chk.cpp \ 10059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlcat_chk.cpp \ 10159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlcpy_chk.cpp \ 10259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlen_chk.cpp \ 10359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strncat_chk.cpp \ 10459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strncpy_chk.cpp \ 10559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strrchr_chk.cpp \ 10659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__umask_chk.cpp \ 10759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__vsnprintf_chk.cpp \ 10859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__vsprintf_chk.cpp \ 10959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris 11029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hugheslibc_bionic_src_files := \ 11161e699a133a4807fe878a6cb0d7190d7c96e21f8Elliott Hughes bionic/abort.cpp \ 112f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/access.cpp \ 113063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/assert.cpp \ 1145a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes bionic/atof.cpp \ 115a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes bionic/__bionic_name_mem.cpp \ 11611952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/bionic_time_conversions.cpp \ 117428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes bionic/brk.cpp \ 118f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/chmod.cpp \ 119f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/chown.cpp \ 120cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes bionic/clock.cpp \ 12136d6188f8cd8b948fb797f11d9620d63d0c2215aElliott Hughes bionic/clone.cpp \ 122c30396f5f225e0b5a83a35432e2d82a7063cfdb9David 'Digit' Turner bionic/dirent.cpp \ 123cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/dup2.cpp \ 124cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/epoll_create.cpp \ 12511952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/epoll_pwait.cpp \ 126aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/epoll_wait.cpp \ 1272a0b873065edb304fa2d1c54f8de663ea638b8abElliott Hughes bionic/__errno.cpp \ 1289b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng bionic/eventfd_read.cpp \ 1299b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng bionic/eventfd_write.cpp \ 130bf425680e484486803bf21e4c4cd1e3f36614a3cElliott Hughes bionic/ffs.cpp \ 13153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes bionic/flockfile.cpp \ 132232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/fork.cpp \ 133d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1Elliott Hughes bionic/futimens.cpp \ 1342c5153b043b44e9935a334ae9b2d5a4bc5258b40Nick Kralevich bionic/getauxval.cpp \ 135063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/getcwd.cpp \ 136247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/getpgrp.cpp \ 137cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/inotify_init.cpp \ 138f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/lchown.cpp \ 139fe317a3775e16d466bb884a8e054fd77f7087bb3Calin Juravle bionic/lfs64_support.cpp \ 14042b2c6a5eed5e4ef35315b8cd32d1355f12a69b6Elliott Hughes bionic/libc_init_common.cpp \ 1418f2a5a0b40fc82126c691d5c30131d908772aab7Elliott Hughes bionic/libc_logging.cpp \ 14258b575485c446f9d76ee00f67516ed42cf017769Elliott Hughes bionic/libgen.cpp \ 143f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/link.cpp \ 144f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/lstat.cpp \ 145f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/mkdir.cpp \ 146594b1a4af204aa9de2b4913182f4556e38d71648Elliott Hughes bionic/mkfifo.cpp \ 147f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/mknod.cpp \ 148f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/open.cpp \ 14911952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/pause.cpp \ 150cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/pipe.cpp \ 15111952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/poll.cpp \ 152f64b8ea09db3bdd84eed59f7721301743332b3feElliott Hughes bionic/posix_fallocate.cpp \ 1534b558f50a42c97d461f1dede5aaaae490ea99e2eElliott Hughes bionic/posix_timers.cpp \ 154c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_atfork.cpp \ 1553e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes bionic/pthread_attr.cpp \ 156c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_cond.cpp \ 157c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_create.cpp \ 1589d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_detach.cpp \ 1599d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_equal.cpp \ 160c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_exit.cpp \ 1619d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_getcpuclockid.cpp \ 1629d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_getschedparam.cpp \ 1639d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_internals.cpp \ 1649d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_join.cpp \ 165c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_key.cpp \ 1669d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_kill.cpp \ 167c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_mutex.cpp \ 168c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_once.cpp \ 169c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_rwlock.cpp \ 1709d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_self.cpp \ 1713e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes bionic/pthread_setname_np.cpp \ 1729d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_setschedparam.cpp \ 173c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes bionic/pthread_sigmask.cpp \ 174c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/ptrace.cpp \ 175d8a5a6f513c6fa99229e9c82c5c308c7cd6b3d54Chris Dearman bionic/raise.cpp \ 176f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/readlink.cpp \ 177a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes bionic/reboot.cpp \ 178247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/recv.cpp \ 179f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/rename.cpp \ 180f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/rmdir.cpp \ 181428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes bionic/sbrk.cpp \ 182701bec2af33feaa9dddf12ccf8e4c714441b7f2eElliott Hughes bionic/scandir.cpp \ 1834ca685e36e9d7f53c135eba2b4b8ece152129dbeKito Cheng bionic/sched_getaffinity.cpp \ 184887e1140fe7596fa1239a0bc802d2cdb51c57d3cElliott Hughes bionic/sched_getcpu.cpp \ 185247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/send.cpp \ 186232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/setegid.cpp \ 1874a9e837840fda3aaea48aeba85c7c7a8782d2586Elliott Hughes bionic/__set_errno.cpp \ 188232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/seteuid.cpp \ 189063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/setlocale.cpp \ 1905a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes bionic/setpgrp.cpp \ 191c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigaction.cpp \ 192c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigaddset.cpp \ 193c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigdelset.cpp \ 194c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigemptyset.cpp \ 195c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigfillset.cpp \ 196c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigismember.cpp \ 197c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/signal.cpp \ 198aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/signalfd.cpp \ 19940d105ccb3e6283566ce54b693b3088f31aa4f26Elliott Hughes bionic/sigpending.cpp \ 20019e62325c268a668692e2b65fde2284079f369aaElliott Hughes bionic/sigprocmask.cpp \ 2011f5af926fa626734981d6b4dcc0ab54e520032a9Elliott Hughes bionic/sigsuspend.cpp \ 202c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes bionic/sigwait.cpp \ 203f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/stat.cpp \ 20406040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughes bionic/statvfs.cpp \ 205063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strerror.cpp \ 206063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strerror_r.cpp \ 207063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strsignal.cpp \ 2085a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes bionic/strtof.cpp \ 2095a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes bionic/strtold.cpp \ 210063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/stubs.cpp \ 211f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/symlink.cpp \ 21291a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes bionic/sysconf.cpp \ 213aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/sys_siglist.c \ 214aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/sys_signame.c \ 2155a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes bionic/system_properties.cpp \ 216063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/tdestroy.cpp \ 2178d4b5849f21dc4115ad66944dc11df838b3faa52Elliott Hughes bionic/termios.cpp \ 218aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/thread_atexit.cpp \ 219063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/tmpfile.cpp \ 220247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/umount.cpp \ 221f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/unlink.cpp \ 222f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/utimes.cpp \ 22317a8b0db63d54e9d79bf11112ace0c4fe9606289Elliott Hughes bionic/wait.cpp \ 224063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/wchar.cpp \ 22529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 226f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hugheslibc_upstream_freebsd_src_files := \ 22757a883640f3b43bf5e332d64489b3eab67a5ac3fElliott Hughes upstream-freebsd/lib/libc/gen/ldexp.c \ 228ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes upstream-freebsd/lib/libc/gen/sleep.c \ 229ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes upstream-freebsd/lib/libc/gen/usleep.c \ 2306b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fclose.c \ 2316b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/flags.c \ 2326b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fopen.c \ 2336b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fwrite.c \ 234677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes upstream-freebsd/lib/libc/stdio/makebuf.c \ 235284f7880323d33356df682c3cfb6b7f0c665bfd4Elliott Hughes upstream-freebsd/lib/libc/stdio/mktemp.c \ 236677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes upstream-freebsd/lib/libc/stdio/setvbuf.c \ 2376b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/wsetup.c \ 238aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/abs.c \ 239d278b828fef47fb2d7098f8ec70867fbd3da09d6Elliott Hughes upstream-freebsd/lib/libc/stdlib/getopt_long.c \ 240aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/imaxabs.c \ 241aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/imaxdiv.c \ 242aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/labs.c \ 243aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/llabs.c \ 2440b25f633a23e575c8a1f9547d1af5dc5b0157a1cElliott Hughes upstream-freebsd/lib/libc/stdlib/qsort.c \ 245f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes upstream-freebsd/lib/libc/stdlib/realpath.c \ 246eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcpcpy.c \ 247eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcpncpy.c \ 248eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcscasecmp.c \ 249eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcscspn.c \ 250eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsdup.c \ 251eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcslcat.c \ 252eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncasecmp.c \ 253eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncat.c \ 254eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncmp.c \ 255eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncpy.c \ 256eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsnlen.c \ 257eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcspbrk.c \ 258eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsspn.c \ 259eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsstr.c \ 260eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcstok.c \ 261eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemchr.c \ 262eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemcpy.c \ 263eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemmove.c \ 264eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemset.c \ 265f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 266f8b3a920a895a53b207017249080087d562bd0d2Elliott Hugheslibc_upstream_netbsd_src_files := \ 267e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ 268e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes upstream-netbsd/common/lib/libc/inet/inet_addr.c \ 269677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/ftw.c \ 270677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/nftw.c \ 271677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/nice.c \ 272677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/popen.c \ 273677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/psignal.c \ 274677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/setjmperr.c \ 275677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/utime.c \ 27619f58efa22357bfaa6a63a0940928830e95c5123Elliott Hughes upstream-netbsd/lib/libc/gen/utmp.c \ 277677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_ntoa.c \ 278677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_ntop.c \ 279677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_pton.c \ 280677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/isc/ev_streams.c \ 281677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/isc/ev_timers.c \ 282677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regcomp.c \ 283677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regerror.c \ 284677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regexec.c \ 285677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regfree.c \ 286677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/bsearch.c \ 287677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/div.c \ 288677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/drand48.c \ 289677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/erand48.c \ 290677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/exit.c \ 291677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/jrand48.c \ 292677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/ldiv.c \ 293677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/lldiv.c \ 294677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/lrand48.c \ 2957f3a272ae327c647db4caeaea2a3c7af50bd73b5Elliott Hughes upstream-netbsd/lib/libc/stdlib/lsearch.c \ 296677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/mrand48.c \ 297677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/nrand48.c \ 298677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/_rand48.c \ 299677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/seed48.c \ 300677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/srand48.c \ 301677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tdelete.c \ 302677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tfind.c \ 303677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tsearch.c \ 304677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/memccpy.c \ 305677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strcasestr.c \ 306677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strcoll.c \ 307677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strxfrm.c \ 308677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/thread-stub/__isthreaded.c \ 309677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/unistd/killpg.c \ 310f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 31153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hugheslibc_upstream_openbsd_src_files := \ 312aedb00d04eb7f0b20b6abde702ba94a46577ca68Elliott Hughes upstream-openbsd/lib/libc/gen/alarm.c \ 31353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/exec.c \ 31453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/fnmatch.c \ 315692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/ftok.c \ 316692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/getprogname.c \ 317692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/setprogname.c \ 318cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes upstream-openbsd/lib/libc/gen/time.c \ 31953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/tolower_.c \ 320692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/toupper_.c \ 321c8937eadf4a45afebe586dcea7a8ed882f3bec3bElliott Hughes upstream-openbsd/lib/libc/locale/wcscoll.c \ 322ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/locale/wcsxfrm.c \ 323ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/asprintf.c \ 324ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/clrerr.c \ 325ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fdopen.c \ 326ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/feof.c \ 32753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/ferror.c \ 32853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fflush.c \ 329ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetc.c \ 330ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetln.c \ 331ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetpos.c \ 332ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fgets.c \ 333ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fileno.c \ 334ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fprintf.c \ 33553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fpurge.c \ 336ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fputc.c \ 33753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fputs.c \ 338ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/freopen.c \ 339ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fscanf.c \ 34053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fseek.c \ 341ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fsetpos.c \ 342ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/ftell.c \ 343ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/funopen.c \ 344ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/fwalk.c \ 345ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/getc.c \ 346ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/getchar.c \ 347ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/getdelim.c \ 34853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/getline.c \ 34953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/gets.c \ 350ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/perror.c \ 351ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/printf.c \ 35253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/putc.c \ 353ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/putchar.c \ 354ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/puts.c \ 355f2cea021ab2c6d7d7feeb40cca098aa132605876Elliott Hughes upstream-openbsd/lib/libc/stdio/putw.c \ 356ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/refill.c \ 357ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/remove.c \ 358ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/rewind.c \ 35953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/rget.c \ 36053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/scanf.c \ 361ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/setbuf.c \ 362ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/setbuffer.c \ 363603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes upstream-openbsd/lib/libc/stdio/sscanf.c \ 364ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/stdio.c \ 365ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/tempnam.c \ 366ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/tmpnam.c \ 367ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/ungetc.c \ 368ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/vasprintf.c \ 369603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes upstream-openbsd/lib/libc/stdio/vfscanf.c \ 370ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/vprintf.c \ 371ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/vscanf.c \ 372ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/vsnprintf.c \ 373ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/vsprintf.c \ 374603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes upstream-openbsd/lib/libc/stdio/vsscanf.c \ 375ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdio/wbuf.c \ 37653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/atoi.c \ 37753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/atol.c \ 378ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdlib/atoll.c \ 37953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoimax.c \ 38053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtol.c \ 381ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoll.c \ 382ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoul.c \ 383ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoull.c \ 384ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoumax.c \ 3851e4378ea06d06f57027a97714f076ad4f417a705Elliott Hughes upstream-openbsd/lib/libc/stdlib/system.c \ 386ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strcasecmp.c \ 387ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strcspn.c \ 388ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strdup.c \ 389ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strndup.c \ 390ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strpbrk.c \ 391ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strsep.c \ 392ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strspn.c \ 393ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strstr.c \ 394ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/strtok.c \ 395ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/wcslcpy.c \ 396ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes upstream-openbsd/lib/libc/string/wcswidth.c \ 39753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes 398f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_arch_static_src_files := \ 399f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/dl_iterate_phdr_static.cpp \ 4007c83a1ed81a15f3e75836c1ac7d500a952f02e10Christopher Ferris 401ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags 402ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \ 404470631ed79538ce912edb94505dee3e24af8db89Elliott Hughes -D_LIBC=1 \ 4052ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Wall -Wextra \ 4062ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes 4072ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes# Try to catch typical 32-bit assumptions that break with 64-bit pointers. 4082ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hugheslibc_common_cflags += \ 4092ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=pointer-to-int-cast \ 4102ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=int-to-pointer-cast \ 4112ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=type-limits \ 4121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 413d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true) 4141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -DDEBUG 4151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif 4161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4172fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in 4182fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# the appropriate BoardConfig.mk file. 4192fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# 4202fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renifneq ($(BOARD_MALLOC_ALIGNMENT),) 4212fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT) 4222fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renendif 4232fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren 424fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden# Define ANDROID_SMP appropriately. 425fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenifeq ($(TARGET_CPU_SMP),true) 426fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden libc_common_cflags += -DANDROID_SMP=1 427fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenelse 428fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden libc_common_cflags += -DANDROID_SMP=0 429fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenendif 430fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden 431762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common conlyflags 432762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_conlyflags := \ 433762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -std=gnu99 434762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines 435762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common cppflags 436762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_cppflags := \ 437762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -std=gnu++11 438762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines 439ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes 440ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_c_includes := \ 44276c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/stdlib \ 44376c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/string \ 44476c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/stdio \ 44576c8b882690dd9025caa625a023996c136377cb1Ying Wang external/safe-iop/include 4461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 447f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ======================================================== 448f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Add in the arch-specific flags. 449f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Must be called with $(eval). 450f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(1): the LOCAL_ variable name 451f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(2): the bionic variable name to pull in 452f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangdefine patch-up-arch-specific-flags 453f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_ARCH) += $($(2)_$(TARGET_ARCH)) 454f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 455f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_2ND_ARCH) += $($(2)_$(TARGET_2ND_ARCH)) 456a4c7933b49f1d43579f184167e79a5fb237bd206Raghu Gandhamendif 457f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendef 458f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 4591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 460ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4616380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes# libc_stack_protector.a - stack protector code 4626334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ======================================================== 4636334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# 4646334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# The stack protector code needs to be compiled 4656334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# with -fno-stack-protector, since it modifies the 4666334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# stack canary. 4676334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4686334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(CLEAR_VARS) 4696334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 470642331b5dd5647e7d196ac4f44406fd435478a56Elliott HughesLOCAL_SRC_FILES := bionic/__stack_chk_fail.cpp 471dc5ec07158079b39f758ed41eca5b937e52c3729Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector -Werror 472762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 473762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 4746334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_C_INCLUDES := $(libc_common_c_includes) 4756380b51a8d775a3b572b2db15195f279cb5565f6Elliott HughesLOCAL_MODULE := libc_stack_protector 476d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 4776334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_SYSTEM_SHARED_LIBRARIES := 4786334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 479f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 4806334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(BUILD_STATIC_LIBRARY) 4816334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4826334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4836334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ======================================================== 484ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# libc_tzcode.a - upstream 'tzcode' code 485ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ======================================================== 486ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 487ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(CLEAR_VARS) 488ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 4891fbe6213cdd9fda7e7b816e608b887ad8a0ad265Elliott HughesLOCAL_SRC_FILES := $(call all-c-files-under,tzcode) 490ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_CFLAGS := \ 491ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes $(libc_common_cflags) \ 492ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DSTD_INSPIRED=1 \ 493ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DTZDIR=\"/system/usr/share/zoneinfo\" \ 494ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DTM_GMTOFF=tm_gmtoff \ 495ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DUSG_COMPAT=1 496762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 497762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 498ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 499ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_MODULE := libc_tzcode 500d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 501ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 502ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 503f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 504ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 505ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 506ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 507ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ======================================================== 508eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# libc_dns.a - modified NetBSD DNS code 509eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ======================================================== 510eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 511eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(CLEAR_VARS) 512eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 513bd33537fde8e1c68fcadfd6adf77b295ada9b45fCalin JuravleLOCAL_SRC_FILES := $(call all-c-files-under,dns) 514eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := \ 515eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes $(libc_common_cflags) \ 516205c7887add8b8c85434c35158138f16265beb28Elliott Hughes -DANDROID_CHANGES \ 517eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -DINET6 \ 518cecc036970fba8b319cca302768865677f2be094Calin Juravle -I$(LOCAL_PATH)/dns/include \ 519eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -I$(LOCAL_PATH)/private \ 520fcb502e3ec032497bba7f8634fb214e0c05394d8Calin Juravle -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ 521fcb502e3ec032497bba7f8634fb214e0c05394d8Calin Juravle -include upstream-netbsd/netbsd-compat.h 522eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 523eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags) 524eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 525eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_MODULE := libc_dns 526eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 527eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 528eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 529f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 530eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 531eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 532eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 533eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ======================================================== 534f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# libc_freebsd.a - upstream FreeBSD C library code 535f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ======================================================== 536f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# 537f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# These files are built with the freebsd-compat.h header file 538f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# automatically included. 539f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 540f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(CLEAR_VARS) 541f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 542f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files) 543f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_CFLAGS := \ 544f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes $(libc_common_cflags) \ 545f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -I$(LOCAL_PATH)/upstream-freebsd \ 546f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -I$(LOCAL_PATH)/upstream-freebsd/libc/include \ 547f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -include upstream-freebsd/freebsd-compat.h 548762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 549762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 550f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 551f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_MODULE := libc_freebsd 552d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 553f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 554f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 555f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 556f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 557f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 558f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 559f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ======================================================== 560f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# libc_netbsd.a - upstream NetBSD C library code 561f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ======================================================== 562f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# 563f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# These files are built with the netbsd-compat.h header file 564f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# automatically included. 565f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 566f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(CLEAR_VARS) 567f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 568f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_netbsd_src_files) 569f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_CFLAGS := \ 570f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes $(libc_common_cflags) \ 571eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -DPOSIX_MISTAKE \ 5723d2d448af1b16923f5a329b49bb8e658dbad8a06Elliott Hughes -I$(LOCAL_PATH)/upstream-netbsd \ 573677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ 574f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes -include upstream-netbsd/netbsd-compat.h 575762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 576762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 577f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 578f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_MODULE := libc_netbsd 579d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 580f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 581f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 582f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 583f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 584f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 585f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 586f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ======================================================== 5870133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# libc_openbsd.a - upstream OpenBSD C library code 5880133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ======================================================== 5890133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# 5900133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# These files are built with the openbsd-compat.h header file 5910133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# automatically included. 5920133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 5930133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(CLEAR_VARS) 5940133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 59553e43292aac91bf62995788cd5ca2ceb7caea283Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files) 5960133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CFLAGS := \ 5970133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes $(libc_common_cflags) \ 5980133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -I$(LOCAL_PATH)/upstream-openbsd \ 5990133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ 6000133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -include upstream-openbsd/openbsd-compat.h 6010133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 6020133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags) 6030133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 6040133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_MODULE := libc_openbsd 6050133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 6060133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 6070133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6080133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 6090133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(BUILD_STATIC_LIBRARY) 6100133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6110133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6120133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ======================================================== 61329c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# libc_bionic.a - home-grown C library code 61429c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ======================================================== 615e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes 61629c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(CLEAR_VARS) 61729c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 61829c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SRC_FILES := $(libc_bionic_src_files) 61929c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -Werror 620762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 621762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 62229c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 62329c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_MODULE := libc_bionic 624d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 62529c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 62629c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 62766759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Set -DPTHREAD_DEBUG_ENABLED=true to enable support for pthread deadlock prediction. 62866759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Since this code is experimental it is disabled by default. 629f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS += -DPTHREAD_DEBUG_ENABLED=false 63066759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes 631c1005aaf8ea8f9eab515a5b06b80a706faba6e43Mark Salyzynifneq ($(TARGET_USES_LOGD),false) 632f38292862b0a560f082ce1ccefc587dd2f58b893Mark SalyzynLOCAL_CFLAGS += -DTARGET_USES_LOGD 633f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzynendif 634f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzyn 635f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 636f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_src_files)) 63729c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 63829c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 63929c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 64029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ======================================================== 641b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# libc_syscalls.a 642b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ======================================================== 643b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 644b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(CLEAR_VARS) 645b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 646f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_ARCH) := $(call all-S-files-under,arch-$(TARGET_ARCH)/syscalls) 647f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 648f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(call all-S-files-under,arch-$(TARGET_2ND_ARCH)/syscalls) 649f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif 650b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_MODULE := libc_syscalls 651b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 652b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 653b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 654b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 655b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 656b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 657b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ======================================================== 658ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a 659ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 660f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 661ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS) 6621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 663ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files) 664eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) 665762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 666762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 667ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 6681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common 669d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 670ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES := \ 671ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_bionic \ 672eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes libc_dns \ 673ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_freebsd \ 674ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_netbsd \ 6750133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes libc_openbsd \ 6766380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes libc_stack_protector \ 677b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes libc_syscalls \ 678eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes libc_tzcode \ 679eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 6801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 6811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 682c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang# TODO: split out the asflags. 683c97c5fc7880267fd835d22946a920bf370461cf2Ying WangLOCAL_ASFLAGS := $(LOCAL_CFLAGS) 684c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang 685f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 686f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files)) 687f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS)) 6881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 6891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 691ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 69249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a 69349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 69449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# 69549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not 69691a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# include malloc. It's useful in situations when the user wants 69791a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# to provide their own malloc implementation, or wants to 69891a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# explicitly disallow the use of the use of malloc, 69991a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# such as in the dynamic loader. 70049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 70149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS) 70249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 70349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \ 704f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_arch_static_src_files) \ 705f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_static_common_src_files) \ 706f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/libc_init_static.cpp 70749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 70849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 7096a51defa034a1c033ed01f7de444c0a4fc615249David 'Digit' TurnerLOCAL_CFLAGS := $(libc_common_cflags) \ 710762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -DLIBC_STATIC 711762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 712762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 71349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 71449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc 715d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 71649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 71749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES := 71849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 719f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 720f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files)) 72149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY) 72249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 72349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 72449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 7251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a 7261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 7271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 7281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 730f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_arch_static_src_files) \ 731f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_static_common_src_files) \ 732f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/dlmalloc.c \ 733f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_common.cpp \ 734f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/libc_init_static.cpp \ 7351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 736b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := $(libc_common_cflags) \ 737762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -DLIBC_STATIC 738762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 739762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 7401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 741ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc 742d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 7431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 7441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 7451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 746f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 747f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files)) 7481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 7491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 751ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 7521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so 7531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 7541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 7551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 75666759d6041b33706c3a92dde48492ba4f2bbab2fElliott HughesLOCAL_CFLAGS := $(libc_common_cflags) 757762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 758762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 7591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 7601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 762e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes $(libc_arch_dynamic_src_files) \ 763e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes $(libc_static_common_src_files) \ 764e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/dlmalloc.c \ 765e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/malloc_debug_common.cpp \ 766e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/debug_mapinfo.cpp \ 767e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/debug_stacktrace.cpp \ 768e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/pthread_debug.cpp \ 769e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/libc_init_dynamic.cpp \ 7701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE:= libc 772d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 773914d8d4cff10f023ccd382fb43b2c7833dd34f72Elliott HughesLOCAL_REQUIRED_MODULES := tzdata 7741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7750ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# Leave the symbols in the shared library so that stack unwinders can produce 7760ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# meaningful name resolution. 7770ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher FerrisLOCAL_STRIP_MODULE := keep_symbols 7780ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris 7791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, 7801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This 7811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared 7821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it 7831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries. That would 7841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# create an "cloaked" dependency on libgcc.a in libc though the libraries, which is not what 7851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted! 7861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl 7881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 7891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 7901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 791f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 79276c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files)) 79376c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_static_common_src_files)) 794f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# special for arm 795f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_NO_CRT_arm := true 796f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS_arm += -DCRT_LEGACY_WORKAROUND 797f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_arm += \ 798f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-common/bionic/crtbegin_so.c \ 799f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-arm/bionic/atexit_legacy.c \ 800f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-common/bionic/crtend_so.S 801f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 8021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 8031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 8041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 805b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# For all builds, except for the -user build we will enable memory 806b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# allocation checking (including memory leaks, buffer overwrites, etc.) 807b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Note that all these checks are also controlled by env. settings 808b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# that can enable, or disable specific checks. Note also that some of 809b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# the checks are available only in emulator and are implemeted in 810b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_qemu_instrumented.so. 811b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineifneq ($(TARGET_BUILD_VARIANT),user) 812b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 813ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 814b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_leak.so 8151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 8161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 8171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 818ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := \ 819f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_common_cflags) \ 820f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -DMALLOC_LEAK_CHECK 821762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 822762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 8231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 8241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 8251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 8261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 827f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/debug_mapinfo.cpp \ 828f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/debug_stacktrace.cpp \ 829f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_leak.cpp \ 830f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_check.cpp \ 8311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 832b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_leak 833d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 8341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 835e007775f4b21f6b94078ed1d34b753435ba28fdaPavel ChupinLOCAL_SHARED_LIBRARIES := libc libdl 836b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 837b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SYSTEM_SHARED_LIBRARIES := 838aa46fa24035f3ab020f9a7abd86c25ae2196bb32Bruce BeareLOCAL_ALLOW_UNDEFINED_SYMBOLS := true 839368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev 840b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't install on release build 841b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 8421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 843f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 844b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(BUILD_SHARED_LIBRARY) 845b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 846b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 847b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 848b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_qemu.so 849b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 850b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(CLEAR_VARS) 851b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 852b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := \ 853f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_common_cflags) \ 854f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -DMALLOC_QEMU_INSTRUMENT 855762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 856762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 857b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 858b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_C_INCLUDES := $(libc_common_c_includes) 859b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 860b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SRC_FILES := \ 861f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_qemu.cpp 862b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 863b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_qemu 864d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 865b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 8667c0c3793722aea293c45921ef50e4adcdf9645ceMathias AgopianLOCAL_SHARED_LIBRARIES := libc libdl 8671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 8681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 869368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev 8701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build 871b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 8721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 873f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 8741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 8751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 876f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif #!user 877b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 878b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 8791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 8801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH)) 881