diff options
Diffstat (limited to 'arch/microblaze/Makefile')
-rw-r--r-- | arch/microblaze/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 0dcbb9832974..aaadfa701da3 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile | |||
@@ -26,21 +26,19 @@ ifeq (,$(findstring spartan2,$(CONFIG_XILINX_MICROBLAZE0_FAMILY))) | |||
26 | endif | 26 | endif |
27 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div | 27 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div |
28 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift | 28 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift |
29 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP) += -mxl-pattern-compare | 29 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare |
30 | 30 | ||
31 | CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) | 31 | CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) |
32 | 32 | ||
33 | # The various CONFIG_XILINX cpu features options are integers 0/1/2... | 33 | # The various CONFIG_XILINX cpu features options are integers 0/1/2... |
34 | # rather than bools y/n | 34 | # rather than bools y/n |
35 | CFLAGS += $(CPUFLAGS-1) | ||
36 | CFLAGS += $(CPUFLAGS-2) | ||
37 | 35 | ||
38 | # r31 holds current when in kernel mode | 36 | # r31 holds current when in kernel mode |
39 | CFLAGS += -ffixed-r31 | 37 | CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2) |
40 | 38 | ||
41 | LDFLAGS_BLOB := --format binary --oformat elf32-microblaze | 39 | LDFLAGS_BLOB := --format binary --oformat elf32-microblaze |
42 | 40 | ||
43 | LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | 41 | LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name) |
44 | 42 | ||
45 | head-y := arch/microblaze/kernel/head.o | 43 | head-y := arch/microblaze/kernel/head.o |
46 | libs-y += arch/microblaze/lib/ $(LIBGCC) | 44 | libs-y += arch/microblaze/lib/ $(LIBGCC) |