cleanup; replace .PHONY with FORCE; disable gdb by default
authorFelix Fietkau <nbd@openwrt.org>
Wed, 31 May 2006 23:29:05 +0000 (23:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 31 May 2006 23:29:05 +0000 (23:29 +0000)
SVN-Revision: 3877

29 files changed:
openwrt/target/Makefile
openwrt/target/linux/ar7-2.4/Makefile
openwrt/target/linux/brcm-2.4/Makefile
openwrt/target/linux/image/Makefile
openwrt/target/linux/image/aruba/Makefile
openwrt/target/linux/image/au1000/Makefile
openwrt/target/linux/image/brcm/Makefile
openwrt/target/linux/image/jffs2.mk
openwrt/target/linux/image/jffs2/Makefile
openwrt/target/linux/image/squashfs.mk
openwrt/target/linux/image/squashfs/Makefile
openwrt/target/linux/image/tgz.mk
openwrt/target/linux/image/x86/Makefile
openwrt/target/linux/image/xscale/Makefile
openwrt/target/linux/imagebuilder/Makefile
openwrt/target/linux/kernel.mk
openwrt/target/linux/package/Makefile
openwrt/target/lzma/Makefile
openwrt/target/utils/Makefile
openwrt/toolchain/Config.in
openwrt/toolchain/Makefile
openwrt/toolchain/binutils/Makefile
openwrt/toolchain/gcc/Makefile
openwrt/toolchain/gdb/Makefile
openwrt/toolchain/ipkg-utils/Makefile
openwrt/toolchain/libnotimpl/Makefile
openwrt/toolchain/sed/Makefile
openwrt/toolchain/uClibc/Makefile
openwrt/toolchain/utils/Makefile

index 58fc5eb874e21cca380bf96f98f666c4e1782aac..709a2080a51d709881b0e65d8f4b288855a8364b 100644 (file)
@@ -13,20 +13,20 @@ compile: linux-compile
 install: image_clean linux-install
 clean: linux-clean utils-clean lzma-clean image_clean
 
-image_clean:
+image_clean: FORCE
        rm -f $(BIN_DIR)/openwrt-*
 
-%-clean:
+%-clean: FORCE
        $(MAKE) -C $(patsubst %-clean,%,$@) clean
-%-prepare:
+%-prepare: FORCE
        $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
 %-compile: %-prepare
        $(MAKE) -C $(patsubst %-compile,%,$@) compile
-%-rebuild: 
+%-rebuild: FORCE
        $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
 %-install: %-compile
        $(MAKE) -C $(patsubst %-install,%,$@) install
-linux-imagebuilder:
+linux-imagebuilder: FORCE
        $(MAKE) -C linux imagebuilder
 
 
index 207d95d9afeb4384bc718e0dc28d7e2ea05d3ea6..7775e88884664cba7dc59882de43b453e6658960 100644 (file)
@@ -60,7 +60,7 @@ $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
 
 linux-dirclean: drivers-clean
 
-drivers-clean:
+drivers-clean: FORCE
        rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
 
 
index 9447114d4e262d7fdfd17d6f75b77f9c17c83ce5..384a1ea9186e31f5de6bf501d23337a8fe924fac 100644 (file)
@@ -62,5 +62,5 @@ $(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
 
 linux-dirclean: drivers-clean
 
-drivers-clean:
+drivers-clean: FORCE
        rm -rf $(BUILD_DIR)/kernel-binary-wl
index 3b82343398d4e0ab469cc358650df9ccab1b7ed8..a5141cb542bfd814c661c152e489e40e361cfad4 100644 (file)
@@ -14,25 +14,23 @@ ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
 include ./tgz.mk
 endif
 
-prepare:
+prepare: FORCE
        $(MAKE) prepare-targets
-compile:
+compile: FORCE
        $(MAKE) compile-targets
-install:
+install: FORCE
        $(MAKE) install-targets
 
-.PHONY: prepare compile install
-
-$(BOARD)-compile:
+$(BOARD)-compile: FORCE
        $(MAKE) -C $(BOARD) prepare
        $(MAKE) -C $(BOARD) compile
 
-install-ib:
+install-ib: FORCE
        -$(MAKE) -C $(BOARD) IB_DIR="$(IB_DIR)" install-ib
        mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
        $(CP) $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/   
 
-install-prepare:
+install-prepare: FORCE
        find $(BUILD_DIR)/root -type f -not -perm +0100 | xargs chmod 0644
        find $(BUILD_DIR)/root -type f -perm +0100 | xargs chmod 0755
        find $(BUILD_DIR)/root -type d | xargs chmod 0755
@@ -40,5 +38,5 @@ install-prepare:
        chmod 0777 $(BUILD_DIR)/root/tmp
 
 rebuild: clean prepare compile install
-clean:
+clean: FORCE
        $(MAKE) clean-targets
index 0ddde20266c7a463606430994470ec867a3e2f2c..7ca076acc3254f3beaaf80f5a80e348444440c75 100644 (file)
@@ -12,10 +12,10 @@ LOADER_MAKEOPTS= \
 
 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
-lzma-loader-clean:
+lzma-loader-clean: FORCE
        $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean
 
-lzma-loader-prepare:
+lzma-loader-prepare: FORCE
        $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) prepare
 
 lzma-loader-compile: $(KDIR)/vmlinux.lzma lzma-loader-prepare
index c7158ca76116f110da8c632e540b799d11817310..2c9b1c05df7b31fd0d2e726b0e55efe633341322 100644 (file)
@@ -12,10 +12,10 @@ LOADER_MAKEOPTS= \
 
 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
-lzma-loader-clean:
+lzma-loader-clean: FORCE
        $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean
 
-lzma-loader-prepare:
+lzma-loader-prepare: FORCE
        $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) prepare
 
 lzma-loader-compile: $(KDIR)/vmlinux.lzma lzma-loader-prepare
