1# 2# SPDX-License-Identifier: BSD-3-Clause 3# 4# Copyright © 2022 Keith Packard 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: 9# 10# 1. Redistributions of source code must retain the above copyright 11# notice, this list of conditions and the following disclaimer. 12# 13# 2. Redistributions in binary form must reproduce the above 14# copyright notice, this list of conditions and the following 15# disclaimer in the documentation and/or other materials provided 16# with the distribution. 17# 18# 3. Neither the name of the copyright holder nor the names of its 19# contributors may be used to endorse or promote products derived 20# from this software without specific prior written permission. 21# 22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 27# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 29# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 31# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 33# OF THE POSSIBILITY OF SUCH DAMAGE. 34# 35picolibc_sources( 36 a64l.c 37 abort.c 38 abs.c 39 aligned_alloc.c 40 arc4random.c 41 arc4random_uniform.c 42 assert.c 43 assert_func.c 44 assert_no_arg.c 45 atof.c 46 atoff.c 47 atoi.c 48 atol.c 49 atoll.c 50 btowc.c 51 div.c 52 drand48.c 53 environ.c 54 eprintf.c 55 erand48.c 56 _Exit.c 57 getenv.c 58 getenv_r.c 59 getopt.c 60 getsubopt.c 61 imaxabs.c 62 imaxdiv.c 63 itoa.c 64 jrand48.c 65 l64a.c 66 labs.c 67 lcong48.c 68 ldiv.c 69 llabs.c 70 lldiv.c 71 lrand48.c 72 mblen.c 73 mbrlen.c 74 mbrtowc.c 75 mbsinit.c 76 mbsnrtowcs.c 77 mbsrtowcs.c 78 mbstowcs.c 79 mbtowc.c 80 mbtowc_r.c 81 mrand48.c 82 mstats.c 83 nrand48.c 84 putenv.c 85 rand48.c 86 rand.c 87 random.c 88 rand_r.c 89 reallocarray.c 90 reallocf.c 91 rpmatch.c 92 sb_charsets.c 93 seed48.c 94 setenv.c 95 srand.c 96 srand48.c 97 srandom.c 98 system.c 99 utoa.c 100 wcrtomb.c 101 wcsnrtombs.c 102 wcsrtombs.c 103 wcstod.c 104 wcstoimax.c 105 wcstol.c 106 wcstoll.c 107 wcstombs.c 108 wcstoul.c 109 wcstoull.c 110 wcstoumax.c 111 wctob.c 112 wctomb.c 113 wctomb_r.c 114 pico-atexit.c 115 pico-exit.c 116 pico-onexit.c 117 pico-cxa-atexit.c 118 ) 119 120picolibc_sources_flags("-fno-builtin-malloc;-fno-builtin-free" 121 nano-malloc-calloc.c 122 nano-malloc-cfree.c 123 nano-malloc-free.c 124 nano-malloc-getpagesize.c 125 nano-malloc-mallinfo.c 126 nano-malloc-malloc.c 127 nano-malloc-malloc_stats.c 128 nano-malloc-malloc_usable_size.c 129 nano-malloc-mallopt.c 130 nano-malloc-memalign.c 131 nano-malloc-posix_memalign.c 132 nano-malloc-pvalloc.c 133 nano-malloc-realloc.c 134 nano-malloc-valloc.c 135 ) 136