Changeset 10282


Ignore:
Timestamp:
2008-01-27T18:59:20+01:00 (9 years ago)
Author:
ralph
Message:

add uClibc version 0.9.28.2, 0.9.28.3 and snapshots for development purpose (and already deployed evaluation boards)
the version 0.9.29 is still the default version

Location:
trunk/toolchain
Files:
34 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/Config.in

    r10276 r10282  
    1313source "toolchain/binutils/Config.in" 
    1414source "toolchain/gcc/Config.in" 
     15source "toolchain/uClibc/Config.in" 
    1516 
    1617config GDB 
     
    6162 
    6263source "toolchain/gcc/Config.version" 
     64source "toolchain/uClibc/Config.version" 
  • trunk/toolchain/uClibc/Makefile

    r10276 r10282  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2008 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=uClibc 
    11 PKG_VERSION:=0.9.29 
    12 PKG_EXTRAVERSION:= 
     11PKG_VERSION:=$(strip $(subst ",, $(CONFIG_UCLIBC_VERSION)))#")) 
     12PKG_EXTRAVERSION:=$(strip $(subst ",, $(CONFIG_UCLIBC_EXTRA_VERSION)))#")) 
     13PKG_VERSION_SNAPSHOT:=$(strip $(subst ",, $(CONFIG_UCLIBC_VERSION_SNAPSHOT)))#")) 
     14ifeq ($(PKG_VERSION_SNAPSHOT),y) 
     15PKG_SOURCE_URL:=http://www.uclibc.org/downloads/snapshots 
     16else 
     17PKG_SOURCE_URL:=http://www.uclibc.org/downloads 
     18endif 
     19PATCH_DIR:=./patches/$(PKG_VERSION)$(PKG_EXTRAVERSION) 
     20CONFIG_DIR:=./config/$(PKG_VERSION)$(PKG_EXTRAVERSION) 
     21 
     22ifeq ($(PKG_VERSION),0.9.28) 
     23ifeq ($(PKG_EXTRAVERSION),.2) 
     24PKG_MD5SUM:=7a20a58ee1e2532f4610933515ea8998 
     25endif 
     26ifeq ($(PKG_EXTRAVERSION),.3) 
     27PKG_MD5SUM:=428405a36b4662980d9343b32089b5a6 
     28endif 
     29endif 
     30 
     31ifeq ($(PKG_VERSION),0.9.29) 
     32ifeq ($(PKG_EXTRAVERSION),) 
     33# currently the default version, no special sub-directory needed 
     34PATCH_DIR:=./patches 
     35CONFIG_DIR:=./config 
     36PKG_MD5SUM:=61dc55f43b17a38a074f347e74095b20 
     37endif 
     38endif 
    1339 
    1440PKG_SOURCE:=uClibc-$(PKG_VERSION)$(PKG_EXTRAVERSION).tar.bz2 
    15 PKG_SOURCE_URL:=http://www.uclibc.org/downloads 
    16 PKG_MD5SUM:=61dc55f43b17a38a074f347e74095b20 
    1741PKG_CAT:=bzcat 
    1842 
     
    4165) 
    4266 
     67define Build/Prepare/Snapshot 
     68        $(PKG_UNPACK) 
     69        rm -Rf $(PKG_BUILD_DIR) 
     70        ln -snf $(BUILD_DIR_TOOLCHAIN)/uClibc $(PKG_BUILD_DIR) 
     71        $(Build/Patch) 
     72        $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used) 
     73endef 
     74 
     75define Build/Prepare/V_0_9_28 
     76        $(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \ 
     77                $(PKG_BUILD_DIR)/.config 
     78ifeq ($(CONFIG_SOFT_FLOAT),y) 
     79        $(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' $(PKG_BUILD_DIR)/.config 
     80endif 
     81ifeq ($(CONFIG_C99_MATH),y) 
     82        $(SED) 's,.*DO_C99_MATH.*,DO_C99_MATH=y,g' $(PKG_BUILD_DIR)/.config 
     83endif 
     84endef 
     85 
    4386define Build/Prepare 
     87        @echo prepare uClibc version $(PKG_VERSION)$(PKG_EXTRAVERSION)   
     88ifeq ($(PKG_VERSION_SNAPSHOT),y) 
     89        $(call Build/Prepare/Snapshot) 
     90else 
    4491        $(call Build/Prepare/Default) 
    45         $(CP) config/$(ARCH)$(if $(wildcard config/$(ARCH).$(BOARD)),$(BOARD)) $(PKG_BUILD_DIR)/.config 
     92endif 
     93        $(CP) ./$(CONFIG_DIR)/$(ARCH)$(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),$(BOARD)) $(PKG_BUILD_DIR)/.config 
     94ifeq ($(PKG_VERSION),0.9.28) 
     95        $(call Build/Prepare/V_0_9_28) 
     96endif 
    4697        $(SED) 's,^KERNEL_HEADERS=.*,KERNEL_HEADERS=\"$(LINUX_HEADERS_DIR)/include\",g' \ 
    4798                -e 's,.*UCLIBC_HAS_FPU.*,UCLIBC_HAS_FPU=$(if $(CONFIG_SOFT_FLOAT),n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,y),g' \ 
Note: See TracChangeset for help on using the changeset viewer.