rte_power was added to DPDK long time ago, but some of the DPDK packages do not include it. For those cases just skip building components that depend on in. This change still allows to use dynamic scheduler, since the dpdk_governor usage is optional. Fixes #2534 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ied88edc8d58aae07d1384c1c40203fc80b919d80 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12993 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
25 lines
559 B
Makefile
25 lines
559 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
DIRS-y = dynamic
|
|
|
|
# When DPDK rte_power is missing, do not compile schedulers
|
|
# and governors based on it.
|
|
ifeq (y,$(DPDK_POWER))
|
|
DIRS-y += dpdk_governor gscheduler
|
|
else
|
|
$(warning Skipping building dpdk_governor and gscheduler, due to missing rte_power)
|
|
endif
|
|
|
|
.PHONY: all clean $(DIRS-y)
|
|
|
|
all: $(DIRS-y)
|
|
clean: $(DIRS-y)
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
|