X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fcleanup-toolchain;h=91e056ed8348aafac07054824d988913204c47f5;hb=ebfb8996930ec1e3b4f7d09208d2ab60a8f30603;hp=e4839b951289d08e99c076e29a9c00e2846eecec;hpb=174498ef96404461522ffd4bd6e0422c17fc4e7e;p=ipfire-2.x.git diff --git a/lfs/cleanup-toolchain b/lfs/cleanup-toolchain index e4839b9512..91e056ed83 100644 --- a/lfs/cleanup-toolchain +++ b/lfs/cleanup-toolchain @@ -27,7 +27,12 @@ include Config VER = ipfire THISAPP = cleanup-toolchain -TARGET = $(DIR_INFO)/$(THISAPP)-$(PASS)-tools + +ifeq "$(TOOLCHAIN)" "1" + TARGET = $(DIR_INFO)/$(THISAPP)-tools +else + TARGET = $(DIR_INFO)/$(THISAPP) +endif GCC_VER = 4.1.2 @@ -67,6 +72,9 @@ ifeq "$(TOOLCHAIN)" "1" # Update/create linker cache. /tools/sbin/ldconfig + + # Set a marker when the toolchain was successfully built + touch /tools/.toolchain-successful else mv -v /tools/bin/{ld,ld-old} mv -v /tools/$(BUILDTARGET)/bin/{ld,ld-old}