summaryrefslogtreecommitdiffstats
path: root/arch/mips64/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips64/Makefile')
-rw-r--r--arch/mips64/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips64/Makefile b/arch/mips64/Makefile
index 77609a84a..c145f2a47 100644
--- a/arch/mips64/Makefile
+++ b/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
@@ -129,6 +130,10 @@ else
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 $< $@