index 0fe3ceeac7fb082d0e7e0981f7365ebe1c99de09..7e328470ae4551edb16f8e325bbff079c3e75f8f 100644 (file)
@@ -2,10 +2,10 @@ include $(TOPDIR)/rules.mk
 
 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
-lzma-loader-clean:
+lzma-loader-clean: FORCE
        $(MAKE) -C lzma-loader clean
 
-lzma-loader-prepare:
+lzma-loader-prepare: FORCE
        $(MAKE) -C lzma-loader prepare
 
 lzma-loader-compile: lzma-loader-prepare
index 44d892415e7ad57f1641c09f71b7bf85d0b77625..c1d07a22b2e80f6b65f8fea98293e97a7caac168 100644 (file)
@@ -6,13 +6,13 @@ endif
 
 #JFFS2OPTS += -Xlzo -msize -Xlzari
 
-jffs2-prepare:
+jffs2-prepare: FORCE
        $(MAKE) -C jffs2 prepare
 
 jffs2-compile: prepare-targets
        $(MAKE) -C jffs2 compile
 
-jffs2-clean:
+jffs2-clean: FORCE
        $(MAKE) -C jffs2 clean
        rm -f $(KDIR)/root.jffs2*
 
@@ -28,11 +28,11 @@ ifeq ($(IB),)
 jffs2-install: compile-targets $(BOARD)-compile
 endif
 
-jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB
+jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB FORCE
        $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
        $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
 
-jffs2-install-ib: compile-targets
+jffs2-install-ib: compile-targets FORCE
        mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
        $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
 
index 071bacdd47fcda65be04e146a03ec1cf9fc7a89d..0273d52fd11e6e13b4a1274bb4d574a7a6bdddc9 100644 (file)
@@ -24,6 +24,6 @@ source: $(DL_DIR)/$(MTD_SOURCE)
 prepare: $(MTD_DIR)/.unpacked
 compile: $(MTD_DIR)/util/mkfs.jffs2 $(STAGING_DIR)/bin/mkfs.jffs2
 install: 
-clean:
+clean: FORCE
        rm -rf $(MTD_DIR)
 
index abe21563ecc9b64a1f7ff06fdcc4a75394a2b304..184330cfe7276d70db689337e7cde79f370a162f 100644 (file)
@@ -4,13 +4,13 @@ else
 endian := be
 endif
 
-squashfs-prepare:
+squashfs-prepare: FORCE
        $(MAKE) -C squashfs prepare
 
 squashfs-compile: prepare-targets
        $(MAKE) -C squashfs compile
        
-squashfs-clean:
+squashfs-clean: FORCE
        $(MAKE) -C squashfs clean
        rm -f $(KDIR)/root.squashfs
 
@@ -22,7 +22,7 @@ ifeq ($(IB),)
 squashfs-install: compile-targets $(BOARD)-compile
 endif
 
-squashfs-install: $(KDIR)/root.squashfs
+squashfs-install: $(KDIR)/root.squashfs FORCE
        $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
 
 squashfs-install-ib: compile-targets
