]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
toolchain: Drop first pass of cleanup-toolchain script
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Apr 2017 16:28:08 +0000 (18:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 May 2017 11:00:31 +0000 (12:00 +0100)
This is no longer necessary

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/cleanup-toolchain
make.sh

index 90369889d95e1539172c2fab9c09fc35423ddf7a..e904bca87a79fb05172da16a0d90205309824d38 100644 (file)
@@ -52,12 +52,6 @@ md5 :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
 ifeq "$(PASS)" "1"
-       SPECS=$$(dirname $$(/tools/bin/$(CROSSTARGET)-gcc -print-libgcc-file-name))/specs; \
-       /tools/bin/$(CROSSTARGET)-gcc -dumpspecs | sed \
-               -e "/^\*cpp:$$/{n;s,$$, -isystem /tools/include,}" > $$SPECS
-endif
-
-ifeq "$(PASS)" "2"
        # Remove the first cross compiler which is not needed anymore.
        find /tools/ -name "$(CROSSTARGET)*" | xargs rm -rfv
 
@@ -74,7 +68,7 @@ ifeq "$(PASS)" "2"
        /tools/sbin/ldconfig
 endif
 
-ifeq "$(PASS)" "3"
+ifeq "$(PASS)" "2"
        mv -v /tools/bin/{ld,ld-old}
        mv -v /tools/$(BUILDTARGET)/bin/{ld,ld-old}
        mv -v /tools/bin/{ld-new,ld}
diff --git a/make.sh b/make.sh
index 5c290d54f780be42a9477e1133a56a7b9777f92b..beaee1eeb3059705f2eb0656f63e81141400290c 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -284,7 +284,6 @@ buildtoolchain() {
     lfsmake1 gcc                       PASS=1
     lfsmake1 linux                     KCFG="-headers"
     lfsmake1 glibc
-    lfsmake1 cleanup-toolchain         PASS=1
     lfsmake1 gcc                       PASS=L
     lfsmake1 binutils                  PASS=2
     lfsmake1 gcc                       PASS=2
@@ -313,7 +312,7 @@ buildtoolchain() {
     lfsmake1 texinfo
     lfsmake1 xz
     lfsmake1 fake-environ
-    lfsmake1 cleanup-toolchain         PASS=2
+    lfsmake1 cleanup-toolchain         PASS=1
 }
 
 buildbase() {
@@ -324,7 +323,7 @@ buildbase() {
     lfsmake2 man-pages
     lfsmake2 glibc
     lfsmake2 tzdata
-    lfsmake2 cleanup-toolchain         PASS=3
+    lfsmake2 cleanup-toolchain         PASS=2
     lfsmake2 zlib
     lfsmake2 binutils
     lfsmake2 gmp