Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 1 | # 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 |
| 15 | dpaa2_arch = aarch64 |
| 16 | dpaa2_os = linux-gnu |
| 17 | dpaa2_target = aarch64-linux-gnu |
| 18 | dpaa2_mtune = cortex-A57 |
| 19 | dpaa2_march = "armv8-a+fp+simd+crc+crypto" |
| 20 | dpaa2_cross_ldflags = \ |
Sachin | 808b2db | 2016-06-18 15:56:35 +0530 | [diff] [blame] | 21 | -Wl,--dynamic-linker=/lib/ld-linux-aarch64.so.1 \ |
| 22 | -Wl,-rpath=/usr/lib64 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 23 | |
| 24 | dpaa2_native_tools = vppapigen |
| 25 | dpaa2_root_packages = vpp vlib vlib-api vnet svm vpp-api-test |
| 26 | |
| 27 | # DPDK configuration parameters |
Sachin | bd05e17 | 2016-06-17 14:18:19 +0530 | [diff] [blame] | 28 | dpaa2_uses_dpdk = yes |
| 29 | # Compile with external DPDK only if "DPDK_PATH" variable is defined where we have |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 30 | # installed DPDK libraries and headers. |
| 31 | ifeq ($(PLATFORM),dpaa2) |
| 32 | ifneq ($(DPDK_PATH),) |
| 33 | dpaa2_uses_dpdk = yes |
| 34 | dpaa2_uses_external_dpdk = yes |
| 35 | dpaa2_dpdk_inc_dir = $(DPDK_PATH)/include/dpdk |
| 36 | dpaa2_dpdk_lib_dir = $(DPDK_PATH)/lib |
| 37 | else |
Sachin | bd05e17 | 2016-06-17 14:18:19 +0530 | [diff] [blame] | 38 | # compile using internal DPDK + NXP DPAA2 Driver patch |
| 39 | dpaa2_dpdk_arch = "armv8a" |
| 40 | dpaa2_dpdk_target = "arm64-dpaa2-linuxapp-gcc" |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 41 | dpaa2_dpdk_make_extra_args = "CROSS=$(dpaa2_target)- DPDK_PKTMBUF_HEADROOM=256" |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 42 | endif |
| 43 | endif |
| 44 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame^] | 45 | vpp_configure_args_dpaa2 = --with-dpdk --without-libssl \ |
| 46 | --with-sysroot=$(SYSROOT) |
| 47 | vnet_configure_args_dpaa2 = --with-dpdk --without-libssl \ |
| 48 | --with-sysroot=$(SYSROOT) |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 49 | |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 50 | # Set these parameters carefully. The vlib_buffer_t is 256 bytes, i.e. |
| 51 | vlib_configure_args_dpaa2 = --with-pre-data=256 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 52 | |
| 53 | |
| 54 | dpaa2_debug_TAG_CFLAGS = -g -O2 -DCLIB_DEBUG -fPIC -fstack-protector-all \ |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 55 | -march=$(MARCH) -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 56 | dpaa2_debug_TAG_LDFLAGS = -g -O2 -DCLIB_DEBUG -fstack-protector-all \ |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 57 | -march=$(MARCH) -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 58 | |
| 59 | # Use -rdynamic is for stack tracing, O0 for debugging....default is O2 |
| 60 | # Use -DCLIB_LOG2_CACHE_LINE_BYTES to change cache line size |
| 61 | dpaa2_TAG_CFLAGS = -g -O2 -fPIC -march=$(MARCH) -mcpu=$(dpaa2_mtune) \ |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 62 | -mtune=$(dpaa2_mtune) -funroll-all-loops -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 63 | dpaa2_TAG_LDFLAGS = -g -O2 -fPIC -march=$(MARCH) -mcpu=$(dpaa2_mtune) \ |
Sachin | 3f0cb9e | 2016-08-09 14:37:05 +0530 | [diff] [blame] | 64 | -mtune=$(dpaa2_mtune) -funroll-all-loops -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 |
Sachin Saxena | 725c59c | 2016-06-10 16:31:30 +0530 | [diff] [blame] | 65 | |
| 66 | |