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 <[email protected]>
---
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 c52f8fe..8a41878 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -139,7 +139,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}/
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6387):
https://lists.yoctoproject.org/g/meta-intel/message/6387
Mute This Topic: https://lists.yoctoproject.org/mt/71390755/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-