patch-2.3.50 linux/arch/sh/Makefile
Next file: linux/arch/sh/boot/Makefile
Previous file: linux/arch/ppc/xmon/xmon.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Tue Mar 7 11:04:12 2000
- Orig file:
v2.3.49/linux/arch/sh/Makefile
- Orig date:
Fri Oct 22 13:21:45 1999
diff -u --recursive --new-file v2.3.49/linux/arch/sh/Makefile linux/arch/sh/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1 1999/09/18 16:55:51 gniibe Exp gniibe $
+# $Id: Makefile,v 1.2 1999/12/23 12:13:53 gniibe Exp gniibe $
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
@@ -15,21 +15,21 @@
#
# Select the object file format to substitute into the linker script.
#
-tool-prefix = sh-elf
+tool-prefix = sh-linux-gnu-
ifdef CONFIG_LITTLE_ENDIAN
CFLAGS += -ml
AFLAGS += -ml
# LINKFLAGS += -EL
LDFLAGS := -EL
-
-LD =$(CROSS_COMPILE)ld $(LDFLAGS)
-
endif
-ifdef CONFIG_CROSSCOMPILE
+# ifdef CONFIG_CROSSCOMPILE
CROSS_COMPILE = $(tool-prefix)
-endif
+# endif
+
+LD =$(CROSS_COMPILE)ld $(LDFLAGS)
+OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
MODFLAGS +=
@@ -51,7 +51,7 @@
# none has been choosen above.
#
LINKSCRIPT = arch/sh/vmlinux.lds
-LINKFLAGS += -T $(word 1,$(LINKSCRIPT)) -e __stext
+LINKFLAGS += -T $(word 1,$(LINKSCRIPT)) -e _stext
ifdef LOADADDR
LINKFLAGS += -Ttext $(word 1,$(LOADADDR))
@@ -73,7 +73,7 @@
vmlinux: arch/sh/vmlinux.lds
arch/sh/vmlinux.lds: arch/sh/vmlinux.lds.S FORCE
- gcc -E -C -P -I$(HPATH) -Ush arch/sh/vmlinux.lds.S >arch/sh/vmlinux.lds
+ $(CPP) -C -P -I$(HPATH) -Ush arch/sh/vmlinux.lds.S >arch/sh/vmlinux.lds
FORCE: ;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)