Changeset 3424

Show
Ignore:
Timestamp:
08/08/07 12:34:07 (4 years ago)
Author:
tg
Message:

make ISO C99 math support optional; not yet tested

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Config.in

    r3373 r3424  
    171171          You start with a GUI project, if you have this tools installed. 
    172172 
     173config FWRT_ISOMATH 
     174        bool "Support ISO C99 math functions (RECOMMENDED)" 
     175        default y 
     176        help 
     177          This will add support for ISO C99 mathematical functions to 
     178          uClibc, at a cost of less than 40K on mips. 
     179 
    173180config FWRT_UNICODE 
    174181        bool "Enable support for the UTF-8 locale" 
  • trunk/freewrt/mk/build.mk

    r3373 r3424  
    1616                        tags 
    1717 
    18 MAKECLEAN_SYMBOLS=      FWRT_UNICODE _ FWRT_IPV6 
     18MAKECLEAN_SYMBOLS=      FWRT_ISOMATH FWRT_UNICODE _ FWRT_IPV6 
    1919POSTCONFIG=             @\ 
    2020        what=cleandir; \ 
  • trunk/freewrt/package/libstdcxx/Config.in

    r2703 r3424  
    44        default n 
    55        select FWRT_PACKAGE_LIBGCC 
     6        select FWRT_ISOMATH 
    67        help 
    78          G++ support library 
  • trunk/freewrt/package/uclibc++/Config.in

    r1253 r3424  
    33        tristate 
    44        default n 
     5        select FWRT_ISOMATH 
    56        help 
    67          A standard C++ library for embedded systems 
  • trunk/freewrt/toolchain/uClibc/Makefile

    r3373 r3424  
    4646ifeq ($(strip ${FWRT_UNICODE}),) 
    4747        ${SED} 'sUCLIBC_HAS_LOCALE=y# UCLIBC_HAS_LOCALE is not set' \ 
     48            ${PKG_BUILD_DIR}/.config 
     49endif 
     50ifeq ($(strip ${FWRT_ISOMATH}),) 
     51        ${SED} 'sDO_C99_MATH=y# DO_C99_MATH is not set' \ 
    4852            ${PKG_BUILD_DIR}/.config 
    4953endif 
  • trunk/freewrt/toolchain/uClibc/patches/patch-Makefile

    r3370 r3424  
    11$FreeWRT$ 
    22--- uClibc-0.9.28.orig/Makefile 2005-08-18 00:49:49.000000000 +0200 
    3 +++ uClibc-0.9.28/Makefile      2007-08-01 12:32:53.000000000 +0200 
    4 @@ -158,12 +162,7 @@ install_dev: 
     3+++ uClibc-0.9.28/Makefile      2007-08-08 12:25:38.000000000 +0200 
     4@@ -158,12 +158,7 @@ install_dev: 
    55        $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib 
    66        $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include 
     
    1616 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y) 
    1717        # Remove floating point related headers since float support is disabled. 
    18 @@ -253,7 +252,7 @@ ifeq ($(strip $(HAVE_SHARED)),y) 
     18@@ -253,7 +248,7 @@ ifeq ($(strip $(HAVE_SHARED)),y) 
    1919        $(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)lib 
    2020        $(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ 
     
    2525            set -e; \ 
    2626                $(SHELL_SET_X); \ 
    27 @@ -370,7 +369,7 @@ distclean: clean 
     27@@ -370,7 +365,7 @@ distclean: clean 
    2828 release: distclean 
    2929        cd ..;                                  \ 
  • trunk/freewrt/toolchain/uClibc/patches/patch-libm_Makefile

    r3338 r3424  
    11$FreeWRT$ 
    22--- uClibc-0.9.28.orig/libm/Makefile    2005-08-18 00:49:41.000000000 +0200 
    3 +++ uClibc-0.9.28/libm/Makefile 2007-07-24 16:46:08.000000000 +0200 
     3+++ uClibc-0.9.28/libm/Makefile 2007-08-08 12:30:26.000000000 +0200 
    44@@ -67,6 +67,7 @@ CSRC =   e_acos.c e_acosh.c e_asin.c e_a 
    55          w_hypot.c w_j0.c w_j1.c w_jn.c w_lgamma.c w_lgamma_r.c\ 
     
    1010        ceilf.o copysignf.o cosf.o coshf.o erfcf.o erff.o exp2f.o expf.o \ 
    1111        expm1f.o fabsf.o fdimf.o floorf.o fmaf.o fmaxf.o fminf.o fmodf.o \ 
     12@@ -85,8 +86,10 @@ CSRC+=   s_expm1.c s_scalbn.c s_copysign 
     13         k_cos.c e_cosh.c e_exp.c e_fmod.c e_log.c e_log10.c e_pow.c \ 
     14         k_sin.c e_sinh.c e_sqrt.c k_tan.c e_rem_pio2.c k_rem_pio2.c \ 
     15         s_finite.c 
     16-# We'll add sqrtf to avoid problems with libstdc++ 
     17-FL_MOBJ = sqrtf.o 
     18+# FreeWRT extensions (more required stuff) 
     19+CSRC+=  fpmacros.c nan.c s_rint.c e_hypot.c w_hypot.c 
     20+CSRC+=  s_round.c      # from MirBSD /usr/src/lib/libm/src/s_round.c 
     21+FL_MOBJ= sqrtf.o cosf.o floorf.o logf.o sinf.o ceilf.o rintf.o roundf.o 
     22 endif 
     23  
     24 COBJS=$(patsubst %.c,%.o, $(CSRC))