]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/cleanup-toolchain
cmake: update to 3.8.1
[ipfire-2.x.git] / lfs / cleanup-toolchain
index e4839b951289d08e99c076e29a9c00e2846eecec..91e056ed8348aafac07054824d988913204c47f5 100644 (file)
@@ -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}