New upstream version 18.02
[deb_dpdk.git] / mk / machine / dpaa2 / rte.vars.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
3 # Copyright 2016 NXP
4
5 #
6 # machine:
7 #
8 #   - can define ARCH variable (overridden by cmdline value)
9 #   - can define CROSS variable (overridden by cmdline value)
10 #   - define MACHINE_CFLAGS variable (overridden by cmdline value)
11 #   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
12 #   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
13 #   - can define CPU_CFLAGS variable (overridden by cmdline value) that
14 #     overrides the one defined in arch.
15 #   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
16 #     overrides the one defined in arch.
17 #   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
18 #     overrides the one defined in arch.
19 #   - may override any previously defined variable
20 #
21
22 # ARCH =
23 # CROSS =
24 # MACHINE_CFLAGS =
25 # MACHINE_LDFLAGS =
26 # MACHINE_ASFLAGS =
27 # CPU_CFLAGS =
28 # CPU_LDFLAGS =
29 # CPU_ASFLAGS =
30 MACHINE_CFLAGS += -march=armv8-a+crc
31
32 ifdef CONFIG_RTE_ARCH_ARM_TUNE
33 MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%)
34 endif