microblaze: clean LDFLAGS to build kernel
authorThomas Chou <thomas@wytron.com.tw>
Tue, 19 May 2009 14:48:10 +0000 (22:48 +0800)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 May 2009 13:56:08 +0000 (15:56 +0200)
Extra LDFLAGS from user space building may cause kernel failed
to compile.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/Makefile

index aaadfa7..ab731b7 100644 (file)
@@ -36,6 +36,8 @@ CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
 # r31 holds current when in kernel mode
 CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)
 
+LDFLAGS                :=
+LDFLAGS_vmlinux        :=
 LDFLAGS_BLOB := --format binary --oformat elf32-microblaze
 
 LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name)