index b5a51f8a3a6d0281442473c882dd1ac4ad75bac2..a2b367187640f6e679c74c623398b141cdff03c7 100644 (file)
@@ -23,5 +23,5 @@ source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
 prepare: $(SQUASHFSLZMA_DIR)/.unpacked
 compile: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR)/bin/mksquashfs-lzma
 install:
-clean: 
+clean: FORCE
        rm -rf $(SQUASHFSLZMA_DIR)
index 4ea84ebd47712097434836273e87b1619445e1a1..506ab891aed1ba475bcb7b0acfb73e62f8b3cbf6 100644 (file)
@@ -1,4 +1,4 @@
-$(KDIR)/root.tar.gz:
+$(KDIR)/root.tar.gz: FORCE
        tar -zcf $@ --owner=root --group=root -C $(BUILD_DIR)/root/ .
 
 ifeq ($(BOARD),x86)
index 5820d022bc02267363a960d642a39488de784690..8035d722f8ee78e90e6875914defe11619a1014d 100644 (file)
@@ -4,33 +4,28 @@ KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
 
 ifeq ($(FS),jffs2-8MB)
-
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img: $(KDIR)/root.$(FS)
        $(CP) $^ $@
 
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img
-
 endif
 
 
 ifeq ($(FS),tgz)
-
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz: $(KDIR)/root.tar.gz
        $(CP) $^ $@
 
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz
-
 endif
 
 
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz: $(KDIR)/bzImage
        $(CP) $^ $@
 
-
 clean:
 prepare:
 compile:
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
-install-ib:
+install-ib: FORCE
        mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
        $(CP) $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
index 04a89f9b19e5123363a30748883eb67ec15da459..cc47c25aba199ac909cddec4ad34d7987237e880 100644 (file)
@@ -2,35 +2,29 @@ include $(TOPDIR)/rules.mk
 
 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
 
-
 ifeq ($(FS),jffs2-8MB)
-
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img: $(KDIR)/root.$(FS)
        $(CP) $^ $@
 
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img
-
 endif
 
 
 ifeq ($(FS),tgz)
-
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz: $(KDIR)/root.tar.gz
        $(CP) $^ $@
 
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz
-
 endif
 
 
 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz: $(KDIR)/vmlinux
        $(CP) $^ $@
 
-
 clean:
 prepare:
 compile:
 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
-install-ib:
+install-ib: FORCE
        mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
        $(CP) $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
index 4afb4d45a750e0095fb4eec2058c24b548e7d105..53e8dfc58ba2976a134fb2386688d01fa5a97c8b 100644 (file)
@@ -21,12 +21,12 @@ endef
 
 include ./kernel.mk
 
-clean:
+clean: FORCE
        @rm -rf $(LINUX_BUILD_DIR)/root*
        @rm -rf $(BIN_DIR)
 all:
 
-build:
+build: FORCE
        echo
        echo '### BUILDING IMAGE FROM lists/$(LIST).$(BOARD)-$(KERNEL)'
        echo
index fc337543e0f7ad8e30d4ba1054ae626405565bd6..346fb7fad9029a9830114cf01c3caccd16d0e54e 100644 (file)
@@ -72,7 +72,7 @@ $(BUILD_DIR)/kernel.mk: FORCE
        echo "LINUX_VERSION:=$(LINUX_VERSION)" >> $@
        echo "LINUX_RELEASE:=$(LINUX_RELEASE)" >> $@
 
-pkg-install:
+pkg-install: FORCE
        @{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG) install $(INSTALL_TARGETS) || true; }
 
 source: $(DL_DIR)/$(LINUX_SOURCE)
@@ -84,24 +84,21 @@ compile: prepare $(STAMP_DIR)/.linux-compile
 
 install: compile $(LINUX_KERNEL)
 
