public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* "Cross" compilation for s390x
@ 2003-03-12 16:07 Pete Zaitcev
  2003-03-12 19:07 ` VESA FBconsole driver? Kendall Bennett
  0 siblings, 1 reply; 13+ messages in thread
From: Pete Zaitcev @ 2003-03-12 16:07 UTC (permalink / raw)
  To: schwidefsky; +Cc: linux-kernel, linux390

Martin,

when I build s390x on s390 box, it fails without the
attached patch. Thought you might want to consder it.
If you support truly ancient compilers (2.7.2), it cannot
go in without some conditional compilation as sparc64 does.
Otherwise, it should be ok at least for 2.5.

Yours,
-- Pete

diff -urN -X dontdiff linux-2.4.20-2.1.14.s.1/arch/s390x/Makefile linux-2.4.20-2.1.14.s.2/arch/s390x/Makefile
--- linux-2.4.20-2.1.14.s.1/arch/s390x/Makefile	2002-08-02 20:39:43.000000000 -0400
+++ linux-2.4.20-2.1.14.s.2/arch/s390x/Makefile	2003-03-10 21:07:49.000000000 -0500
@@ -23,10 +23,11 @@
 LINKFLAGS =-T $(TOPDIR)/arch/s390x/vmlinux.lds $(LDFLAGS)
 endif
 MODFLAGS += -fpic
+AFLAGS += -m64
 
 CFLAGS_PIPE := -pipe
 CFLAGS_NSR  := -fno-strength-reduce
-CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR)
+CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR) -m64
 
 HEAD := arch/s390x/kernel/head.o arch/s390x/kernel/init_task.o
 
diff -urN -X dontdiff linux-2.4.20-2.1.14.s.1/arch/s390x/vmlinux.lds linux-2.4.20-2.1.14.s.2/arch/s390x/vmlinux.lds
--- linux-2.4.20-2.1.14.s.1/arch/s390x/vmlinux.lds	2002-02-25 14:37:56.000000000 -0500
+++ linux-2.4.20-2.1.14.s.2/arch/s390x/vmlinux.lds	2003-03-10 21:07:49.000000000 -0500
@@ -1,8 +1,8 @@
-/* ld script to make s390 Linux kernel
+/* ld script to make s390x Linux kernel
  * Written by Martin Schwidefsky (schwidefsky@de.ibm.com)
  */
 OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")
-OUTPUT_ARCH(s390)
+OUTPUT_ARCH(s390:64-bit)
 ENTRY(_start)
 SECTIONS
 {

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

end of thread, other threads:[~2003-03-15 17:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12 16:07 "Cross" compilation for s390x Pete Zaitcev
2003-03-12 19:07 ` VESA FBconsole driver? Kendall Bennett
2003-03-13 21:31   ` Kendall Bennett
2003-03-13 22:11     ` Petr Vandrovec
2003-03-13 23:41       ` Kendall Bennett
2003-03-14 10:14         ` Geert Uytterhoeven
2003-03-14 18:25           ` Kendall Bennett
2003-03-14 10:21         ` Helge Hafting
2003-03-13 22:24     ` Gerd Knorr
2003-03-13 23:41       ` Kendall Bennett
2003-03-14 10:15         ` Helge Hafting
2003-03-14 18:25           ` Kendall Bennett
2003-03-15 18:04             ` Helge Hafting

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