Skip to content

Commit

Permalink
microblaze: clean LDFLAGS to build kernel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Chou authored and Michal Simek committed May 21, 2009
1 parent 5af9043 commit c3055d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/microblaze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3055d1

Please sign in to comment.