From f290fa81c66df3b879a6286d3a864ff81b856493 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Wed, 19 Feb 2020 15:03:38 +0800 Subject: 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 Signed-off-by: Anuj Mittal --- recipes-extended/dpdk/dpdk.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 () { done done - oe_runmake -C ${TEST_DIR} install DESTDIR=${D}${INSTALL_PATH}/test/ + # Install test + for dirname in ${S}/${TEST_DIR}/app/* + do + install -m 0755 -d ${D}/${INSTALL_PATH}/test + + for appname in `find ${dirname} -regex ".*test\/app\/[-0-9a-zA-Z0-9/_]*$"` + do + install -m 755 ${appname} ${D}/${INSTALL_PATH}/test + done + done cp -r ${S}/mk ${D}${INSTALL_PATH}/ -- cgit v1.2.3-54-g00ecf