Discussion:
[meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem
Djordje Senicic
2018-09-24 16:05:50 UTC
Permalink
Signed-off-by: Djordje Senicic <***@ti.com>
---
.../arm-compute-library/arm-compute-library_git.bb | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
index d9fa8b0..8a65ade 100644
--- a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
+++ b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
@@ -29,20 +29,30 @@ LIBS += "-larmpl_lp64_mp"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"

- install -d ${D}${libdir}
+ install -m 0755 -d ${D}${libdir}
for lib in ${S}/build/*.so
do
- install -m 0644 $lib ${D}${libdir}
+ install -m 0755 $lib ${D}${libdir}
done

+ # Install 'example' and benchmark executables
+ install -d ${D}${bindir}
+ find ${S}/build/examples/ -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${S}/build/tests/arm_compute_benchmark ${D}${bindir}
+
# Install built source package as expected by ARMNN
install -d ${D}${datadir}/${BPN}
cp $CP_ARGS ${S}/. ${D}${datadir}/${BPN}
}

+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} = "ldflags"
INSANE_SKIP_${PN}-dev = "dev-elf ldflags"

PACKAGES =+ "${PN}-source"
+FILES_${PN} += "${bindir}/*"
+FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-source = "${datadir}/${BPN}"
INSANE_SKIP_${PN}-source = "ldflags libdir staticdev"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
1.9.1
Djordje Senicic
2018-09-24 16:05:51 UTC
Permalink
Signed-off-by: Djordje Senicic <***@ti.com>
---
meta-arago-extras/recipes-support/armnn/armnn_git.bb | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/meta-arago-extras/recipes-support/armnn/armnn_git.bb b/meta-arago-extras/recipes-support/armnn/armnn_git.bb
index 3bd4c82..726a9da 100644
--- a/meta-arago-extras/recipes-support/armnn/armnn_git.bb
+++ b/meta-arago-extras/recipes-support/armnn/armnn_git.bb
@@ -27,6 +27,8 @@ DEPENDS = " \
armnn-tensorflow \
"

+RDEPENDS_${PN} = " arm-compute-library protobuf boost "
+
EXTRA_OECMAKE=" \
-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF \
-DARMCOMPUTE_ROOT=${STAGING_DIR_HOST}${datadir}/arm-compute-library \
@@ -39,8 +41,20 @@ EXTRA_OECMAKE=" \
-DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \
"

+do_install_append() {
+ CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+ install -d ${D}${bindir}
+ find ${WORKDIR}/build/tests -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${WORKDIR}/build/UnitTests ${D}${bindir}
+ chrpath -d ${D}${bindir}/*
+}
+
CXXFLAGS += "-fopenmp"
LIBS += "-larmpl_lp64_mp"

+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+FILES_${PN} += "{bindir}/*"
+FILES_${PN} += "{libdir}/*"
FILES_${PN}-dev += "{libdir}/cmake/*"
INSANE_SKIP_${PN}-dev = "dev-elf"
--
1.9.1
Djordje Senicic
2018-09-24 16:05:52 UTC
Permalink
Signed-off-by: Djordje Senicic <***@ti.com>
---
.../packagegroup-arago-tisdk-addons-sdk-target.bb | 15 ++++++++++++---
.../packagegroups/packagegroup-arago-tisdk-addons.bb | 14 ++++++++++++--
2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb
index dc33381..4ff30cd 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb
@@ -150,9 +150,18 @@ EXTRA_LIBS_append_k2e = " libulm-staticdev \
"

EXTRA_PACKAGES = ""
-EXTRA_PACKAGES_append_ti33x = " voxelsdk-dev"
-EXTRA_PACKAGES_append_ti43x = " voxelsdk-dev"
-EXTRA_PACKAGES_append_omap-a15 = " voxelsdk-dev"
+EXTRA_PACKAGES_append_ti33x = " voxelsdk-dev \
+ arm-compute-library-dev \
+ armnn-dev \
+"
+EXTRA_PACKAGES_append_ti43x = " voxelsdk-dev \
+ arm-compute-library-dev \
+ armnn-dev \
+"
+EXTRA_PACKAGES_append_omap-a15 = " voxelsdk-dev \
+ arm-compute-library-dev \
+ armnn-dev \
+"

IPCDEV = " \
ti-ipc-dev \
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
index b0a9a50..5c77d8b 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb
@@ -142,11 +142,21 @@ EXTRA_PACKAGES_omapl138 = " \
protobuf \
"

-EXTRA_PACKAGES_append_ti33x = " voxelsdk"
-EXTRA_PACKAGES_append_ti43x = " voxelsdk"
+EXTRA_PACKAGES_append_ti33x = " voxelsdk \
+ arm-compute-library \
+ armnn \
+"
+
+EXTRA_PACKAGES_append_ti43x = " voxelsdk \
+ arm-compute-library \
+ armnn \
+"
+
EXTRA_PACKAGES_append_omap-a15 = " voxelsdk \
big-data-ipc-demo-linux \
big-data-ipc-demo-linux-firmware \
+ arm-compute-library \
+ armnn \
"

EXTRA_PACKAGES_append_omap-a15 = " ti-ipc-examples-linux"
--
1.9.1
Denys Dmytriyenko
2018-09-24 16:29:09 UTC
Permalink
Post by Djordje Senicic
---
.../arm-compute-library/arm-compute-library_git.bb | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
index d9fa8b0..8a65ade 100644
--- a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
+++ b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
@@ -29,20 +29,30 @@ LIBS += "-larmpl_lp64_mp"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
- install -d ${D}${libdir}
+ install -m 0755 -d ${D}${libdir}
for lib in ${S}/build/*.so
do
- install -m 0644 $lib ${D}${libdir}
+ install -m 0755 $lib ${D}${libdir}
Why do you make libraries executable?
BTW, are those *.so actual libraries or symlinks?
Post by Djordje Senicic
done
+ # Install 'example' and benchmark executables
+ install -d ${D}${bindir}
+ find ${S}/build/examples/ -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${S}/build/tests/arm_compute_benchmark ${D}${bindir}
+
# Install built source package as expected by ARMNN
install -d ${D}${datadir}/${BPN}
cp $CP_ARGS ${S}/. ${D}${datadir}/${BPN}
}
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} = "ldflags"
INSANE_SKIP_${PN}-dev = "dev-elf ldflags"
PACKAGES =+ "${PN}-source"
+FILES_${PN} += "${bindir}/*"
+FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-source = "${datadir}/${BPN}"
INSANE_SKIP_${PN}-source = "ldflags libdir staticdev"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
1.9.1
_______________________________________________
meta-arago mailing list
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Senicic, Djordje
2018-09-24 17:02:30 UTC
Permalink
I was recreating flags the way they are set in image folder.
*.so are actual shared libraries.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 24, 2018 12:29 PM
To: Senicic, Djordje
Cc: meta-***@arago-project.org; Senicic, Djordje
Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem
Post by Djordje Senicic
---
.../arm-compute-library/arm-compute-library_git.bb | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
index d9fa8b0..8a65ade 100644
--- a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
+++ b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
@@ -29,20 +29,30 @@ LIBS += "-larmpl_lp64_mp"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
- install -d ${D}${libdir}
+ install -m 0755 -d ${D}${libdir}
for lib in ${S}/build/*.so
do
- install -m 0644 $lib ${D}${libdir}
+ install -m 0755 $lib ${D}${libdir}
Why do you make libraries executable?
BTW, are those *.so actual libraries or symlinks?
Post by Djordje Senicic
done
+ # Install 'example' and benchmark executables
+ install -d ${D}${bindir}
+ find ${S}/build/examples/ -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${S}/build/tests/arm_compute_benchmark ${D}${bindir}
+
# Install built source package as expected by ARMNN
install -d ${D}${datadir}/${BPN}
cp $CP_ARGS ${S}/. ${D}${datadir}/${BPN}
}
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} = "ldflags"
INSANE_SKIP_${PN}-dev = "dev-elf ldflags"
PACKAGES =+ "${PN}-source"
+FILES_${PN} += "${bindir}/*"
+FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-source = "${datadir}/${BPN}"
INSANE_SKIP_${PN}-source = "ldflags libdir staticdev"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
1.9.1
_______________________________________________
meta-arago mailing list
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Denys Dmytriyenko
2018-09-24 17:43:28 UTC
Permalink
Post by Senicic, Djordje
I was recreating flags the way they are set in image folder.
Not sure I follow. Do they need to be executable? Normally *.so in Linux are
not.
Post by Senicic, Djordje
*.so are actual shared libraries.
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 24, 2018 12:29 PM
To: Senicic, Djordje
Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem
Post by Djordje Senicic
---
.../arm-compute-library/arm-compute-library_git.bb | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
index d9fa8b0..8a65ade 100644
--- a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
+++ b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
@@ -29,20 +29,30 @@ LIBS += "-larmpl_lp64_mp"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
- install -d ${D}${libdir}
+ install -m 0755 -d ${D}${libdir}
for lib in ${S}/build/*.so
do
- install -m 0644 $lib ${D}${libdir}
+ install -m 0755 $lib ${D}${libdir}
Why do you make libraries executable?
BTW, are those *.so actual libraries or symlinks?
Post by Djordje Senicic
done
+ # Install 'example' and benchmark executables
+ install -d ${D}${bindir}
+ find ${S}/build/examples/ -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${S}/build/tests/arm_compute_benchmark ${D}${bindir}
+
# Install built source package as expected by ARMNN
install -d ${D}${datadir}/${BPN}
cp $CP_ARGS ${S}/. ${D}${datadir}/${BPN}
}
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} = "ldflags"
INSANE_SKIP_${PN}-dev = "dev-elf ldflags"
PACKAGES =+ "${PN}-source"
+FILES_${PN} += "${bindir}/*"
+FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-source = "${datadir}/${BPN}"
INSANE_SKIP_${PN}-source = "ldflags libdir staticdev"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
1.9.1
_______________________________________________
meta-arago mailing list
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Senicic, Djordje
2018-09-24 18:26:27 UTC
Permalink
This is the build folder and share libraries created with baseline ARM package. E.g. for arm-compute-library:
..../oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/arm-compute-library/18.05-r0/git$ ls -ltr build/
total 14024
-rw-r--r-- 1 x0123456 crrrryyy 6546120 Sep 24 10:05 libarm_compute_core-static.a
-rw-r--r-- 1 x0123456 crrrryyy 1811472 Sep 24 10:09 libarm_compute-static.a
-rwxr-xr-x 1 x0123456 crrrryyy 4058208 Sep 24 10:09 libarm_compute_core.so
drwxr-xr-x 5 x0123456 crrrryyy 4096 Sep 24 10:10 src
-rwxr-xr-x 1 x0123456 crrrryyy 755212 Sep 24 10:10 libarm_compute.so
-rw-r--r-- 1 x0123456 crrrryyy 824470 Sep 24 10:10 libarm_compute_graph-static.a
-rwxr-xr-x 1 x0123456 crrrryyy 334928 Sep 24 10:11 libarm_compute_graph.so
drwxr-xr-x 2 x0123456 crrrryyy 4096 Sep 24 10:11 utils
drwxr-xr-x 2 x0123456 crrrryyy 4096 Sep 24 10:12 examples
drwxr-xr-x 4 x0123456 crrrryyy 4096 Sep 24 10:14 tests

So preserving original flags.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 24, 2018 1:43 PM
To: Senicic, Djordje
Cc: meta-***@arago-project.org
Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem
Post by Senicic, Djordje
I was recreating flags the way they are set in image folder.
Not sure I follow. Do they need to be executable? Normally *.so in Linux are
not.
Post by Senicic, Djordje
*.so are actual shared libraries.
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 24, 2018 12:29 PM
To: Senicic, Djordje
Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem
Post by Djordje Senicic
---
.../arm-compute-library/arm-compute-library_git.bb | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
index d9fa8b0..8a65ade 100644
--- a/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
+++ b/meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library_git.bb
@@ -29,20 +29,30 @@ LIBS += "-larmpl_lp64_mp"
do_install() {
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
- install -d ${D}${libdir}
+ install -m 0755 -d ${D}${libdir}
for lib in ${S}/build/*.so
do
- install -m 0644 $lib ${D}${libdir}
+ install -m 0755 $lib ${D}${libdir}
Why do you make libraries executable?
BTW, are those *.so actual libraries or symlinks?
Post by Djordje Senicic
done
+ # Install 'example' and benchmark executables
+ install -d ${D}${bindir}
+ find ${S}/build/examples/ -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \;
+ cp $CP_ARGS ${S}/build/tests/arm_compute_benchmark ${D}${bindir}
+
# Install built source package as expected by ARMNN
install -d ${D}${datadir}/${BPN}
cp $CP_ARGS ${S}/. ${D}${datadir}/${BPN}
}
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} = "ldflags"
INSANE_SKIP_${PN}-dev = "dev-elf ldflags"
PACKAGES =+ "${PN}-source"
+FILES_${PN} += "${bindir}/*"
+FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-source = "${datadir}/${BPN}"
INSANE_SKIP_${PN}-source = "ldflags libdir staticdev"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
1.9.1
_______________________________________________
meta-arago mailing list
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Loading...