Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH, 2.4] Fix bad check_gcc order for mips64, make offset.h creation more robust
@ 2004-01-22  4:07 Thiemo Seufer
  0 siblings, 0 replies; 4+ messages in thread
From: Thiemo Seufer @ 2004-01-22  4:07 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle

Hallo All,

current 2.4 64bit kernels fail to build for newer toolchains because
the -finline-limit=100000 option is ignored. The symptom is some bogus
offset.h content which stops the build in arch/mips64/mm/tlbex-r4k.S.

This patch fixes it by moving check_gcc in front of its first use,
it also removes some stale files if offset.h needs to be regenerated.


Thiemo


Index: arch/mips/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.78.2.50
diff -a -d -u -p -r1.78.2.50 Makefile
--- arch/mips/Makefile	11 Jan 2004 00:11:35 -0000	1.78.2.50
+++ arch/mips/Makefile	22 Jan 2004 03:18:57 -0000
@@ -746,5 +746,6 @@ archmrproper:
 archdep:
 	if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
 		touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
+		$(MAKE) -C arch/mips/tools clean; \
 	fi;
 	@$(MAKEBOOT) dep
Index: arch/mips64/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips64/Attic/Makefile,v
retrieving revision 1.22.2.43
diff -a -d -u -p -r1.22.2.43 Makefile
--- arch/mips64/Makefile	3 Jan 2004 02:07:52 -0000	1.22.2.43
+++ arch/mips64/Makefile	22 Jan 2004 03:19:23 -0000
@@ -26,6 +26,9 @@ ifdef CONFIG_CROSSCOMPILE
 CROSS_COMPILE	= $(tool-prefix)
 endif
 
+check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
+check_gas = $(shell if $(CC) $(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
+
 #
 # The ELF GCC uses -G 0 -mabicalls -fpic as default.  We don't need PIC
 # code in the kernel since it only slows down the whole thing.  For the
@@ -49,9 +52,6 @@ GCCFLAGS	+= -mno-sched-prolog -fno-omit-
 endif
 endif
 
-check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
-check_gas = $(shell if $(CC) $(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
-
 #
 # Use: $(call set_gccflags,<cpu0>,<isa0>,<cpu1>,<isa1>)
 #
@@ -402,5 +406,6 @@ archmrproper:
 archdep:
 	if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
 		touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
+		$(MAKE) -C arch/mips/tools clean; \
 	fi;
 	@$(MAKEBOOT) dep

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-22 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20031021232555Z8225529-1272+8229@linux-mips.org>
2003-11-05  8:17 ` define check_gcc before used (Re: CVS Update@-mips.org: linux) Atsushi Nemoto
2004-03-22  7:06   ` [PATCH, 2.4] Fix bad check_gcc order for mips64, make offset.h creation more robust Atsushi Nemoto
2004-03-22 20:09     ` Ralf Baechle
2004-01-22  4:07 Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox