2018-12-06 14:17:51 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
# library name
|
|
|
|
LIB = librte_power.a
|
|
|
|
|
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing
|
2018-12-06 14:17:51 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_timer
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
EXPORT_MAP := rte_power_version.map
|
|
|
|
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
|
|
|
# all source are stored in SRCS-y
|
2018-12-06 14:17:51 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c power_acpi_cpufreq.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_POWER) += power_kvm_vm.c guest_channel.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_empty_poll.c
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
# install this header file
|
2018-12-06 14:17:51 +00:00
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_POWER)-include := rte_power.h rte_power_empty_poll.h
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|