Skip to content

Commit

Permalink
microblaze: Use correct kbuild variable KBUILD_CFLAGS
Browse files Browse the repository at this point in the history
Fixes the bug introduced in 9552158573f847aa429334bb97995bb290bb4b0d

Signed-off-by: John Williams <john.williams@petalogix.com>
  • Loading branch information
John Williams authored and Michal Simek committed Sep 22, 2009
1 parent ac854ff commit e469b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/microblaze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))

# r31 holds current when in kernel mode
KBUILD_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)
KBUILD_CFLAGS += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)

LDFLAGS :=
LDFLAGS_vmlinux :=

LIBGCC := $(shell $(CC) $(KBUILD_KERNEL) -print-libgcc-file-name)
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)

head-y := arch/microblaze/kernel/head.o
libs-y += arch/microblaze/lib/
Expand Down

0 comments on commit e469b0e

Please sign in to comment.