]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/mk/rte.sdkroot.mk
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / mk / rte.sdkroot.mk
CommitLineData
11fdf7f2
TL
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2010-2014 Intel Corporation
3
4MAKEFLAGS += --no-print-directory
5
6# define Q to '@' or not. $(Q) is used to prefix all shell commands to
7# be executed silently.
8Q=@
9ifeq '$V' '0'
10override V=
11endif
12ifdef V
13ifeq ("$(origin V)", "command line")
14Q=
15endif
16endif
17export Q
18
19ifeq ($(RTE_SDK),)
20$(error RTE_SDK is not defined)
21endif
22
23RTE_SRCDIR = $(CURDIR)
24export RTE_SRCDIR
25
26BUILDING_RTE_SDK := 1
27export BUILDING_RTE_SDK
28
29#
30# We can specify the configuration template when doing the "make
9f95a23c 31# config". For instance: make config T=x86_64-native-linux-gcc
11fdf7f2
TL
32#
33RTE_CONFIG_TEMPLATE :=
34ifdef T
35ifeq ("$(origin T)", "command line")
36RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(T)
37endif
38endif
39export RTE_CONFIG_TEMPLATE
40
41#
42# Default output is $(RTE_SRCDIR)/build
43# output files wil go in a separate directory
44#
45ifdef O
46ifeq ("$(origin O)", "command line")
47RTE_OUTPUT := $(abspath $(O))
48endif
49endif
50RTE_OUTPUT ?= $(RTE_SRCDIR)/build
51export RTE_OUTPUT
52
53# the directory where intermediate build files are stored, like *.o,
54# *.d, *.cmd, ...
55BUILDDIR = $(RTE_OUTPUT)/build
56export BUILDDIR
57
58export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n
59
9f95a23c
TL
60.PHONY: default test-build
61default test-build: all
11fdf7f2
TL
62
63.PHONY: config defconfig showconfigs showversion showversionum
64config defconfig showconfigs showversion showversionum:
65 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@
66
67.PHONY: cscope gtags tags etags
68cscope gtags tags etags:
69 $(Q)$(RTE_SDK)/devtools/build-tags.sh $@ $T
70
71.PHONY: test test-fast test-perf coverage test-drivers test-dump
72test test-fast test-perf coverage test-drivers test-dump:
73 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktest.mk $@
74
11fdf7f2
TL
75.PHONY: install
76install:
77 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk pre_install
78 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@
79install-%:
80 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@
81
82.PHONY: doc help
83doc: doc-all
84help: doc-help
85doc-%:
86 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkdoc.mk $*
87
88.PHONY: gcov gcovclean
89gcov gcovclean:
90 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkgcov.mk $@
91
92.PHONY: examples examples_clean
93examples examples_clean:
94 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkexamples.mk $@
95
96# all other build targets
97%:
98 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk checkconfig
99 $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkbuild.mk $@