Michal Simek | 21d62e6 | 2007-03-27 00:32:16 +0200 | [diff] [blame] | 1 | # |
Michal Simek | 766eeb5 | 2016-05-24 11:42:26 +0200 | [diff] [blame] | 2 | # (C) Copyright 2007 - 2016 Michal Simek |
Michal Simek | 21d62e6 | 2007-03-27 00:32:16 +0200 | [diff] [blame] | 3 | # |
Michal Simek | 766eeb5 | 2016-05-24 11:42:26 +0200 | [diff] [blame] | 4 | # Michal SIMEK <monstr@monstr.eu> |
Michal Simek | 21d62e6 | 2007-03-27 00:32:16 +0200 | [diff] [blame] | 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | 952d514 | 2007-03-11 13:42:58 +0100 | [diff] [blame] | 7 | # |
Michal Simek | 766eeb5 | 2016-05-24 11:42:26 +0200 | [diff] [blame] | 8 | |
Michal Simek | 4af1774 | 2016-05-24 13:23:59 +0200 | [diff] [blame] | 9 | CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER)) |
| 10 | |
Michal Simek | 766eeb5 | 2016-05-24 11:42:26 +0200 | [diff] [blame] | 11 | # USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support. |
| 12 | CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high |
| 13 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul |
| 14 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div |
| 15 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift |
| 16 | CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare |
Michal Simek | 952d514 | 2007-03-11 13:42:58 +0100 | [diff] [blame] | 17 | |
Michal Simek | 4af1774 | 2016-05-24 13:23:59 +0200 | [diff] [blame] | 18 | CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) |
| 19 | |
Michal Simek | 766eeb5 | 2016-05-24 11:42:26 +0200 | [diff] [blame] | 20 | PLATFORM_CPPFLAGS += $(CPUFLAGS-1) $(CPUFLAGS-2) |