mk: fix -march for octeontx2 target
[dpdk.git] / mk / machine / octeontx2 / rte.vars.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Marvell International Ltd
3 #
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
31 include $(RTE_SDK)/mk/rte.helper.mk
32
33 MACHINE_CFLAGS += $(call rte_cc_has_argument, -march=armv8.2-a+crc+crypto+lse)
34 MACHINE_CFLAGS += $(call rte_cc_has_argument, -mcpu=octeontx2)