microblaze: Use correct kbuild variable KBUILD_CFLAGS
Fixes the bug introduced in 9552158573f847aa429334bb97995bb290bb4b0d Signed-off-by: John Williams <john.williams@petalogix.com>
This commit is contained in:
committed by
Michal Simek
parent
ac854ff1fc
commit
e469b0eb36
@@ -37,12 +37,12 @@ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
|
|||||||
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
|
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
|
||||||
|
|
||||||
# r31 holds current when in kernel mode
|
# 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 :=
|
||||||
LDFLAGS_vmlinux :=
|
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
|
head-y := arch/microblaze/kernel/head.o
|
||||||
libs-y += arch/microblaze/lib/
|
libs-y += arch/microblaze/lib/
|
||||||
|
Reference in New Issue
Block a user