Changeset 48

Show
Ignore:
Timestamp:
06/11/06 23:06:20 (6 years ago)
Author:
wbx
Message:

cosmetic changes to Makefile/build.mk
remove configtest.pl
cosmetic changes in freewrt/toolchain/sed/Makefile, add md5sum

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r46 r48  
    5252cleandir: prereq 
    5353        ${GMAKE_INV} cleandir 
    54         -rm -rf lbin 
    55         -rm -f prereq 
     54        @-rm -rf lbin 
     55        @-rm -f prereq 
    5656 
    5757distclean: prereq 
    5858        ${GMAKE_INV} distclean 
    59         -rm -rf lbin 
    60         -rm -f prereq 
     59        @-rm -rf lbin 
     60        @-rm -f prereq 
    6161 
    6262image_clean: prereq 
     
    8282 
    8383prereq: 
    84         -rm -rf prereq lbin 
    85         mkdir lbin 
    86         if which gmake >/dev/null 2>&1; then \ 
     84        @-rm -rf prereq lbin 
     85        @mkdir lbin 
     86        @if which gmake >/dev/null 2>&1; then \ 
    8787                ln -s $$(which gmake) lbin/gmake; \ 
    8888        else \ 
    8989                ln -s $$(which make) lbin/gmake; \ 
    9090        fi 
    91         if ! which md5sum >/dev/null 2>&1; then \ 
     91        @if ! which md5sum >/dev/null 2>&1; then \ 
    9292                cp scripts/md5sum.bsd lbin/md5sum; \ 
    9393                chmod 555 lbin/md5sum; \ 
    9494        fi 
    95         touch $@ 
     95        @touch $@ 
  • trunk/freewrt/build.mk

    r46 r48  
    2626export TOPDIR 
    2727 
    28 ifneq ($(DEVELOPER),) 
    29 CONFIG_CONFIG_IN = Config.in.devel 
    30 else 
    3128CONFIG_CONFIG_IN = Config.in 
    32 endif 
    3329CONFIG = package/config 
    3430 
     
    4743 
    4844.NOTPARALLEL: 
    49 .PHONY: all world clean cleandir distclean image_clean target_clean source configtest 
     45.PHONY: all world clean cleandir distclean image_clean target_clean source 
    5046 
    5147############################################################# 
     
    5955include .config.cmd 
    6056 
    61 world: $(DL_DIR) $(BUILD_DIR) configtest  
     57world: $(DL_DIR) $(BUILD_DIR) 
    6258        $(MAKE) -f build.mk toolchain/install target/compile package/compile root_clean package/install target/install package_index 
    6359        @$(TRACE) Build complete. 
    64  
    65 configtest: 
    66         -cp .config .config.test 
    67         -scripts/configtest.pl 
    6860 
    6961package_index: 
     
    137129menuconfig: $(CONFIG)/mconf 
    138130        -touch .config 
    139         -cp .config .config.test 
    140131        @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) 
    141         -./scripts/configtest.pl 
    142132 
    143133config: $(CONFIG)/conf 
    144134        -touch .config 
    145         -cp .config .config.test 
    146135        @$(CONFIG)/conf $(CONFIG_CONFIG_IN) 
    147         -./scripts/configtest.pl 
    148136 
    149137oldconfig: $(CONFIG)/conf 
    150138        -touch .config 
    151         -cp .config .config.test 
    152139        @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
    153         -./scripts/configtest.pl 
    154140 
    155141randconfig: $(CONFIG)/conf 
    156142        -touch .config 
    157         -cp .config .config.test 
    158143        @$(CONFIG)/conf -r $(CONFIG_CONFIG_IN) 
    159         -./scripts/configtest.pl 
    160144 
    161145allyesconfig: $(CONFIG)/conf 
    162146        -touch .config 
    163         -cp .config .config.test 
    164147        @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 
    165         -./scripts/configtest.pl 
    166148 
    167149allnoconfig: $(CONFIG)/conf 
    168150        -touch .config 
    169         -cp .config .config.test 
    170151        @$(CONFIG)/conf -n $(CONFIG_CONFIG_IN) 
    171         -./scripts/configtest.pl 
    172152 
    173153endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) 
  • trunk/freewrt/toolchain/sed/Makefile

    r43 r48  
     1# $FreeWRT$ 
     2 
    13include $(TOPDIR)/rules.mk 
    24 
    3 ############################################################# 
    4 # 
    5 # sed 
    6 # 
    7 ############################################################# 
    85SED_VER:=4.1.2 
    96SED_SOURCE:=sed-$(SED_VER).tar.gz 
    107SED_SITE:=ftp://ftp.gnu.org/gnu/sed 
     8SED_MD5SUM:=928f0e06422f414091917401f1a834d0 
     9 
    1110SED_CAT:=zcat 
    12 SED_DIR1:=$(TOOL_BUILD_DIR)/sed-$(SED_VER) 
    13 SED_DIR2:=$(BUILD_DIR)/sed-$(SED_VER) 
     11SED_DIR:=$(TOOL_BUILD_DIR)/sed-$(SED_VER) 
    1412SED_BINARY:=sed/sed 
    1513SED_TARGET_BINARY:=bin/sed 
    16 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true) 
    1714SED_CPPFLAGS=-D_FILE_OFFSET_BITS=64 
    18 endif 
    1915HOST_SED_TARGET=$(shell ./sedcheck.sh) 
    2016 
    2117$(DL_DIR)/$(SED_SOURCE): 
    2218        mkdir -p $(DL_DIR) 
    23         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SED_SOURCE) x $(SED_SITE) 
     19        $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SED_SOURCE) $(SED_MD5SUM) $(SED_SITE) 
    2420 
    25 ############################################################# 
    26 
    27 # build sed for use on the host system 
    28 
    29 ############################################################# 
    30  
    31 $(SED_DIR1)/.unpacked: $(DL_DIR)/$(SED_SOURCE) 
     21$(SED_DIR)/.unpacked: $(DL_DIR)/$(SED_SOURCE) 
    3222        mkdir -p $(TOOL_BUILD_DIR) 
    3323        mkdir -p $(STAGING_DIR)/bin; 
    3424        $(SED_CAT) $(DL_DIR)/$(SED_SOURCE) | (cd $(TOOL_BUILD_DIR); $(TAR_EXTRACT) ) 
    35         touch $(SED_DIR1)/.unpacked 
     25        touch $@ 
    3626 
    37 $(SED_DIR1)/.configured: $(SED_DIR1)/.unpacked 
    38         (cd $(SED_DIR1); rm -rf config.cache; \ 
     27$(SED_DIR)/.configured: $(SED_DIR)/.unpacked 
     28        (cd $(SED_DIR); rm -rf config.cache; \ 
    3929                ./configure \ 
    4030                --prefix=$(STAGING_DIR) \ 
    4131                --prefix=/usr \ 
    4232        ); 
    43         touch $(SED_DIR1)/.configured 
     33        touch $@ 
    4434 
    45 $(SED_DIR1)/$(SED_BINARY): $(SED_DIR1)/.configured 
    46         $(MAKE) -C $(SED_DIR1
     35$(SED_DIR)/$(SED_BINARY): $(SED_DIR)/.configured 
     36        $(MAKE) -C $(SED_DIR
    4737 
    4838# This stuff is needed to work around GNU make deficiencies 
    49 build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY) 
     39build-sed-host-binary: $(SED_DIR)/$(SED_BINARY) 
    5040        @if [ -L $(STAGING_DIR)/$(SED_TARGET_BINARY) ] ; then \ 
    5141                rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY); fi; 
    5242        @if [ ! -f $(STAGING_DIR)/$(SED_TARGET_BINARY) -o $(STAGING_DIR)/$(SED_TARGET_BINARY) \ 
    53         -ot $(SED_DIR1)/$(SED_BINARY) ] ; then \ 
     43        -ot $(SED_DIR)/$(SED_BINARY) ] ; then \ 
    5444            set -x; \ 
    5545            mkdir -p $(STAGING_DIR)/bin; \ 
    56             $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SED_DIR1) install; \ 
     46            $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SED_DIR) install; \ 
    5747            mv $(STAGING_DIR)/usr/bin/sed $(STAGING_DIR)/bin/; \ 
    5848            rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \ 
     
    7161install: $(HOST_SED_TARGET) 
    7262clean:  
    73         rm -rf $(SED_DIR1
     63        rm -rf $(SED_DIR
    7464        rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY) 
    7565