Add an advanced build option to force compiling and linking our reduced C library (probably useful for the sim).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27059 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-06-22 18:34:03 +00:00
parent be66e4d642
commit f32bd593c4
11 changed files with 38 additions and 16 deletions

View file

@ -46,22 +46,41 @@ libc/strtok.c
/* alsa on linux requires a more advanced sprintf, i.e. not ours */
libc/sprintf.c
#endif /* PLATFORM_NATIVE || __MINGW32__ || __CYGWIN__ */
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(HAVE_ROCKBOX_C_LIBRARY)
libc/atoi.c
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
/* our ctype.[ch] comes from newlib and is incompitble with most desktop's ctype */
libc/ctype.c
libc/memcmp.c
#endif
libc/memchr.c
libc/memcmp.c
#if !defined(CPU_SH) && !defined(CPU_COLDFIRE) && !defined(CPU_ARM)
#if !defined(CPU_MIPS)
libc/memcpy.c
libc/memset.c
#endif /* CPU_MIPS */
libc/memmove.c
#endif /* CPU_* */
libc/qsort.c
libc/random.c
libc/strcat.c
libc/strchr.c
libc/strcmp.c
libc/strcpy.c
#if !defined(CPU_SH) && !defined(CPU_COLDFIRE)
libc/strlen.c
#endif
libc/strncmp.c
libc/strrchr.c
libc/strstr.c
libc/mktime.c
#endif /* !defined(SIMULATOR)*/
#endif /* CONFIG_PLATFORM || HAVE_ROCKBOX_C_LIBRARY */
/* Common */
common/version.c
@ -414,7 +433,6 @@ target/coldfire/i2c-coldfire.c
target/arm/support-arm.S
target/arm/memcpy-arm.S
target/arm/memmove-arm.S
libc/strlen.c
#ifndef SIMULATOR
target/arm/memset-arm.S
target/arm/memset16-arm.S
@ -509,10 +527,7 @@ target/arm/crt0.S
#elif defined(CPU_MIPS)
#undef mips
/*target/mips/strlen.S*/
libc/memmove.c
common/memset16.c
libc/strlen.c
target/mips/ffs-mips.S
target/mips/memcpy-mips.S
target/mips/memset-mips.S
@ -526,11 +541,7 @@ target/mips/ingenic_jz47xx/crt0.S
#ifdef HAVE_PRIORITY_SCHEDULING
common/ffs.c
#endif
libc/memcpy.c
libc/memmove.c
libc/memset.c
common/memset16.c
libc/strlen.c
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
crt0.S
drivers/i2c.c

View file

@ -35,6 +35,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
#include "_ansi.h" /* for _DEFUN */
/* Nonzero if X is not aligned on a "long" boundary. */
#define UNALIGNED(X) ((long)X & (sizeof (long) - 1))

View file

@ -37,7 +37,7 @@ QUICKREF
*/
#include <string.h>
#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \

View file

@ -33,7 +33,7 @@ QUICKREF
*/
#include "config.h"
#include <_ansi.h>
#include "_ansi.h" /* for _DEFUN */
#include <string.h>
/* Nonzero if either X or Y is not aligned on a "long" boundary. */

View file

@ -35,6 +35,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
#include "_ansi.h" /* for _DEFUN */
/* Nonzero if X is not aligned on a "long" boundary. */
#define UNALIGNED(X) ((long)X & (sizeof (long) - 1))

View file

@ -37,6 +37,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \

View file

@ -34,6 +34,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
#include "_ansi.h" /* for _DEFUN */
/*SUPPRESS 560*/
/*SUPPRESS 530*/

View file

@ -32,7 +32,7 @@ QUICKREF
*/
#include "config.h"
#include <_ansi.h>
#include "_ansi.h"
#include <string.h>
#include <limits.h>

View file

@ -38,6 +38,7 @@ QUICKREF
#include <string.h>
#include <limits.h>
#include "_ansi.h" /* for _DEFUN */
/* Nonzero if either X or Y is not aligned on a "long" boundary. */
#define UNALIGNED(X, Y) \

View file

@ -34,6 +34,7 @@ QUICKREF
*/
#include <string.h>
#include "_ansi.h" /* for _DEFUN */
char *
_DEFUN (strrchr, (s, i),

9
tools/configure vendored
View file

@ -383,8 +383,9 @@ whichadvanced () {
else
interact=1
echo ""
echo "Enter your developer options (press enter when done)"
printf "(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile, (T)est plugins"
printf "Enter your developer options (press only enter when done)\n\
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\
(T)est plugins, S(m)all C lib:"
if [ "$memory" = "2" ]; then
printf ", (8)MB MOD"
fi
@ -425,6 +426,10 @@ whichadvanced () {
echo "logf() support enabled"
logf="yes"
;;
[Mm])
echo "Using Rockbox' small C library"
extradefines="$extradefines -DHAVE_ROCKBOX_C_LIBRARY"
;;
[Tt])
echo "Including test plugins"
extradefines="$extradefines -DHAVE_TEST_PLUGINS"