This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix unified tree breakage



Restarting the make after binutils has been built should work ok, but
that's not really the point.


The attached patch should fix it.

With the patch, we get this sequence for bootstrap:

       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       if [ ! -f stage_last ]; then \
         $(MAKE) $(RECURSE_FLAGS_TO_PASS) bootstrap; \
       fi
       @$(unstage)
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
       @$(stage)

for GCC, no bootstrap:

       @$(unstage)
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-prebootstrap
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
       @$(stage)

And for no GCC:

       @$(unstage)
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host
       @r=`${PWD_COMMAND}`; export r; \
       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
       $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target
       @$(stage)

Richard, does it work for you?

Paolo
2005-10-05  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (all) [gcc-no-bootstrap]: Make prebootstrap packages
	before other host packages.  Do not use stage_last to find the
	flags to pass to all-host.

Index: Makefile.tpl
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.143
diff -p -u -u -r1.143 Makefile.tpl
--- Makefile.tpl	5 Oct 2005 07:32:13 -0000	1.143
+++ Makefile.tpl	5 Oct 2005 13:56:11 -0000
@@ -709,13 +709,19 @@ all:
 	fi
 @endif gcc-bootstrap
 	@$(unstage)
+@if gcc-no-bootstrap
 	@r=`${PWD_COMMAND}`; export r; \
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
-	if [ -f stage_last ]; then \
-	  $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host; \
-	else \
-	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host; \
-	fi
+	$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-prebootstrap
+@endif gcc-no-bootstrap
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+@if gcc-bootstrap
+	$(MAKE) $(TARGET_FLAGS_TO_PASS) all-host
+@endif gcc-bootstrap
+@if gcc-no-bootstrap
+	$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host
+@endif gcc-no-bootstrap
 	@r=`${PWD_COMMAND}`; export r; \
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 	$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-target

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]