summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2020-02-19 15:03:38 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-02-25 15:05:53 +0800
commitf290fa81c66df3b879a6286d3a864ff81b856493 (patch)
tree2afc2b0b1325f45a34f8e3896ce9820ed1299c33
parentf47d49eb141dc8547686b5dcfcca289fe6b7ac68 (diff)
downloadmeta-dpdk-f290fa81c66df3b879a6286d3a864ff81b856493.tar.gz
dpdk: fix do_install error for test programs
The commit 8c2fb513234a599edb481f74f74cafe09561a4ee introduces an error when installing test programs: /buildarea//build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memory.o): In function `eal_legacy_hugepage_init': eal_memory.c:(.text+0x1f71): undefined reference to `memfd_create' /buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o): In function `get_seg_fd.constprop.0': eal_memalloc.c:(.text+0x61f): undefined reference to `memfd_create' eal_memalloc.c:(.text+0x696): undefined reference to `memfd_create' /buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o): In function `eal_memalloc_init': eal_memalloc.c:(.text+0x21ad): undefined reference to `memfd_create' /buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_pmd_memif.a(rte_eth_memif.o):rte_eth_memif.c:(.text+0xbc3): more undefined references to `memfd_create' follow collect2: error: ld returned 1 exit status The test programs have been complied and install to ${S}/test/app directory. We just need to ship them to ${D} directory. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-extended/dpdk/dpdk.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 293a404..4966ef4 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -134,7 +134,16 @@ do_install () {
134 done 134 done
135 done 135 done
136 136
137 oe_runmake -C ${TEST_DIR} install DESTDIR=${D}${INSTALL_PATH}/test/ 137 # Install test
138 for dirname in ${S}/${TEST_DIR}/app/*
139 do
140 install -m 0755 -d ${D}/${INSTALL_PATH}/test
141
142 for appname in `find ${dirname} -regex ".*test\/app\/[-0-9a-zA-Z0-9/_]*$"`
143 do
144 install -m 755 ${appname} ${D}/${INSTALL_PATH}/test
145 done
146 done
138 147
139 cp -r ${S}/mk ${D}${INSTALL_PATH}/ 148 cp -r ${S}/mk ${D}${INSTALL_PATH}/
140 149