2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-03-26 22:32:16 +00:00
|
|
|
#
|
2016-05-24 09:42:26 +00:00
|
|
|
# (C) Copyright 2007 - 2016 Michal Simek
|
2007-03-26 22:32:16 +00:00
|
|
|
#
|
2016-05-24 09:42:26 +00:00
|
|
|
# Michal SIMEK <monstr@monstr.eu>
|
2007-03-11 12:42:58 +00:00
|
|
|
|
2016-05-24 11:23:59 +00:00
|
|
|
CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER))
|
|
|
|
|
2016-05-24 09:42:26 +00:00
|
|
|
# USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support.
|
|
|
|
CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high
|
|
|
|
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul
|
|
|
|
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div
|
|
|
|
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift
|
|
|
|
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
|
|
|
|
|
2016-05-24 11:23:59 +00:00
|
|
|
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
|
|
|
|
|
2016-05-24 09:42:26 +00:00
|
|
|
PLATFORM_CPPFLAGS += $(CPUFLAGS-1) $(CPUFLAGS-2)
|