Android.mk revision 247dc91889ffc8b71fc3371edba9d834afab96ab
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/tcgetpgrp.c \ 7776c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/tcsetpgrp.c \ 7876c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/time64.c \ 7976c8b882690dd9025caa625a023996c136377cb1Ying Wang bionic/unlockpt.c \ 80aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/asprintf.c \ 81aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/findfp.c \ 82aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/fprintf.c \ 83aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/fread.c \ 84aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/freopen.c \ 85aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/fvwrite.c \ 86aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/snprintf.c\ 87aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/sprintf.c \ 88aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/sscanf.c \ 89aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/vfprintf.c \ 90aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/vfscanf.c \ 91aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdio/vsscanf.c \ 92aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/atexit.c \ 93aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/ctype_.c \ 94aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/getenv.c \ 95aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/putenv.c \ 96aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/setenv.c \ 97aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes stdlib/strtod.c \ 98aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes unistd/syslog.c \ 99aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes unistd/time.c \ 100eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 10159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris# Fortify implementations of libc functions. 10259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferrislibc_common_src_files += \ 10390201d5eca050414d50a433866ccb580415bb0d4Nick Kralevich bionic/__FD_chk.cpp \ 10459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__fgets_chk.cpp \ 10559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__memmove_chk.cpp \ 106b036b5ca36c1e12b075909b3eca6eab73ee611cfNick Kralevich bionic/__read_chk.cpp \ 10760f4f9a5b99a0a66817f50edfc2194a49f8b5146Nick Kralevich bionic/__recvfrom_chk.cpp \ 10859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strchr_chk.cpp \ 10959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlcat_chk.cpp \ 11059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlcpy_chk.cpp \ 11159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strlen_chk.cpp \ 11259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strncat_chk.cpp \ 11359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strncpy_chk.cpp \ 11459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__strrchr_chk.cpp \ 11559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__umask_chk.cpp \ 11659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__vsnprintf_chk.cpp \ 11759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris bionic/__vsprintf_chk.cpp \ 11859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris 11929c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hugheslibc_bionic_src_files := \ 12061e699a133a4807fe878a6cb0d7190d7c96e21f8Elliott Hughes bionic/abort.cpp \ 121f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/access.cpp \ 122063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/assert.cpp \ 123a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes bionic/__bionic_name_mem.cpp \ 12411952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/bionic_time_conversions.cpp \ 125428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes bionic/brk.cpp \ 126f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/chmod.cpp \ 127f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/chown.cpp \ 12836d6188f8cd8b948fb797f11d9620d63d0c2215aElliott Hughes bionic/clone.cpp \ 129c30396f5f225e0b5a83a35432e2d82a7063cfdb9David 'Digit' Turner bionic/dirent.cpp \ 130cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/dup2.cpp \ 131cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/epoll_create.cpp \ 13211952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/epoll_pwait.cpp \ 133aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/epoll_wait.cpp \ 1342a0b873065edb304fa2d1c54f8de663ea638b8abElliott Hughes bionic/__errno.cpp \ 1359b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng bionic/eventfd_read.cpp \ 1369b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng bionic/eventfd_write.cpp \ 137bf425680e484486803bf21e4c4cd1e3f36614a3cElliott Hughes bionic/ffs.cpp \ 13853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes bionic/flockfile.cpp \ 139232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/fork.cpp \ 140d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1Elliott Hughes bionic/futimens.cpp \ 1412c5153b043b44e9935a334ae9b2d5a4bc5258b40Nick Kralevich bionic/getauxval.cpp \ 142063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/getcwd.cpp \ 143247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/getpgrp.cpp \ 144cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/inotify_init.cpp \ 145f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/lchown.cpp \ 146fe317a3775e16d466bb884a8e054fd77f7087bb3Calin Juravle bionic/lfs64_support.cpp \ 14742b2c6a5eed5e4ef35315b8cd32d1355f12a69b6Elliott Hughes bionic/libc_init_common.cpp \ 1488f2a5a0b40fc82126c691d5c30131d908772aab7Elliott Hughes bionic/libc_logging.cpp \ 14958b575485c446f9d76ee00f67516ed42cf017769Elliott Hughes bionic/libgen.cpp \ 150f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/link.cpp \ 151f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/lstat.cpp \ 152f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/mkdir.cpp \ 153594b1a4af204aa9de2b4913182f4556e38d71648Elliott Hughes bionic/mkfifo.cpp \ 154f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/mknod.cpp \ 155f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/open.cpp \ 15611952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/pause.cpp \ 157cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes bionic/pipe.cpp \ 15811952073af22568bba0b661f7a9d4402c443a888Elliott Hughes bionic/poll.cpp \ 159f64b8ea09db3bdd84eed59f7721301743332b3feElliott Hughes bionic/posix_fallocate.cpp \ 1604b558f50a42c97d461f1dede5aaaae490ea99e2eElliott Hughes bionic/posix_timers.cpp \ 161c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_atfork.cpp \ 1623e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes bionic/pthread_attr.cpp \ 163c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_cond.cpp \ 164c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_create.cpp \ 1659d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_detach.cpp \ 1669d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_equal.cpp \ 167c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_exit.cpp \ 1689d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_getcpuclockid.cpp \ 1699d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_getschedparam.cpp \ 1709d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_internals.cpp \ 1719d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_join.cpp \ 172c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_key.cpp \ 1739d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_kill.cpp \ 174c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_mutex.cpp \ 175c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_once.cpp \ 176c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/pthread_rwlock.cpp \ 1779d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_self.cpp \ 1783e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes bionic/pthread_setname_np.cpp \ 1799d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes bionic/pthread_setschedparam.cpp \ 180c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes bionic/pthread_sigmask.cpp \ 181c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes bionic/ptrace.cpp \ 182d8a5a6f513c6fa99229e9c82c5c308c7cd6b3d54Chris Dearman bionic/raise.cpp \ 183f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/readlink.cpp \ 184a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes bionic/reboot.cpp \ 185247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/recv.cpp \ 186f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/rename.cpp \ 187f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/rmdir.cpp \ 188428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes bionic/sbrk.cpp \ 189701bec2af33feaa9dddf12ccf8e4c714441b7f2eElliott Hughes bionic/scandir.cpp \ 1904ca685e36e9d7f53c135eba2b4b8ece152129dbeKito Cheng bionic/sched_getaffinity.cpp \ 191887e1140fe7596fa1239a0bc802d2cdb51c57d3cElliott Hughes bionic/sched_getcpu.cpp \ 192247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/send.cpp \ 193232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/setegid.cpp \ 1944a9e837840fda3aaea48aeba85c7c7a8782d2586Elliott Hughes bionic/__set_errno.cpp \ 195232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes bionic/seteuid.cpp \ 196247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/setpgrp.cpp \ 197063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/setlocale.cpp \ 198c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigaction.cpp \ 199c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigaddset.cpp \ 200c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigdelset.cpp \ 201c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigemptyset.cpp \ 202c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigfillset.cpp \ 203c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/sigismember.cpp \ 204c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes bionic/signal.cpp \ 205aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/signalfd.cpp \ 20640d105ccb3e6283566ce54b693b3088f31aa4f26Elliott Hughes bionic/sigpending.cpp \ 20719e62325c268a668692e2b65fde2284079f369aaElliott Hughes bionic/sigprocmask.cpp \ 2081f5af926fa626734981d6b4dcc0ab54e520032a9Elliott Hughes bionic/sigsuspend.cpp \ 209c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes bionic/sigwait.cpp \ 210f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/stat.cpp \ 21106040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughes bionic/statvfs.cpp \ 212063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strerror.cpp \ 213063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strerror_r.cpp \ 214063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/strsignal.cpp \ 215063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/stubs.cpp \ 216f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/symlink.cpp \ 21791a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes bionic/sysconf.cpp \ 218c9ae21a5c3b2e1baafe50f752e2e07e343d39530Narayan Kamath bionic/system_properties.cpp \ 219aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/sys_siglist.c \ 220aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/sys_signame.c \ 221063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/tdestroy.cpp \ 222aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes bionic/thread_atexit.cpp \ 223063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/tmpfile.cpp \ 224247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes bionic/umount.cpp \ 225f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/unlink.cpp \ 226f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes bionic/utimes.cpp \ 22717a8b0db63d54e9d79bf11112ace0c4fe9606289Elliott Hughes bionic/wait.cpp \ 228063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes bionic/wchar.cpp \ 22929c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 230f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hugheslibc_upstream_freebsd_src_files := \ 23157a883640f3b43bf5e332d64489b3eab67a5ac3fElliott Hughes upstream-freebsd/lib/libc/gen/ldexp.c \ 232ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes upstream-freebsd/lib/libc/gen/sleep.c \ 233ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes upstream-freebsd/lib/libc/gen/usleep.c \ 2346b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fclose.c \ 2356b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/flags.c \ 2366b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fopen.c \ 2376b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/fwrite.c \ 238677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes upstream-freebsd/lib/libc/stdio/makebuf.c \ 239284f7880323d33356df682c3cfb6b7f0c665bfd4Elliott Hughes upstream-freebsd/lib/libc/stdio/mktemp.c \ 2406b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/putw.c \ 241677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes upstream-freebsd/lib/libc/stdio/setvbuf.c \ 2426b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes upstream-freebsd/lib/libc/stdio/wsetup.c \ 243aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/abs.c \ 244d278b828fef47fb2d7098f8ec70867fbd3da09d6Elliott Hughes upstream-freebsd/lib/libc/stdlib/getopt_long.c \ 245aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/imaxabs.c \ 246aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/imaxdiv.c \ 247aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/labs.c \ 248aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes upstream-freebsd/lib/libc/stdlib/llabs.c \ 2490b25f633a23e575c8a1f9547d1af5dc5b0157a1cElliott Hughes upstream-freebsd/lib/libc/stdlib/qsort.c \ 250f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes upstream-freebsd/lib/libc/stdlib/realpath.c \ 251eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcpcpy.c \ 252eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcpncpy.c \ 253eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcscasecmp.c \ 254eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcscspn.c \ 255eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsdup.c \ 256eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcslcat.c \ 257eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncasecmp.c \ 258eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncat.c \ 259eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncmp.c \ 260eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsncpy.c \ 261eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsnlen.c \ 262eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcspbrk.c \ 263eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsspn.c \ 264eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcsstr.c \ 265eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wcstok.c \ 266eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemchr.c \ 267eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemcpy.c \ 268eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemmove.c \ 269eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes upstream-freebsd/lib/libc/string/wmemset.c \ 270f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 271f8b3a920a895a53b207017249080087d562bd0d2Elliott Hugheslibc_upstream_netbsd_src_files := \ 272e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ 273e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes upstream-netbsd/common/lib/libc/inet/inet_addr.c \ 274677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/ftw.c \ 275677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/nftw.c \ 276677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/nice.c \ 277677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/popen.c \ 278677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/psignal.c \ 279677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/setjmperr.c \ 280677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/gen/utime.c \ 28119f58efa22357bfaa6a63a0940928830e95c5123Elliott Hughes upstream-netbsd/lib/libc/gen/utmp.c \ 282677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_ntoa.c \ 283677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_ntop.c \ 284677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/inet/inet_pton.c \ 285677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/isc/ev_streams.c \ 286677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/isc/ev_timers.c \ 287677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regcomp.c \ 288677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regerror.c \ 289677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regexec.c \ 290677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/regex/regfree.c \ 291677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/bsearch.c \ 292677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/div.c \ 293677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/drand48.c \ 294677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/erand48.c \ 295677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/exit.c \ 296677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/jrand48.c \ 297677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/ldiv.c \ 298677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/lldiv.c \ 299677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/lrand48.c \ 300677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/mrand48.c \ 301677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/nrand48.c \ 302677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/_rand48.c \ 303677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/seed48.c \ 304677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/srand48.c \ 305677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tdelete.c \ 306677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tfind.c \ 307677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/stdlib/tsearch.c \ 308677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/memccpy.c \ 309677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strcasestr.c \ 310677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strcoll.c \ 311677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/string/strxfrm.c \ 312677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/thread-stub/__isthreaded.c \ 313677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes upstream-netbsd/lib/libc/unistd/killpg.c \ 314f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 31553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hugheslibc_upstream_openbsd_src_files := \ 316aedb00d04eb7f0b20b6abde702ba94a46577ca68Elliott Hughes upstream-openbsd/lib/libc/gen/alarm.c \ 31753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/exec.c \ 31853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/fnmatch.c \ 319692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/ftok.c \ 320692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/getprogname.c \ 321692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/setprogname.c \ 32253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/gen/tolower_.c \ 323692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes upstream-openbsd/lib/libc/gen/toupper_.c \ 324c8937eadf4a45afebe586dcea7a8ed882f3bec3bElliott Hughes upstream-openbsd/lib/libc/locale/wcscoll.c \ 32553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strstr.c \ 32653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strsep.c \ 32753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/wcslcpy.c \ 32853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strcasecmp.c \ 32953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strdup.c \ 33053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strcspn.c \ 33153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strtok.c \ 33253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strpbrk.c \ 33353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strspn.c \ 33453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/wcswidth.c \ 33553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/string/strndup.c \ 33653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/ungetc.c \ 33753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/vsnprintf.c \ 33853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/tmpnam.c \ 33953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/setbuffer.c \ 34053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fsetpos.c \ 34153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/setbuf.c \ 34253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/vprintf.c \ 34353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/perror.c \ 34453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/remove.c \ 34553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/getc.c \ 34653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/funopen.c \ 34753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/ferror.c \ 34853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/putchar.c \ 34953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/vscanf.c \ 35053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fflush.c \ 35153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fpurge.c \ 35253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fputs.c \ 35353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/tempnam.c \ 35453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/printf.c \ 35553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fileno.c \ 35653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/stdio.c \ 35753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/getdelim.c \ 35853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fseek.c \ 35953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fputc.c \ 36053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetln.c \ 36153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fdopen.c \ 36253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fgets.c \ 36353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetc.c \ 36453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/feof.c \ 36553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/vasprintf.c \ 36653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/refill.c \ 36753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/getline.c \ 36853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/rewind.c \ 36953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/wbuf.c \ 37053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/gets.c \ 37153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fgetpos.c \ 37253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fscanf.c \ 37353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/putc.c \ 37453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/vsprintf.c \ 37553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/rget.c \ 37653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/clrerr.c \ 37753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/scanf.c \ 37853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/puts.c \ 37953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/getchar.c \ 38053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/ftell.c \ 38153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdio/fwalk.c \ 38253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoul.c \ 38353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoull.c \ 38453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/atoi.c \ 38553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/atoll.c \ 38653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/atol.c \ 38753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoimax.c \ 38853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoumax.c \ 38953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtoll.c \ 39053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/stdlib/strtol.c \ 3911e4378ea06d06f57027a97714f076ad4f417a705Elliott Hughes upstream-openbsd/lib/libc/stdlib/system.c \ 39253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes upstream-openbsd/lib/libc/locale/wcsxfrm.c \ 39353e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes 394f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_arch_static_src_files := \ 395f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/dl_iterate_phdr_static.cpp \ 3967c83a1ed81a15f3e75836c1ac7d500a952f02e10Christopher Ferris 397ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags 398ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 3991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \ 400470631ed79538ce912edb94505dee3e24af8db89Elliott Hughes -DANDROID_CHANGES \ 401470631ed79538ce912edb94505dee3e24af8db89Elliott Hughes -D_LIBC=1 \ 4022ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Wall -Wextra \ 4032ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes 4042ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes# Try to catch typical 32-bit assumptions that break with 64-bit pointers. 4052ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hugheslibc_common_cflags += \ 4062ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=pointer-to-int-cast \ 4072ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=int-to-pointer-cast \ 4082ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes -Werror=type-limits \ 4091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 410d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true) 4111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -DDEBUG 4121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif 4131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4142fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in 4152fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# the appropriate BoardConfig.mk file. 4162fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# 4172fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renifneq ($(BOARD_MALLOC_ALIGNMENT),) 4182fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT) 4192fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renendif 4202fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren 421fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden# Define ANDROID_SMP appropriately. 422fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenifeq ($(TARGET_CPU_SMP),true) 423fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden libc_common_cflags += -DANDROID_SMP=1 424fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenelse 425fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden libc_common_cflags += -DANDROID_SMP=0 426fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenendif 427fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden 428762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common conlyflags 429762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_conlyflags := \ 430762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -std=gnu99 431762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines 432762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common cppflags 433762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_cppflags := \ 434762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -std=gnu++11 435762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines 436ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes 437ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_c_includes := \ 43976c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/stdlib \ 44076c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/string \ 44176c8b882690dd9025caa625a023996c136377cb1Ying Wang $(LOCAL_PATH)/stdio \ 44276c8b882690dd9025caa625a023996c136377cb1Ying Wang external/safe-iop/include 4431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 444f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ======================================================== 445f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Add in the arch-specific flags. 446f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Must be called with $(eval). 447f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(1): the LOCAL_ variable name 448f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(2): the bionic variable name to pull in 449f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangdefine patch-up-arch-specific-flags 450f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_ARCH) += $($(2)_$(TARGET_ARCH)) 451f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 452f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_2ND_ARCH) += $($(2)_$(TARGET_2ND_ARCH)) 453a4c7933b49f1d43579f184167e79a5fb237bd206Raghu Gandhamendif 454f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendef 455f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 4561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 457ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4586380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes# libc_stack_protector.a - stack protector code 4596334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ======================================================== 4606334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# 4616334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# The stack protector code needs to be compiled 4626334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# with -fno-stack-protector, since it modifies the 4636334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# stack canary. 4646334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4656334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(CLEAR_VARS) 4666334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 467642331b5dd5647e7d196ac4f44406fd435478a56Elliott HughesLOCAL_SRC_FILES := bionic/__stack_chk_fail.cpp 468dc5ec07158079b39f758ed41eca5b937e52c3729Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector -Werror 469762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 470762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 4716334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_C_INCLUDES := $(libc_common_c_includes) 4726380b51a8d775a3b572b2db15195f279cb5565f6Elliott HughesLOCAL_MODULE := libc_stack_protector 473d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 4746334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_SYSTEM_SHARED_LIBRARIES := 4756334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 476f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 4776334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(BUILD_STATIC_LIBRARY) 4786334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4796334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich 4806334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ======================================================== 481ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# libc_tzcode.a - upstream 'tzcode' code 482ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ======================================================== 483ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 484ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(CLEAR_VARS) 485ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 4861fbe6213cdd9fda7e7b816e608b887ad8a0ad265Elliott HughesLOCAL_SRC_FILES := $(call all-c-files-under,tzcode) 487ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_CFLAGS := \ 488ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes $(libc_common_cflags) \ 489ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DSTD_INSPIRED=1 \ 490ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DTZDIR=\"/system/usr/share/zoneinfo\" \ 491ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DTM_GMTOFF=tm_gmtoff \ 492ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes -DUSG_COMPAT=1 493762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 494762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 495ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 496ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_MODULE := libc_tzcode 497d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 498ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 499ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 500f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 501ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 502ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 503ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes 504ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ======================================================== 505eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# libc_dns.a - modified NetBSD DNS code 506eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ======================================================== 507eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 508eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(CLEAR_VARS) 509eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 510bd33537fde8e1c68fcadfd6adf77b295ada9b45fCalin JuravleLOCAL_SRC_FILES := $(call all-c-files-under,dns) 511eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := \ 512eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes $(libc_common_cflags) \ 513eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -DINET6 \ 514cecc036970fba8b319cca302768865677f2be094Calin Juravle -I$(LOCAL_PATH)/dns/include \ 515eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -I$(LOCAL_PATH)/private \ 516fcb502e3ec032497bba7f8634fb214e0c05394d8Calin Juravle -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ 517fcb502e3ec032497bba7f8634fb214e0c05394d8Calin Juravle -include upstream-netbsd/netbsd-compat.h 518eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 519eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags) 520eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 521eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_MODULE := libc_dns 522eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 523eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 524eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 525f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 526eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 527eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 528eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 529eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ======================================================== 530f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# libc_freebsd.a - upstream FreeBSD C library code 531f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ======================================================== 532f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# 533f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# These files are built with the freebsd-compat.h header file 534f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# automatically included. 535f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 536f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(CLEAR_VARS) 537f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 538f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files) 539f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_CFLAGS := \ 540f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes $(libc_common_cflags) \ 541f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -I$(LOCAL_PATH)/upstream-freebsd \ 542f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -I$(LOCAL_PATH)/upstream-freebsd/libc/include \ 543f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes -include upstream-freebsd/freebsd-compat.h 544762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 545762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 546f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 547f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_MODULE := libc_freebsd 548d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 549f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 550f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 551f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 552f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 553f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 554f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes 555f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ======================================================== 556f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# libc_netbsd.a - upstream NetBSD C library code 557f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ======================================================== 558f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# 559f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# These files are built with the netbsd-compat.h header file 560f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# automatically included. 561f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 562f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(CLEAR_VARS) 563f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 564f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_netbsd_src_files) 565f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_CFLAGS := \ 566f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes $(libc_common_cflags) \ 567eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes -DPOSIX_MISTAKE \ 5683d2d448af1b16923f5a329b49bb8e658dbad8a06Elliott Hughes -I$(LOCAL_PATH)/upstream-netbsd \ 569677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ 570f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes -include upstream-netbsd/netbsd-compat.h 571762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 572762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 573f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 574f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_MODULE := libc_netbsd 575d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 576f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 577f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 578f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 579f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 580f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 581f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 582f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ======================================================== 5830133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# libc_openbsd.a - upstream OpenBSD C library code 5840133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ======================================================== 5850133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# 5860133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# These files are built with the openbsd-compat.h header file 5870133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# automatically included. 5880133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 5890133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(CLEAR_VARS) 5900133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 59153e43292aac91bf62995788cd5ca2ceb7caea283Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files) 5920133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CFLAGS := \ 5930133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes $(libc_common_cflags) \ 5940133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -I$(LOCAL_PATH)/upstream-openbsd \ 5950133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ 5960133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes -include upstream-openbsd/openbsd-compat.h 5970133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 5980133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags) 5990133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 6000133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_MODULE := libc_openbsd 6010133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 6020133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 6030133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6040133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 6050133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(BUILD_STATIC_LIBRARY) 6060133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6070133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes 6080133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ======================================================== 60929c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# libc_bionic.a - home-grown C library code 61029c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ======================================================== 611e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes 61229c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(CLEAR_VARS) 61329c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 61429c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SRC_FILES := $(libc_bionic_src_files) 61529c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -Werror 616762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 617762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 61829c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes) 61929c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_MODULE := libc_bionic 620d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 62129c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 62229c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 62366759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Set -DPTHREAD_DEBUG_ENABLED=true to enable support for pthread deadlock prediction. 62466759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Since this code is experimental it is disabled by default. 625f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS += -DPTHREAD_DEBUG_ENABLED=false 62666759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes 627f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzynifeq ($(TARGET_USES_LOGD),true) 628f38292862b0a560f082ce1ccefc587dd2f58b893Mark SalyzynLOCAL_CFLAGS += -DTARGET_USES_LOGD 629f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzynendif 630f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzyn 631f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 632f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_src_files)) 63329c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 63429c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 63529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes 63629c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ======================================================== 637b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# libc_syscalls.a 638b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ======================================================== 639b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 640b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(CLEAR_VARS) 641b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 642f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_ARCH) := $(call all-S-files-under,arch-$(TARGET_ARCH)/syscalls) 643f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH 644f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(call all-S-files-under,arch-$(TARGET_2ND_ARCH)/syscalls) 645f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif 646b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_MODULE := libc_syscalls 647b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 648b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES := 649b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 650b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(BUILD_STATIC_LIBRARY) 651b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 652b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes 653b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ======================================================== 654ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a 655ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 656f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes 657ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS) 6581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 659ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files) 660eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) 661762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 662762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 663ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 6641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common 665d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 666ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES := \ 667ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_bionic \ 668eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes libc_dns \ 669ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_freebsd \ 670ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes libc_netbsd \ 6710133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes libc_openbsd \ 6726380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes libc_stack_protector \ 673b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes libc_syscalls \ 674eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes libc_tzcode \ 675eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes 6761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 6771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 678c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang# TODO: split out the asflags. 679c97c5fc7880267fd835d22946a920bf370461cf2Ying WangLOCAL_ASFLAGS := $(LOCAL_CFLAGS) 680c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang 681f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 682f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files)) 683f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS)) 6841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 6851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 687ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 68849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a 68949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 69049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# 69149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not 69291a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# include malloc. It's useful in situations when the user wants 69391a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# to provide their own malloc implementation, or wants to 69491a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# explicitly disallow the use of the use of malloc, 69591a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# such as in the dynamic loader. 69649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 69749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS) 69849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 69949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \ 700f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_arch_static_src_files) \ 701f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_static_common_src_files) \ 702f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/libc_init_static.cpp 70349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 70449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 7056a51defa034a1c033ed01f7de444c0a4fc615249David 'Digit' TurnerLOCAL_CFLAGS := $(libc_common_cflags) \ 706762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -DLIBC_STATIC 707762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 708762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 70949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 71049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc 711d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 71249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 71349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES := 71449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 715f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 716f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files)) 71749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY) 71849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 71949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 72049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 7211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a 7221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 7231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 7241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 726f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_arch_static_src_files) \ 727f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_static_common_src_files) \ 728f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/dlmalloc.c \ 729f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_common.cpp \ 730f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/libc_init_static.cpp \ 7311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 732b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := $(libc_common_cflags) \ 733762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines -DLIBC_STATIC 734762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 735762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 7361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 737ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc 738d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 7391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 7401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 7411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 742f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 743f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files)) 7441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 7451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 747ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 7481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so 7491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 7501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 7511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 75266759d6041b33706c3a92dde48492ba4f2bbab2fElliott HughesLOCAL_CFLAGS := $(libc_common_cflags) 753762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 754762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 7551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 7561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 758e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes $(libc_arch_dynamic_src_files) \ 759e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes $(libc_static_common_src_files) \ 760e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/dlmalloc.c \ 761e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/malloc_debug_common.cpp \ 762e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/debug_mapinfo.cpp \ 763e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/debug_stacktrace.cpp \ 764e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/pthread_debug.cpp \ 765e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes bionic/libc_init_dynamic.cpp \ 7661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE:= libc 768d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 769914d8d4cff10f023ccd382fb43b2c7833dd34f72Elliott HughesLOCAL_REQUIRED_MODULES := tzdata 7701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, 7721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This 7731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared 7741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it 7751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries. That would 7761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# create an "cloaked" dependency on libgcc.a in libc though the libraries, which is not what 7771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted! 7781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl 7801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 7811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 7821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 783f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 78476c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files)) 78576c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_static_common_src_files)) 786f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# special for arm 787f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_NO_CRT_arm := true 788f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS_arm += -DCRT_LEGACY_WORKAROUND 789f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_arm += \ 790f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-common/bionic/crtbegin_so.c \ 791f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-arm/bionic/atexit_legacy.c \ 792f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang arch-common/bionic/crtend_so.S 793f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang 7941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 7951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 7961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 797b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# For all builds, except for the -user build we will enable memory 798b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# allocation checking (including memory leaks, buffer overwrites, etc.) 799b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Note that all these checks are also controlled by env. settings 800b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# that can enable, or disable specific checks. Note also that some of 801b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# the checks are available only in emulator and are implemeted in 802b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_qemu_instrumented.so. 803b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineifneq ($(TARGET_BUILD_VARIANT),user) 804b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 805ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 806b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_leak.so 8071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 8081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 8091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 810ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := \ 811f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_common_cflags) \ 812f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -DMALLOC_LEAK_CHECK 813762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 814762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 8151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 8161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 8171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 8181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 819f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/debug_mapinfo.cpp \ 820f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/debug_stacktrace.cpp \ 821f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_leak.cpp \ 822f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_check.cpp \ 8231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 824b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_leak 825d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 8261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 827e007775f4b21f6b94078ed1d34b753435ba28fdaPavel ChupinLOCAL_SHARED_LIBRARIES := libc libdl 828b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 829b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SYSTEM_SHARED_LIBRARIES := 830aa46fa24035f3ab020f9a7abd86c25ae2196bb32Bruce BeareLOCAL_ALLOW_UNDEFINED_SYMBOLS := true 831368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev 832b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't install on release build 833b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 8341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 835f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 836b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(BUILD_SHARED_LIBRARY) 837b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 838b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 839b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 840b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_qemu.so 841b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 842b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(CLEAR_VARS) 843b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 844b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := \ 845f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang $(libc_common_cflags) \ 846f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang -DMALLOC_QEMU_INSTRUMENT 847762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags) 848762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags) 849b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 850b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_C_INCLUDES := $(libc_common_c_includes) 851b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 852b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SRC_FILES := \ 853f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang bionic/malloc_debug_qemu.cpp 854b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 855b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_qemu 856d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) 857b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 8587c0c3793722aea293c45921ef50e4adcdf9645ceMathias AgopianLOCAL_SHARED_LIBRARIES := libc libdl 8591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 8601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 861368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev 8621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build 863b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 8641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 865f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags)) 8661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 8671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 868f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif #!user 869b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 870b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 8711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 8721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH)) 873