-mostlyclean:
+mostlyclean: FORCE
        rm -f $(STAMP_DIR)/.linux-compile
        rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
        rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
        $(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean
        rm -f $(LINUX_KERNEL)
 
-rebuild:
+rebuild: FORCE
        -$(MAKE) mostlyclean
        if [ -f $(LINUX_KERNEL) ]; then \
                $(MAKE) clean; \
        fi
        $(MAKE) compile $(MAKE_TRACE)
 
-clean:
+clean: FORCE
        rm -f $(STAMP_DIR)/.linux-compile
        rm -rf $(LINUX_BUILD_DIR)
        rm -f $(TARGETS)
-       
-.PHONY: source prepare compile install mostlyclean rebuild clean pkg-install
-
index ecaae0a41aa746e2cc401457223984e75d3a2f6b..a8f01ff5effdcc8b63e917cd5c49d8f47b9f56d0 100644 (file)
@@ -26,22 +26,22 @@ install: $(patsubst %,%-install,$(package-y))
 
 KPKG_MAKEOPTS += BUILD_DIR="$(LINUX_BUILD_DIR)"
 
-%-prepare:
+%-prepare: FORCE
        $(MAKE) -C $(patsubst %-prepare,%,$@) \
                $(KPKG_MAKEOPTS) \
                prepare
 
-%-compile:
+%-compile: FORCE
        $(MAKE) -C $(patsubst %-compile,%,$@) \
                $(KPKG_MAKEOPTS) \
                compile
 
-%-install:
+%-install: FORCE
        $(MAKE) -C $(patsubst %-install,%,$@) \
                $(KPKG_MAKEOPTS) \
                install
 
-%-clean:
+%-clean: FORCE
        @$(MAKE) -C $(patsubst %-clean,%,$@) \
                $(KPKG_MAKEOPTS) \
                clean
index d68a5d4b7935e545657ec4287d557f3af3c0dc92..b358a9efce8f0d6a10eca672e070864e7b2f0d07 100644 (file)
@@ -36,18 +36,18 @@ lzma: $(TARGETS)
 
 lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
 
-lzma-clean:
+lzma-clean: FORCE
        -$(MAKE) -C $(LZMA_LIB_DIR) clean
        -$(MAKE) -C $(LZMA_ALONE_DIR) clean
        rm -f $(LZMA_DIR)/liblzma.a $(LZMA_DIR)/lzma
 
-lzma-dirclean:
+lzma-dirclean: FORCE
        rm -rf $(LZMA_DIR)
 
 #############################################################
 
 prepare: $(LZMA_DIR)/.unpacked
 compile: lzma
-install: lzma
+install: lzma FORCE
        $(CP) $(LZMA_DIR)/lzma $(STAGING_DIR)/bin/
 clean: lzma-dirclean
index 5b0f2470b48fc9d79e207d9c4a6132e9902b6963..fe354754ce68132c0e026c564786fa235beab926 100644 (file)
@@ -5,12 +5,12 @@ TARGETS := addpattern trx motorola-bin dgfirmware
 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
 
 prepare: $(UTILS_BUILD_DIR)
-compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
+compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
        mkdir -p $(STAGING_DIR)/bin
        $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
 install: compile
 package:
-clean:
+clean: FORCE
        rm -rf $(UTILS_BUILD_DIR)
        for f in $(TARGETS); do \
                rm -f $(STAGING_DIR)/bin/$$f ; \
index d376c146256cdb9fe785812c43ed6cdacfa08135..3f0d13fe9cebef805718d70f18a38a40ee625328 100644 (file)
@@ -6,6 +6,13 @@ menuconfig TOOLCHAINOPTS
 source "toolchain/binutils/Config.in"
 source "toolchain/gcc/Config.in"
 
+config GDB
+       bool
+       prompt "Build gdb" if TOOLCHAINOPTS
+       default n
+       help
+               Enable if you want to build the gdb
+
 config ENABLE_MULTILIB
        bool
        prompt "Enable multilib support?" if TOOLCHAINOPTS
index 8a39def3744165a2eccecfc4623dd9d01db8a917..8e26db562b70fe11debdb0c3a4afac1487fb28d1 100644 (file)
@@ -1,9 +1,10 @@
 # Main makefile for the toolchain
 include $(TOPDIR)/rules.mk
-TARGETS:=sed utils binutils gcc uClibc ipkg-utils gdb libnotimpl
+TARGETS-y:=sed utils binutils gcc uClibc ipkg-utils libnotimpl
+TARGETS-$(CONFIG_GDB) += gdb
 
-TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
-TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
+TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS-y))
+TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS-y))
 
 all: install
 install: $(TARGETS_INSTALL)
@@ -18,18 +19,18 @@ gcc-compile: uClibc-install
 TOOLCHAIN_STAMP_DIR:=$(STAGING_DIR)/stampfiles
 
 $(TOOLCHAIN_STAMP_DIR):
-       mkdir -p $(TOOLCHAIN_STAMP_DIR)
+       mkdir -p $@
 
 $(STAGING_DIR):
