1 # Copyright (c) 2016 Intel Corporation.
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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 TLDK_ROOT := $(CURDIR)
17 LOCAL_RTE_SDK=$(TLDK_ROOT)/dpdk/_build/dpdk
20 export RTE_SDK=$(LOCAL_RTE_SDK)
23 RTE_TARGET ?= x86_64-native-linuxapp-gcc
29 MAKEFLAGS += --no-print-directory
32 O ?= $(TLDK_ROOT)/${RTE_TARGET}
33 BASE_OUTPUT ?= $(abspath $(O))
42 $(DIRS-y): $(RTE_SDK)/mk/rte.vars.mk
45 M=$(CURDIR)/$(@)/Makefile \
47 BASE_OUTPUT=$(BASE_OUTPUT) \
48 CUR_SUBDIR=$(CUR_SUBDIR)/$(@) \
50 RTE_TARGET=$(RTE_TARGET) \
51 $(filter-out $(DIRS-y),$(MAKECMDGOALS))
53 $(RTE_SDK)/mk/rte.vars.mk:
54 ifeq ($(RTE_SDK),$(LOCAL_RTE_SDK))
55 @make RTE_TARGET=$(RTE_TARGET) config all -C $(TLDK_ROOT)/dpdk/