1# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved. 2# 3# Redistribution and use in source and binary forms, with or without modification, 4# are permitted provided that the following conditions are met: 5# 6# 1. Redistributions of source code must retain the above copyright notice, this list of 7# conditions and the following disclaimer. 8# 9# 2. Redistributions in binary form must reproduce the above copyright notice, this list 10# of conditions and the following disclaimer in the documentation and/or other materials 11# provided with the distribution. 12# 13# 3. Neither the name of the copyright holder nor the names of its contributors may be used 14# to endorse or promote products derived from this software without specific prior written 15# permission. 16# 17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 29MUSLPORTINGDIR = get_path_info(".", "abspath") 30 31MUSL_INCLUDE_DIRS = [ "$MUSLPORTINGDIR/include" ] 32 33MUSL_LIBC_OPT_SRC_FOR_ARM = 34 [ "$MUSLPORTINGDIR/src/string/arch/arm/memcpy_le.S" ] 35 36MUSL_LIBC_SRC = [ 37 "$MUSLPORTINGDIR/src/ctype/__ctype_get_mb_cur_max.c", 38 "$MUSLPORTINGDIR/src/ctype/isalnum.c", 39 "$MUSLPORTINGDIR/src/ctype/isascii.c", 40 "$MUSLPORTINGDIR/src/ctype/isdigit.c", 41 "$MUSLPORTINGDIR/src/ctype/islower.c", 42 "$MUSLPORTINGDIR/src/ctype/isprint.c", 43 "$MUSLPORTINGDIR/src/ctype/isspace.c", 44 "$MUSLPORTINGDIR/src/ctype/isupper.c", 45 "$MUSLPORTINGDIR/src/ctype/isxdigit.c", 46 "$MUSLPORTINGDIR/src/ctype/tolower.c", 47 "$MUSLPORTINGDIR/src/ctype/toupper.c", 48 "$MUSLPORTINGDIR/src/env/__stack_chk_fail.c", 49 "$MUSLPORTINGDIR/src/errno/strerror.c", 50 "$MUSLPORTINGDIR/src/errno/__errno_location.c", 51 "$MUSLPORTINGDIR/src/exit/abort.c", 52 "$MUSLPORTINGDIR/src/exit/assert.c", 53 "$MUSLPORTINGDIR/src/exit/atexit.c", 54 "$MUSLPORTINGDIR/src/internal/floatscan.c", 55 "$MUSLPORTINGDIR/src/internal/intscan.c", 56 "$MUSLPORTINGDIR/src/internal/shgetc.c", 57 "$MUSLPORTINGDIR/src/locale/__lctrans.c", 58 "$MUSLPORTINGDIR/src/locale/c_locale.c", 59 "$MUSLPORTINGDIR/src/locale/iconv.c", 60 "$MUSLPORTINGDIR/src/locale/langinfo.c", 61 "$MUSLPORTINGDIR/src/misc/dirname.c", 62 "$MUSLPORTINGDIR/src/misc/realpath.c", 63 "$MUSLPORTINGDIR/src/multibyte/internal.c", 64 "$MUSLPORTINGDIR/src/multibyte/mbrtowc.c", 65 "$MUSLPORTINGDIR/src/multibyte/mbsinit.c", 66 "$MUSLPORTINGDIR/src/multibyte/mbtowc.c", 67 "$MUSLPORTINGDIR/src/multibyte/wcrtomb.c", 68 "$MUSLPORTINGDIR/src/multibyte/wctomb.c", 69 "$MUSLPORTINGDIR/src/network/h_errno.c", 70 "$MUSLPORTINGDIR/src/network/htonl.c", 71 "$MUSLPORTINGDIR/src/network/htons.c", 72 "$MUSLPORTINGDIR/src/network/ntohl.c", 73 "$MUSLPORTINGDIR/src/network/ntohs.c", 74 "$MUSLPORTINGDIR/src/prng/rand.c", 75 "$MUSLPORTINGDIR/src/prng/random.c", 76 "$MUSLPORTINGDIR/src/regex/regcomp.c", 77 "$MUSLPORTINGDIR/src/regex/regexec.c", 78 "$MUSLPORTINGDIR/src/regex/tre-mem.c", 79 "$MUSLPORTINGDIR/src/stdio/__fdopen.c", 80 "$MUSLPORTINGDIR/src/stdio/__fmodeflags.c", 81 "$MUSLPORTINGDIR/src/stdio/__lockfile.c", 82 "$MUSLPORTINGDIR/src/stdio/__overflow.c", 83 "$MUSLPORTINGDIR/src/stdio/__stdio_close.c", 84 "$MUSLPORTINGDIR/src/stdio/__stdio_read.c", 85 "$MUSLPORTINGDIR/src/stdio/__stdio_seek.c", 86 "$MUSLPORTINGDIR/src/stdio/__stdio_write.c", 87 "$MUSLPORTINGDIR/src/stdio/__stdout_write.c", 88 "$MUSLPORTINGDIR/src/stdio/__string_read.c", 89 "$MUSLPORTINGDIR/src/stdio/__toread.c", 90 "$MUSLPORTINGDIR/src/stdio/__towrite.c", 91 "$MUSLPORTINGDIR/src/stdio/__uflow.c", 92 "$MUSLPORTINGDIR/src/stdio/clearerr.c", 93 "$MUSLPORTINGDIR/src/stdio/fclose.c", 94 "$MUSLPORTINGDIR/src/stdio/feof.c", 95 "$MUSLPORTINGDIR/src/stdio/fflush.c", 96 "$MUSLPORTINGDIR/src/stdio/fgetc.c", 97 "$MUSLPORTINGDIR/src/stdio/fgets.c", 98 "$MUSLPORTINGDIR/src/stdio/fileno.c", 99 "$MUSLPORTINGDIR/src/stdio/fopen.c", 100 "$MUSLPORTINGDIR/src/stdio/fputc.c", 101 "$MUSLPORTINGDIR/src/stdio/fputs.c", 102 "$MUSLPORTINGDIR/src/stdio/fread.c", 103 "$MUSLPORTINGDIR/src/stdio/fseek.c", 104 "$MUSLPORTINGDIR/src/stdio/ftell.c", 105 "$MUSLPORTINGDIR/src/stdio/fwrite.c", 106 "$MUSLPORTINGDIR/src/stdio/ofl.c", 107 "$MUSLPORTINGDIR/src/stdio/ofl_add.c", 108 "$MUSLPORTINGDIR/src/stdio/perror.c", 109 "$MUSLPORTINGDIR/src/stdio/remove.c", 110 "$MUSLPORTINGDIR/src/stdio/rewind.c", 111 "$MUSLPORTINGDIR/src/stdio/snprintf.c", 112 "$MUSLPORTINGDIR/src/stdio/sscanf.c", 113 "$MUSLPORTINGDIR/src/stdio/stderr.c", 114 "$MUSLPORTINGDIR/src/stdio/stdin.c", 115 "$MUSLPORTINGDIR/src/stdio/stdout.c", 116 "$MUSLPORTINGDIR/src/stdio/ungetc.c", 117 "$MUSLPORTINGDIR/src/stdio/vfprintf.c", 118 "$MUSLPORTINGDIR/src/stdio/vfscanf.c", 119 "$MUSLPORTINGDIR/src/stdio/vsnprintf.c", 120 "$MUSLPORTINGDIR/src/stdio/vsprintf.c", 121 "$MUSLPORTINGDIR/src/stdio/vsscanf.c", 122 "$MUSLPORTINGDIR/src/stdlib/abs.c", 123 "$MUSLPORTINGDIR/src/stdlib/atof.c", 124 "$MUSLPORTINGDIR/src/stdlib/atoi.c", 125 "$MUSLPORTINGDIR/src/stdlib/atol.c", 126 "$MUSLPORTINGDIR/src/stdlib/atoll.c", 127 "$MUSLPORTINGDIR/src/stdlib/bsearch.c", 128 "$MUSLPORTINGDIR/src/stdlib/llabs.c", 129 "$MUSLPORTINGDIR/src/stdlib/strtod.c", 130 "$MUSLPORTINGDIR/src/stdlib/strtol.c", 131 "$MUSLPORTINGDIR/src/string/memchr.c", 132 "$MUSLPORTINGDIR/src/string/memcmp.c", 133 "$MUSLPORTINGDIR/src/string/memcpy.c", 134 "$MUSLPORTINGDIR/src/string/memmove.c", 135 "$MUSLPORTINGDIR/src/string/memrchr.c", 136 "$MUSLPORTINGDIR/src/string/memset.c", 137 "$MUSLPORTINGDIR/src/string/stpcpy.c", 138 "$MUSLPORTINGDIR/src/string/stpncpy.c", 139 "$MUSLPORTINGDIR/src/string/strcasecmp.c", 140 "$MUSLPORTINGDIR/src/string/strcat.c", 141 "$MUSLPORTINGDIR/src/string/strchr.c", 142 "$MUSLPORTINGDIR/src/string/strchrnul.c", 143 "$MUSLPORTINGDIR/src/string/strcmp.c", 144 "$MUSLPORTINGDIR/src/string/strcpy.c", 145 "$MUSLPORTINGDIR/src/string/strcspn.c", 146 "$MUSLPORTINGDIR/src/string/strdup.c", 147 "$MUSLPORTINGDIR/src/string/strlen.c", 148 "$MUSLPORTINGDIR/src/string/strncasecmp.c", 149 "$MUSLPORTINGDIR/src/string/strncat.c", 150 "$MUSLPORTINGDIR/src/string/strncmp.c", 151 "$MUSLPORTINGDIR/src/string/strncpy.c", 152 "$MUSLPORTINGDIR/src/string/strnlen.c", 153 "$MUSLPORTINGDIR/src/string/strrchr.c", 154 "$MUSLPORTINGDIR/src/string/strspn.c", 155 "$MUSLPORTINGDIR/src/string/strstr.c", 156 "$MUSLPORTINGDIR/src/string/strtok.c", 157 "$MUSLPORTINGDIR/src/string/strtok_r.c", 158 "$MUSLPORTINGDIR/src/string/wcschr.c", 159 "$MUSLPORTINGDIR/src/string/wcslen.c", 160 "$MUSLPORTINGDIR/src/time/__month_to_secs.c", 161 "$MUSLPORTINGDIR/src/time/__secs_to_tm.c", 162 "$MUSLPORTINGDIR/src/time/__tm_to_secs.c", 163 "$MUSLPORTINGDIR/src/time/__tz.c", 164 "$MUSLPORTINGDIR/src/time/__year_to_secs.c", 165 "$MUSLPORTINGDIR/src/time/asctime.c", 166 "$MUSLPORTINGDIR/src/time/asctime_r.c", 167 "$MUSLPORTINGDIR/src/time/ctime.c", 168 "$MUSLPORTINGDIR/src/time/strftime.c", 169 "$MUSLPORTINGDIR/src/time/strptime.c", 170 "$MUSLPORTINGDIR/src/malloc/malloc.c", 171] 172 173MUSL_LIBM_SRC = [ 174 "$MUSLPORTINGDIR/src/math/__fpclassify.c", 175 "$MUSLPORTINGDIR/src/math/__fpclassifyl.c", 176 "$MUSLPORTINGDIR/src/math/__math_divzero.c", 177 "$MUSLPORTINGDIR/src/math/__math_divzerof.c", 178 "$MUSLPORTINGDIR/src/math/__math_invalid.c", 179 "$MUSLPORTINGDIR/src/math/__math_invalidf.c", 180 "$MUSLPORTINGDIR/src/math/__math_oflow.c", 181 "$MUSLPORTINGDIR/src/math/__math_oflowf.c", 182 "$MUSLPORTINGDIR/src/math/__math_uflow.c", 183 "$MUSLPORTINGDIR/src/math/__math_uflowf.c", 184 "$MUSLPORTINGDIR/src/math/__math_xflow.c", 185 "$MUSLPORTINGDIR/src/math/__math_xflowf.c", 186 "$MUSLPORTINGDIR/src/math/__signbit.c", 187 "$MUSLPORTINGDIR/src/math/__signbitl.c", 188 "$MUSLPORTINGDIR/src/math/arm/fabs.c", 189 "$MUSLPORTINGDIR/src/math/copysign.c", 190 "$MUSLPORTINGDIR/src/math/copysignl.c", 191 "$MUSLPORTINGDIR/src/math/exp_data.c", 192 "$MUSLPORTINGDIR/src/math/fabsl.c", 193 "$MUSLPORTINGDIR/src/math/floor.c", 194 "$MUSLPORTINGDIR/src/math/fmod.c", 195 "$MUSLPORTINGDIR/src/math/fmodl.c", 196 "$MUSLPORTINGDIR/src/math/frexp.c", 197 "$MUSLPORTINGDIR/src/math/frexpl.c", 198 "$MUSLPORTINGDIR/src/math/log.c", 199 "$MUSLPORTINGDIR/src/math/log_data.c", 200 "$MUSLPORTINGDIR/src/math/pow.c", 201 "$MUSLPORTINGDIR/src/math/pow_data.c", 202 "$MUSLPORTINGDIR/src/math/round.c", 203 "$MUSLPORTINGDIR/src/math/scalbn.c", 204 "$MUSLPORTINGDIR/src/math/scalbnl.c", 205] 206