-       @mkdir -p $(STAGING_DIR)/lib
-       @mkdir -p $(STAGING_DIR)/include
-       @mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)
-       @ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib
+       @mkdir -p $@/lib
+       @mkdir -p $@/include
+       @mkdir -p $@/$(REAL_GNU_TARGET_NAME)
+       @ln -sf ../lib $@/$(REAL_GNU_TARGET_NAME)/lib
 
 $(TOOL_BUILD_DIR):
-       @mkdir -p $(TOOL_BUILD_DIR)
+       @mkdir -p $@
 
-%-prepare: $(TOOLCHAIN_STAMP_DIR) $(STAGING_DIR) $(TOOL_BUILD_DIR)
+%-prepare: $(TOOLCHAIN_STAMP_DIR) $(STAGING_DIR) $(TOOL_BUILD_DIR) FORCE
        @[ -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@ ] || { \
                $(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \
        }
@@ -47,7 +48,7 @@ $(TOOL_BUILD_DIR):
        }
        @touch $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@
 
-%-clean:
+%-clean: FORCE
        @$(MAKE) -C $(patsubst %-clean,%,$@) clean
        @rm -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$(patsubst %-clean,%,$@)-*
 
index 7d405664bb0fe398894e06a3b6a7aad192ebe732..43755c5fb6b9d8725a743e852d24df656131d454 100644 (file)
@@ -5,8 +5,7 @@ include $(TOPDIR)/rules.mk
 # build binutils for use on the host system
 #
 #############################################################
-BINUTILS_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
-#"
+BINUTILS_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))#"))
 
 BINUTILS_SITE:=http://www.fr.kernel.org/pub/linux/devel/binutils \
               http://www.fi.kernel.org/pub/linux/devel/binutils \
@@ -99,7 +98,7 @@ source: $(DL_DIR)/$(BINUTILS_SOURCE)
 prepare: $(BINUTILS_DIR)/.patched
 compile: $(BINUTILS_DIR1)/binutils/objdump
 install: $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-ld
-clean:
+clean: FORCE
        rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
        rm -rf $(BINUTILS_DIR) $(BINUTILS_DIR1)
 
index 1ce00101b5bff20640f01bbd6326fa79aed0b55c..b0686297d004654364626a30b1bb97f691305854 100644 (file)
@@ -145,7 +145,7 @@ $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
        PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) all
        touch $(GCC_BUILD_DIR2)/.compiled
 
-gcc-install: $(GCC_BUILD_DIR2)/.compiled
+gcc-install: $(GCC_BUILD_DIR2)/.compiled FORCE
        PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) install
        echo $(GCC_VERSION) > $(STAGING_DIR)/gcc_version
        # Set up the symlinks to enable lying about target name.
index b1a2ad5fe5587b9aca35f9e52e91720ba68e66da..f122881a741c6f416ba428aeddd5fe67083e5da3 100644 (file)
@@ -55,5 +55,5 @@ source: $(DL_DIR)/$(GDB_SOURCE)
 prepare: $(GDB_DIR)/.patched
 compile: 
 install: $(TARGET_CROSS)gdb
-clean:
+clean: FORCE
        rm -rf $(GDB_CLIENT_DIR) $(GDB_DIR)
index 41c78fc24e1d10fdc6fd6bd1d7087b26d088c487..0183257b3d1ec7cae2cd912ed59bd572b846a9b1 100644 (file)
@@ -40,14 +40,11 @@ $(STAGING_DIR)/usr/bin/ipkg-build: $(PKG_BUILD_DIR)/.patched
        install -m0755 $(PKG_BUILD_DIR)/ipkg.py $(STAGING_DIR)/usr/bin
 
 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
-
 prepare: $(PKG_BUILD_DIR)/.patched
-
 compile:
-
 install: $(STAGING_DIR)/usr/bin/ipkg-build
 
-clean:
+clean: FORCE
        rm -f $(STAGING_DIR)/etc/ipkg.conf
        rm -f $(STAGING_DIR)/usr/bin/ipkg*
        rm -rf $(PKG_BUILD_DIR)
index f68346c371248736162447d1dec33319f1fbad30..86ab927c1244e7a1c3a62836425636f70557498a 100644 (file)
@@ -24,7 +24,7 @@ source:
 prepare: $(LIBNOTIMPL_DIR)/.prepared
 compile: $(LIBNOTIMPL_DIR)/libnotimpl.a
 install: $(STAGING_DIR)/usr/lib/libnotimpl.a
-clean: 
+clean:  FORCE
        rm -rf \
                $(STAGING_DIR)/usr/lib/libnotimpl.a \
                $(LIBNOTIMPL_DIR) \
