blob: feafd7283974f6d7dc52d341fd496f3281e1128c [file] [log] [blame]
Sachin Saxena725c59c2016-06-10 16:31:30 +05301# Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14# Configuration for NXP DPAA2 ARM64 based platform
15dpaa2_arch = aarch64
16dpaa2_os = linux-gnu
17dpaa2_target = aarch64-linux-gnu
18dpaa2_mtune = cortex-A57
19dpaa2_march = "armv8-a+fp+simd+crc+crypto"
20dpaa2_cross_ldflags = \
21 -Wl,--dynamic-linker=/lib/ld-linux-aarch64.so.1
22
23dpaa2_native_tools = vppapigen
24dpaa2_root_packages = vpp vlib vlib-api vnet svm vpp-api-test
25
26# DPDK configuration parameters
27#
28# We are using external DPDK module with NXP-DPAA2 platform support.
29# Compile DPDK only if "DPDK_PATH" variable is defined where we have
30# installed DPDK libraries and headers.
31ifeq ($(PLATFORM),dpaa2)
32ifneq ($(DPDK_PATH),)
33dpaa2_uses_dpdk = yes
34dpaa2_uses_external_dpdk = yes
35dpaa2_dpdk_inc_dir = $(DPDK_PATH)/include/dpdk
36dpaa2_dpdk_lib_dir = $(DPDK_PATH)/lib
37else
38$(error Please define path <DPDK_PATH> for installed DPDK headers and libs)
39endif
40endif
41
42vpp_configure_args_dpaa2 = --with-dpdk --without-ipsec --without-vcgn \
43 --without-ipv6sr --with-sysroot=$(SYSROOT)
44vnet_configure_args_dpaa2 = --with-dpdk --without-ipsec --without-vcgn \
45 --without-ipv6sr --with-sysroot=$(SYSROOT)
46
47# Set these parameters carefully. The vlib_buffer_t is 128 bytes, i.e.
48vlib_configure_args_dpaa2 = --with-pre-data=128
49
50
51dpaa2_debug_TAG_CFLAGS = -g -O2 -DCLIB_DEBUG -fPIC -fstack-protector-all \
52 -march=$(MARCH) -Werror
53dpaa2_debug_TAG_LDFLAGS = -g -O2 -DCLIB_DEBUG -fstack-protector-all \
54 -march=$(MARCH) -Werror
55
56# Use -rdynamic is for stack tracing, O0 for debugging....default is O2
57# Use -DCLIB_LOG2_CACHE_LINE_BYTES to change cache line size
58dpaa2_TAG_CFLAGS = -g -O2 -fPIC -march=$(MARCH) -mcpu=$(dpaa2_mtune) \
59 -mtune=$(dpaa2_mtune) -funroll-all-loops -Werror
60dpaa2_TAG_LDFLAGS = -g -O2 -fPIC -march=$(MARCH) -mcpu=$(dpaa2_mtune) \
61 -mtune=$(dpaa2_mtune) -funroll-all-loops -Werror
62
63