From 624d6c2c693ea7709b991d0af6356844efe7df2f Mon Sep 17 00:00:00 2001 From: Kanoj Sarcar Date: Mon, 18 Sep 2000 21:44:45 +0000 Subject: Pass the loader script file thru cpp for CONFIG_MAPPED_KERNEL support. --- arch/mips64/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/mips64/Makefile') 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 $< $@ -- cgit v1.2.3