1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) Intel Corporation. 3# All rights reserved. 4# 5 6SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..) 7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk 8 9DIRS-y = dynamic 10 11# Do not compile schedulers and governors based on DPDK env 12# if non-DPDK env is used. 13ENV_NAME := $(notdir $(CONFIG_ENV)) 14ifeq ($(ENV_NAME),env_dpdk) 15ifeq ($(OS),Linux) 16DIRS-y += dpdk_governor gscheduler 17endif 18endif 19 20.PHONY: all clean $(DIRS-y) 21 22all: $(DIRS-y) 23clean: $(DIRS-y) 24 25include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk 26