# HG changeset patch # User "Yann E. MORIN" # Date 1237764823 0 # Node ID 87f25f1d25d0e4964dea3d90c352c3b39ca38b46 # Parent 6671c646717177e57045f68da0e5ae60d28531a5 Add skeleton for newlib: - config file, with only version selection - build script, with empty functions - added --newlib to scripts/addToolVersion.sh /branches/newlib/scripts/build/libc/newlib.sh | 31 31 0 0 +++++++++++++++++++++++++ /branches/newlib/scripts/addToolVersion.sh | 7 4 3 0 +++--- /branches/newlib/config/libc/newlib.in | 53 53 0 0 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 3 deletions(-) diff -r 6671c6467171 -r 87f25f1d25d0 config/libc/newlib.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/libc/newlib.in Sun Mar 22 23:33:43 2009 +0000 @@ -0,0 +1,53 @@ +# options for newlib +# depends on EXPERIMENTAL + +config LIBC_newlib + help + A really small C library, primarly used for bare-metal. + Also serves as C library for Cygwin. + +choice + bool + prompt "newlib version" + +config LIBC_V_1_14_0 + bool + prompt "1.14.0" + +config LIBC_V_1_15_0 + bool + prompt "1.15.0" + +config LIBC_V_1_16_0 + bool + prompt "1.16.0" + +config LIBC_V_1_17_0 + bool + prompt "1.17.0" + +# CT_INSERT_VERSION_ABOVE +# Don't remove above line! + +config LIBC_NEWLIB_CVS + bool + prompt "CVS snapshot" + +if LIBC_NEWLIB_CVS +config LIBC_NEWLIB_CVS_DATE + string + prompt "checkout as of date" + help + The date, in ISO-8601 format, at which to check out the repository. +endif # LIBC_NEWLIB_CVS + +endchoice + +config LIBC_VERSION + string + default "1.14.0" if LIBC_V_1_14_0 + default "1.15.0" if LIBC_V_1_15_0 + default "1.16.0" if LIBC_V_1_16_0 + default "1.17.0" if LIBC_V_1_17_0 +# CT_INSERT_VERSION_STRING_ABOVE +# Don't remove above line! diff -r 6671c6467171 -r 87f25f1d25d0 scripts/addToolVersion.sh --- a/scripts/addToolVersion.sh Sun Mar 22 23:15:02 2009 +0000 +++ b/scripts/addToolVersion.sh Sun Mar 22 23:33:43 2009 +0000 @@ -11,9 +11,9 @@ cat <<-EOF Usage: ${myname} <[options] version [...]> ... 'tool' in one of: - --gcc, --binutils, --glibc, --eglibc, --uClibc, --linux, - --gdb, --dmalloc, --duma, --strace, --ltrace, --libelf - --gmp, --mpfr + --gcc, --binutils, --glibc, --eglibc, --uClibc, --newlib, + --linux, --gdb, --dmalloc, --duma, --strace, --ltrace, + --libelf, --gmp, --mpfr Valid options for all tools: --stable, -s, +x (default) @@ -124,6 +124,7 @@ --glibc) EXP=; OBS=; cat=LIBC; tool=glibc; tool_prefix=libc;; --eglibc) EXP=; OBS=; cat=LIBC; tool=eglibc; tool_prefix=libc;; --uClibc) EXP=; OBS=; cat=LIBC; tool=uClibc; tool_prefix=libc;; + --newlib) EXP=; OBS=; cat=LIBC; tool=newlib; tool_prefix=libc;; --linux) EXP=; OBS=; cat=KERNEL; tool=linux; tool_prefix=kernel;; --gdb) EXP=; OBS=; cat=GDB; tool=gdb; tool_prefix=debug;; --dmalloc) EXP=; OBS=; cat=DMALLOC; tool=dmalloc; tool_prefix=debug;; diff -r 6671c6467171 -r 87f25f1d25d0 scripts/build/libc/newlib.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/build/libc/newlib.sh Sun Mar 22 23:33:43 2009 +0000 @@ -0,0 +1,31 @@ +# This file adds functions to build new +# Copyright 2009 Yann E. MORIN +# Licensed under the GPL v2. See COPYING in the root of this package + +do_libc_get() { + : +} + +do_libc_extract() { + : +} + +do_libc_check_config() { + : +} + +do_libc_headers() { + : +} + +do_libc_start_files() { + : +} + +do_libc() { + : +} + +do_libc_finish() { + : +}