From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E689C231C for ; Mon, 22 Sep 2014 20:29:39 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 22 Sep 2014 11:35:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,573,1406617200"; d="scan'208";a="606714575" Received: from sie-lab-212-143.ir.intel.com (HELO silpixa00385294.ir.intel.com) ([10.237.212.143]) by orsmga002.jf.intel.com with ESMTP; 22 Sep 2014 11:35:28 -0700 From: Alan Carew To: dev@dpdk.org Date: Mon, 22 Sep 2014 19:34:37 +0100 Message-Id: <1411410879-28872-9-git-send-email-alan.carew@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1411410879-28872-1-git-send-email-alan.carew@intel.com> References: <1411410879-28872-1-git-send-email-alan.carew@intel.com> Subject: [dpdk-dev] [PATCH 08/10] Build system integration for VM Power Management(Guest and Host) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 18:29:41 -0000 Add CONFIG_RTE_LIBRTE_POWER_VM to config/common_linuxapp, default=n As both host and guest side rely on the same API(librte_power) but different implementations, it requires the following configurations: Host: CONFIG_RTE_LIBRTE_POWER_VM=n and Add CONFIG_RTE_LIBRTE_POWER=y Guest: CONFIG_RTE_LIBRTE_POWER_VM=y and Add CONFIG_RTE_LIBRTE_POWER=n When building for either the resulting library is called rte_power. Signed-off-by: Alan Carew --- config/common_linuxapp | 6 ++++++ lib/Makefile | 1 + mk/rte.app.mk | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index 5bee910..fbecad3 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -332,6 +332,12 @@ CONFIG_RTE_LIBRTE_POWER_DEBUG=n CONFIG_RTE_MAX_LCORE_FREQS=64 # +# Compile librte_power_vm +# +CONFIG_RTE_LIBRTE_POWER_VM=n +CONFIG_RTE_LIBRTE_POWER_VM_DEBUG=n + +# # Compile librte_net # CONFIG_RTE_LIBRTE_NET=y diff --git a/lib/Makefile b/lib/Makefile index 10c5bb3..d291459 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -56,6 +56,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power +DIRS-$(CONFIG_RTE_LIBRTE_POWER_VM) += librte_power_vm DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 34dff2a..ce8c684 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -105,6 +105,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_POWER),y) LDLIBS += -lrte_power endif +ifeq ($(CONFIG_RTE_LIBRTE_POWER_VM),y) +LDLIBS += -lrte_power +endif + ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) LDLIBS += -lrte_acl endif -- 1.9.3