patch-2.4.0-test12 linux/arch/mips64/Makefile
Next file: linux/arch/mips64/arc/Makefile
Previous file: linux/arch/mips/lib/memset.S
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Dec 6 20:32:41 2000
- Orig file:
v2.4.0-test11/linux/arch/mips64/Makefile
- Orig date:
Thu Jul 27 18:36:54 2000
diff -u --recursive --new-file v2.4.0-test11/linux/arch/mips64/Makefile linux/arch/mips64/Makefile
@@ -12,6 +12,7 @@
#
# Select the object file format to substitute into the linker script.
#
+CPP=$(CC) -E
ifdef CONFIG_CPU_LITTLE_ENDIAN
tool-prefix = mips64el-linux-
else
@@ -32,6 +33,7 @@
# machines may also. Since BFD is incredibly buggy with respect to
# crossformat linking we rely on the elf2ecoff tool for format conversion.
#
+CFLAGS += -I $(TOPDIR)/include/asm $(CFLAGS)
CFLAGS += -mabi=64 -G 0 -mno-abicalls -fno-pic -Wa,--trap -pipe
LINKFLAGS += -G 0 -static # -N
MODFLAGS += -mlong-calls
@@ -129,6 +131,10 @@
64bit-bfd = elf64-bigmips
endif
+vmlinux: arch/mips64/ld.script.elf32
+arch/mips64/ld.script.elf32: arch/mips64/ld.script.elf32.S
+ $(CPP) -C -P -I$(HPATH) -imacros $(HPATH)/asm-mips64/sn/mapped_kernel.h -Umips arch/mips64/ld.script.elf32.S > arch/mips64/ld.script.elf32
+
ifdef CONFIG_MAPPED_KERNEL
vmlinux.64: vmlinux
$(OBJCOPY) -O $(64bit-bfd) --change-addresses=0xbfffffff40000000 $< $@
@@ -149,7 +155,7 @@
@$(MAKEBOOT) clean
$(MAKE) -C arch/$(ARCH)/kernel clean
$(MAKE) -C arch/$(ARCH)/tools clean
- rm -f vmlinux.64
+ rm -f vmlinux.64 arch/$(ARCH)/ld.script.elf32
archmrproper:
@$(MAKEBOOT) mrproper
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)