index 637bc6597b3b254d1cde0dc2d0e022e7ee2a83a8..e14aadd8ff1b6b61b4f8d7c2e9cc7acfd2b30a67 100644 (file)
@@ -46,7 +46,7 @@ $(SED_DIR1)/$(SED_BINARY): $(SED_DIR1)/.configured
        $(MAKE) -C $(SED_DIR1)
 
 # This stuff is needed to work around GNU make deficiencies
-build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
+build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY) FORCE
        @if [ -L $(STAGING_DIR)/$(SED_TARGET_BINARY) ] ; then \
                rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY); fi;
        @if [ ! -f $(STAGING_DIR)/$(SED_TARGET_BINARY) -o $(STAGING_DIR)/$(SED_TARGET_BINARY) \
@@ -58,7 +58,7 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
            rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \
                    $(STAGING_DIR)/usr/man $(STAGING_DIR)/usr/share/doc; fi
 
-use-sed-host-binary:
+use-sed-host-binary: FORCE
        @if [ -x /usr/bin/sed ]; then SED="/usr/bin/sed"; else \
            if [ -x /bin/sed ]; then SED="/bin/sed"; fi; fi; \
            mkdir -p $(STAGING_DIR)/bin; \
@@ -69,7 +69,7 @@ source:
 prepare: 
 compile: 
 install: $(HOST_SED_TARGET)
-clean: 
+clean: FORCE
        rm -rf $(SED_DIR1)
        rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY)
 
index 1fd9b4a3bdfb50ad58d838d660ffc338b0b815d1..f7691e4f1b0ffdb4bbe75753327a73f168344771 100644 (file)
@@ -9,15 +9,16 @@ include $(TOPDIR)/rules.mk
 ifeq ($(CONFIG_UCLIBC_VERSION_SNAPSHOT),y)
 # Be aware that this changes daily....
 UCLIBC_DIR:=$(TOOL_BUILD_DIR)/uClibc
-UCLIBC_SOURCE:=uClibc-$(strip $(subst ",, $(CONFIG_USE_UCLIBC_SNAPSHOT))).tar.bz2
-#"
+UCLIBC_SOURCE:=uClibc-$(strip $(subst ",, $(CONFIG_USE_UCLIBC_SNAPSHOT))).tar.bz2#"))
 UCLIBC_SITE:=http://www.uclibc.org/downloads/snapshots
 UCLIBC_VER:=PKG_VERSION:=0.${shell date +"%G%m%d"}
+UCLIBC_MD5SUM:=x
 else
 UCLIBC_VER:=0.9.28
 UCLIBC_DIR:=$(TOOL_BUILD_DIR)/uClibc-$(UCLIBC_VER)
 UCLIBC_SOURCE:=uClibc-$(UCLIBC_VER).tar.bz2
 UCLIBC_SITE:=http://www.uclibc.org/downloads
+UCLIBC_MD5SUM:=1ada58d919a82561061e4741fb6abd29
 endif
 
 UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
@@ -37,7 +38,7 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
 
 $(DL_DIR)/$(UCLIBC_SOURCE):
        mkdir -p $(DL_DIR)
-       $(SCRIPT_DIR)/download.pl $(DL_DIR) $(UCLIBC_SOURCE) x $(UCLIBC_SITE)
+       $(SCRIPT_DIR)/download.pl $(DL_DIR) $(UCLIBC_SOURCE) $(UCLIBC_MD5SUM) $(UCLIBC_SITE)
 
 $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE)
        mkdir -p $(TOOL_BUILD_DIR)
@@ -99,5 +100,5 @@ source: $(DL_DIR)/$(UCLIBC_SOURCE)
 prepare: $(UCLIBC_DIR)/.configured
 compile: $(UCLIBC_DIR)/lib/libc.a
 install: $(STAGING_DIR)/lib/libc.a $(UCLIBC_TARGETS)
-clean: 
+clean:  FORCE
        rm -rf $(UCLIBC_DIR) $(TOOL_BUILD_DIR)/uClibc_dev
index 2af6b139dfd81a1320b8fbc8e8b60df2a91a98d6..65e488f4e5ec8f70610ebfc456e8bbdb5d8333f1 100644 (file)
@@ -14,7 +14,7 @@ install: compile
        mkdir -p $(STAGING_DIR)/bin
        $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
 package:
-clean:
+clean: FORCE
        rm -rf $(UTILS_BUILD_DIR)
 
 $(UTILS_BUILD_DIR):