2017-12-18 15:56:25 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
2017-10-17 13:43:57 +01:00
|
|
|
|
2019-04-09 11:55:36 +01:00
|
|
|
if not is_linux
|
2021-04-20 11:22:24 +01:00
|
|
|
build = false
|
|
|
|
reason = 'only supported on Linux'
|
2017-10-17 13:43:57 +01:00
|
|
|
endif
|
2021-04-20 11:22:24 +01:00
|
|
|
sources = files(
|
|
|
|
'guest_channel.c',
|
|
|
|
'power_acpi_cpufreq.c',
|
|
|
|
'power_common.c',
|
2021-07-09 18:55:47 +08:00
|
|
|
'power_cppc_cpufreq.c',
|
2021-04-20 11:22:24 +01:00
|
|
|
'power_kvm_vm.c',
|
|
|
|
'power_pstate_cpufreq.c',
|
|
|
|
'rte_power.c',
|
|
|
|
'rte_power_empty_poll.c',
|
|
|
|
'rte_power_pmd_mgmt.c',
|
|
|
|
)
|
|
|
|
headers = files(
|
|
|
|
'rte_power.h',
|
|
|
|
'rte_power_empty_poll.h',
|
|
|
|
'rte_power_pmd_mgmt.h',
|
2021-04-26 11:54:03 +01:00
|
|
|
'rte_power_guest_channel.h',
|
2021-04-20 11:22:24 +01:00
|
|
|
)
|
2021-07-09 16:08:14 +00:00
|
|
|
if cc.has_argument('-Wno-cast-qual')
|
|
|
|
cflags += '-Wno-cast-qual'
|
|
|
|
endif
|
2021-01-22 17:12:16 +00:00
|
|
|
deps += ['timer', 'ethdev']
|