[meta-intel] [master & fido][PATCH 13/16] meta-isg: dpdk: move the do_install hostapp directory from dpdk.inc to dpdk_1.8.0.bb

Ong Boon Leong boon.leong.ong at intel.com
Fri Jul 10 06:23:50 PDT 2015


From: WU CHIA CHUAN <chia.chuan.wu at intel.com>

dpdk.inc is common to dpdk_1.8.0.bb and dpdk_2.0.0.bb, since DPDK v2.0 is no longer have
hostapp directory, so we only perform hostapp installation for DPDK v1.8.

Signed-off-by: WU CHIA CHUAN <chia.chuan.wu at intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
---
 meta-isg/common/recipes-extended/dpdk/dpdk.inc     |    2 --
 .../common/recipes-extended/dpdk/dpdk_1.8.0.bb     |    6 ++++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
index 4125126..85b88fa 100644
--- a/meta-isg/common/recipes-extended/dpdk/dpdk.inc
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
@@ -71,7 +71,6 @@ do_install () {
 				${D}/${INSTALL_PATH}/tools \
 				${D}/${INSTALL_PATH}/${RTE_TARGET} \
 				${D}/${INSTALL_PATH}/${RTE_TARGET}/app \
-				${D}/${INSTALL_PATH}/${RTE_TARGET}/hostapp \
 				${D}${includedir} \
 				${D}${includedir}/${ARCHDIR} \
 				${D}${includedir}/exec-env \
@@ -90,7 +89,6 @@ do_install () {
 
 	# Install applications
 	install -m 0755 ${S}/${RTE_TARGET}/app/*	${D}/${INSTALL_PATH}/${RTE_TARGET}/app/
-	install -m 0755 ${S}/${RTE_TARGET}/hostapp/*	${D}/${INSTALL_PATH}/${RTE_TARGET}/hostapp/
 
 	# Install examples
 	for dirname in ${S}/examples/*
diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk_1.8.0.bb b/meta-isg/common/recipes-extended/dpdk/dpdk_1.8.0.bb
index a0f8d8a..cab76cc 100644
--- a/meta-isg/common/recipes-extended/dpdk/dpdk_1.8.0.bb
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk_1.8.0.bb
@@ -27,3 +27,9 @@ PACKAGECONFIG[libvirt] = ",,libvirt"
 export CONFIG_EXAMPLE_DPDK_QAT = "${@base_contains('PACKAGECONFIG', 'dpdk_qat', 'y', 'n', d)}"
 export CONFIG_EXAMPLE_VM_POWER_MANAGER = "${@base_contains('PACKAGECONFIG', 'libvirt', 'y', 'n', d)}"
 export CONFIG_VHOST_ENABLED = "${@base_contains('PACKAGECONFIG', 'vhost', 'y', 'n', d)}"
+
+do_install_append () {
+
+	install -m 0755 -d ${D}/${INSTALL_PATH}/${RTE_TARGET}/hostapp
+	install -m 0755 ${S}/${RTE_TARGET}/hostapp/*	${D}/${INSTALL_PATH}/${RTE_TARGET}/hostapp/
+}
-- 
1.7.9.5



More information about the meta-intel mailing list