toolchain/*: use CONFIG_UPDATE
Based on e0e0945e in Bernhard's tree.
This commit is contained in:
parent
e35414722d
commit
84ddc66a41
@ -27,7 +27,7 @@ libgmp-source: $(DL_DIR)/$(GMP_SOURCE)
|
|||||||
$(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
|
$(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
|
||||||
$(GMP_CAT) $(DL_DIR)/$(GMP_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
$(GMP_CAT) $(DL_DIR)/$(GMP_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
toolchain/patch-kernel.sh $(GMP_DIR) package/gmp/ \*.patch
|
toolchain/patch-kernel.sh $(GMP_DIR) package/gmp/ \*.patch
|
||||||
$(CONFIG_UPDATE) $(GMP_DIR)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(GMP_TARGET_DIR)/.configured: $(GMP_DIR)/.unpacked
|
$(GMP_TARGET_DIR)/.configured: $(GMP_DIR)/.unpacked
|
||||||
|
@ -30,7 +30,7 @@ $(DL_DIR)/$(MPFR_SOURCE):
|
|||||||
$(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE) $(MPFR_PATCH_SOURCE)
|
$(MPFR_DIR)/.unpacked: $(DL_DIR)/$(MPFR_SOURCE) $(MPFR_PATCH_SOURCE)
|
||||||
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
$(MPFR_CAT) $(DL_DIR)/$(MPFR_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
|
toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
|
||||||
$(CONFIG_UPDATE) $(MPFR_DIR)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
ifneq ($(MPFR_PATCH),)
|
ifneq ($(MPFR_PATCH),)
|
||||||
( cd $(MPFR_DIR); patch -p1 -N -Z < $(MPFR_PATCH_SOURCE); )
|
( cd $(MPFR_DIR); patch -p1 -N -Z < $(MPFR_PATCH_SOURCE); )
|
||||||
endif
|
endif
|
||||||
|
@ -88,7 +88,7 @@ $(BINUTILS_DIR)/.unpacked: $(DL_DIR)/$(BINUTILS_SOURCE)
|
|||||||
mkdir -p $(TOOL_BUILD_DIR)
|
mkdir -p $(TOOL_BUILD_DIR)
|
||||||
rm -rf $(BINUTILS_DIR)
|
rm -rf $(BINUTILS_DIR)
|
||||||
$(BINUTILS_CAT) $(DL_DIR)/$(BINUTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
$(BINUTILS_CAT) $(DL_DIR)/$(BINUTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
$(CONFIG_UPDATE) $(BINUTILS_DIR)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
binutils-patched: $(BINUTILS_DIR)/.patched
|
binutils-patched: $(BINUTILS_DIR)/.patched
|
||||||
|
@ -29,6 +29,7 @@ $(CCACHE_DIR1)/.patched: $(CCACHE_DIR1)/.unpacked
|
|||||||
$(SED) "s,getenv(\"CCACHE_DIR\"),\"$(BR2_CCACHE_DIR)\",g" \
|
$(SED) "s,getenv(\"CCACHE_DIR\"),\"$(BR2_CCACHE_DIR)\",g" \
|
||||||
$(CCACHE_DIR1)/ccache.c
|
$(CCACHE_DIR1)/ccache.c
|
||||||
mkdir -p $(CCACHE_DIR1)/cache
|
mkdir -p $(CCACHE_DIR1)/cache
|
||||||
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched
|
$(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched
|
||||||
|
@ -19,6 +19,7 @@ ifeq ($(strip $(ARCH)),nios2)
|
|||||||
$(SED) "s,CROSS_COMPILE_PREFIX,$(REAL_GNU_TARGET_NAME),g;" toolchain/elf2flt/elf2flt.nios2.conditional
|
$(SED) "s,CROSS_COMPILE_PREFIX,$(REAL_GNU_TARGET_NAME),g;" toolchain/elf2flt/elf2flt.nios2.conditional
|
||||||
toolchain/patch-kernel.sh $(ELF2FLT_DIR) toolchain/elf2flt elf2flt.nios2.conditional
|
toolchain/patch-kernel.sh $(ELF2FLT_DIR) toolchain/elf2flt elf2flt.nios2.conditional
|
||||||
endif
|
endif
|
||||||
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(ELF2FLT_DIR)/.configured: $(ELF2FLT_DIR)/.patched
|
$(ELF2FLT_DIR)/.configured: $(ELF2FLT_DIR)/.patched
|
||||||
|
@ -144,7 +144,7 @@ gcc-unpacked: $(GCC_DIR)/.patched
|
|||||||
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
||||||
mkdir -p $(TOOL_BUILD_DIR)
|
mkdir -p $(TOOL_BUILD_DIR)
|
||||||
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
$(CONFIG_UPDATE) $(GCC_DIR)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
gcc-patched: $(GCC_DIR)/.patched
|
gcc-patched: $(GCC_DIR)/.patched
|
||||||
|
@ -58,7 +58,7 @@ ifeq ($(GDB_VERSION),snapshot)
|
|||||||
ln -sf $(TOOL_BUILD_DIR)/$(shell tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) $(GDB_DIR)
|
ln -sf $(TOOL_BUILD_DIR)/$(shell tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) $(GDB_DIR)
|
||||||
endif
|
endif
|
||||||
toolchain/patch-kernel.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch
|
toolchain/patch-kernel.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch
|
||||||
$(CONFIG_UPDATE) $(GDB_DIR)
|
$(CONFIG_UPDATE) $(@D)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
gdb-patched: $(GDB_DIR)/.unpacked
|
gdb-patched: $(GDB_DIR)/.unpacked
|
||||||
|
Loading…
Reference in New Issue
Block a user