diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-05-24 11:42:26 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-06-06 11:23:27 +0200 |
commit | 91eeb80ee7cdc7833d752bdaa45ae2a1556c72cf (patch) | |
tree | b54e16746380cabbd869c8c443bc8a8b8ea83193 /board/xilinx/microblaze-generic/config.mk | |
parent | 1630d5582c2b8be129bcd2d3a0db03bc3349dfab (diff) | |
download | u-boot-imx-91eeb80ee7cdc7833d752bdaa45ae2a1556c72cf.zip u-boot-imx-91eeb80ee7cdc7833d752bdaa45ae2a1556c72cf.tar.gz u-boot-imx-91eeb80ee7cdc7833d752bdaa45ae2a1556c72cf.tar.bz2 |
microblaze: Select compilation flags via Kconfig
Remove autogenerated config.mk and select CPU options via Kconfig.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/microblaze-generic/config.mk')
-rw-r--r-- | board/xilinx/microblaze-generic/config.mk | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/board/xilinx/microblaze-generic/config.mk b/board/xilinx/microblaze-generic/config.mk index 95ef9c0..4b033f7 100644 --- a/board/xilinx/microblaze-generic/config.mk +++ b/board/xilinx/microblaze-generic/config.mk @@ -1,16 +1,16 @@ # -# (C) Copyright 2007 Michal Simek +# (C) Copyright 2007 - 2016 Michal Simek # -# Michal SIMEK <monstr@monstr.eu> +# Michal SIMEK <monstr@monstr.eu> # # SPDX-License-Identifier: GPL-2.0+ # -# CAUTION: This file is a faked configuration !!! -# There is no real target for the microblaze-generic -# configuration. You have to replace this file with -# the generated file from your Xilinx design flow. -# -PLATFORM_CPPFLAGS += -mno-xl-soft-mul -PLATFORM_CPPFLAGS += -mno-xl-soft-div -PLATFORM_CPPFLAGS += -mxl-barrel-shift +# 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 + +PLATFORM_CPPFLAGS += $(CPUFLAGS-1) $(CPUFLAGS-2) |