* [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem
@ 2019-11-26 1:45 Jianzhong Xu
0 siblings, 0 replies; 3+ messages in thread
From: Jianzhong Xu @ 2019-11-26 1:45 UTC (permalink / raw)
To: meta-arago
* move dlr shared library to python site-packages dlr folder
* add neo-ai-dlr-tests to target file system
* change testing scripts' path to be the same as in source code
Signed-off-by: Jianzhong Xu <xuj@ti.com>
---
.../packagegroup-arago-tisdk-addons.bbappend | 2 +-
recipes-support/neo-ai/neo-ai-dlr_git.bb | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bbappend b/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bbappend
index 2a298e0..aa0a182 100644
--- a/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bbappend
+++ b/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bbappend
@@ -17,7 +17,7 @@ EXTRA_PACKAGES_append_k3 = " watchdog"
EXTRA_PACKAGES_append_omapl138 = " ccief-basic"
-NEO_AI_PACKAGES = "neo-ai-dlr"
+NEO_AI_PACKAGES = "neo-ai-dlr neo-ai-dlr-tests"
NEO_AI_PACKAGES_armv5 = ""
EXTRA_PACKAGES_append = " hidapi \
diff --git a/recipes-support/neo-ai/neo-ai-dlr_git.bb b/recipes-support/neo-ai/neo-ai-dlr_git.bb
index cbf4447..a895d21 100644
--- a/recipes-support/neo-ai/neo-ai-dlr_git.bb
+++ b/recipes-support/neo-ai/neo-ai-dlr_git.bb
@@ -55,16 +55,17 @@ do_install() {
distutils3_do_install
cd ${B}
- # setup.py install some libs under datadir, but we don't need them, so remove.
- rm ${D}${datadir}/dlr/*.so
+ # move shared library to Python search path
+ mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
# Now install python test scripts
- install -d ${D}${datadir}/dlr/tests
- install -m 0644 ${S}/tests/python/integration/*.py ${D}${datadir}/dlr/tests/
+ install -d ${D}${datadir}/neo-ai-dlr/tests/python/integration
+ install -m 0644 ${S}/tests/python/integration/*.py ${D}${datadir}/neo-ai-dlr/tests/python/integration
+ install -m 0644 ${S}/tests/python/integration/*.npy ${D}${datadir}/neo-ai-dlr/tests/python/integration
}
PACKAGES =+ "${PN}-tests"
-FILES_${PN}-tests = "${datadir}/dlr/tests"
+FILES_${PN}-tests = "${datadir}/neo-ai-dlr/tests"
RDEPENDS_${PN}-tests += "${PN}"
# Versioned libs are not produced
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem
2019-11-20 16:54 Jianzhong Xu
@ 2019-11-22 13:41 ` Xu, Jianzhong
0 siblings, 0 replies; 3+ messages in thread
From: Xu, Jianzhong @ 2019-11-22 13:41 UTC (permalink / raw)
To: meta-arago
Denys,
Any issue with this patch?
Thanks,
Jianzhong
-----Original Message-----
From: Xu, Jianzhong
Sent: Wednesday, November 20, 2019 11:54 AM
To: meta-arago@arago-project.org
Cc: Xu, Jianzhong
Subject: [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem
* move dlr shared library to python sitepackages dlr folder
Signed-off-by: Jianzhong Xu <xuj@ti.com>
---
recipes-support/neo-ai/neo-ai-dlr_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes-support/neo-ai/neo-ai-dlr_git.bb b/recipes-support/neo-ai/neo-ai-dlr_git.bb
index cbf4447..e81a939 100644
--- a/recipes-support/neo-ai/neo-ai-dlr_git.bb
+++ b/recipes-support/neo-ai/neo-ai-dlr_git.bb
@@ -57,6 +57,7 @@ do_install() {
# setup.py install some libs under datadir, but we don't need them, so remove.
rm ${D}${datadir}/dlr/*.so
+ mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
# Now install python test scripts
install -d ${D}${datadir}/dlr/tests
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem
@ 2019-11-20 16:54 Jianzhong Xu
2019-11-22 13:41 ` Xu, Jianzhong
0 siblings, 1 reply; 3+ messages in thread
From: Jianzhong Xu @ 2019-11-20 16:54 UTC (permalink / raw)
To: meta-arago
* move dlr shared library to python sitepackages dlr folder
Signed-off-by: Jianzhong Xu <xuj@ti.com>
---
recipes-support/neo-ai/neo-ai-dlr_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes-support/neo-ai/neo-ai-dlr_git.bb b/recipes-support/neo-ai/neo-ai-dlr_git.bb
index cbf4447..e81a939 100644
--- a/recipes-support/neo-ai/neo-ai-dlr_git.bb
+++ b/recipes-support/neo-ai/neo-ai-dlr_git.bb
@@ -57,6 +57,7 @@ do_install() {
# setup.py install some libs under datadir, but we don't need them, so remove.
rm ${D}${datadir}/dlr/*.so
+ mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
# Now install python test scripts
install -d ${D}${datadir}/dlr/tests
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-26 1:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 1:45 [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem Jianzhong Xu
-- strict thread matches above, loose matches on Subject: below --
2019-11-20 16:54 Jianzhong Xu
2019-11-22 13:41 ` Xu, Jianzhong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.