Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B9235E00C41; Thu, 3 Aug 2017 20:01:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A02E6E00C2A for ; Thu, 3 Aug 2017 20:01:29 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v7431Saf011196 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 3 Aug 2017 20:01:28 -0700 (PDT) Received: from pek-hostel-deb01.wrs.com (128.224.153.151) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.361.1; Thu, 3 Aug 2017 20:01:28 -0700 From: Chen Qi To: Date: Fri, 4 Aug 2017 11:01:00 +0800 Message-ID: <20170804030100.10658-1-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [PATCH] openvswitch: fix dpdk PACKAGECONFIG X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 03:01:30 -0000 Content-Type: text/plain Add dpdk as a runtime dependency when 'dpdk' PACKAGECONFIG is enabled. Also, introduce a variable DPDK_INSTALL_DIR, and default it to /opt/dpdk. This is because users might install DPDK into different locations, e.g. /usr. And it would easy for users to override this variable to make openvswitch build with dpdk correctly. Signed-off-by: Chen Qi --- recipes-networking/openvswitch/openvswitch_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb index a3c586b..35f4ba8 100644 --- a/recipes-networking/openvswitch/openvswitch_git.bb +++ b/recipes-networking/openvswitch/openvswitch_git.bb @@ -48,8 +48,10 @@ SRC_URI += " \ LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35" +DPDK_INSTALL_DIR ?= "/opt/dpdk" + PACKAGECONFIG ?= "" -PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}/opt/dpdk/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk," +PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,dpdk" # Don't compile kernel modules by default since it heavily depends on # kernel version. Use the in-kernel module for now. -- 2.11.0