From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by arago-project.org (Postfix) with ESMTPS id D51DF52079 for ; Mon, 24 Sep 2018 18:26:35 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8OIQRVx066983 for ; Mon, 24 Sep 2018 13:26:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1537813587; bh=uzWndovF+hvhjuE7tw72qL9V1V0Q0cCPRCQ1sqbX+AM=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=XKIgzss9XwCSZN5xMPqY4L3DmrDEWDrF93ACzJL30Ie3aFy9MPjUB/i+nA16GZn0P W/3XeKBG1DYZ+ieVz2TEVtuBRHC/IEKH54B4EZHjE9GMQjbmmfv5RynpgwDwnRmMRA lwS2XH8ecAgDtwdf30eLcq++8S5+JhxAIg0ugLAQ= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8OIQR8s027614 for ; Mon, 24 Sep 2018 13:26:27 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 24 Sep 2018 13:26:26 -0500 Received: from DLEE100.ent.ti.com ([fe80::ad4d:c227:3f85:880d]) by DLEE100.ent.ti.com ([fe80::ad4d:c227:3f85:880d%17]) with mapi id 15.01.1466.003; Mon, 24 Sep 2018 13:26:27 -0500 From: "Senicic, Djordje" To: "Dmytriyenko, Denys" Thread-Topic: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem Thread-Index: AQHUVCPkZEmWGcSZiU2Qd4HdQtdTkKT/p+BQgABf3QD//7aX8A== Date: Mon, 24 Sep 2018 18:26:27 +0000 Message-ID: References: <1537805152-4059-1-git-send-email-x0157990@ti.com> <20180924162909.GC18600@beryl> <20180924174328.GD18600@beryl> In-Reply-To: <20180924174328.GD18600@beryl> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.218.103.75] x-exclaimer-md-config: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 MIME-Version: 1.0 Cc: "meta-arago@arago-project.org" Subject: Re: [rocko][PATCH 1/3] arm-compute-library: Add executables to the filesystem X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2018 18:26:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This is the build folder and share libraries created with baseline ARM pack= age. 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-sta= tic.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-st= atic.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=20 Sent: Monday, September 24, 2018 1:43 PM To: Senicic, Djordje Cc: meta-arago@arago-project.org Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add execu= tables to the filesystem On Mon, Sep 24, 2018 at 01:02:30PM -0400, Senicic, Djordje wrote: > 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 ar= e=20 not. > *.so are actual shared libraries. >=20 > -----Original Message----- > From: Dmytriyenko, Denys=20 > Sent: Monday, September 24, 2018 12:29 PM > To: Senicic, Djordje > Cc: meta-arago@arago-project.org; Senicic, Djordje > Subject: Re: [meta-arago] [rocko][PATCH 1/3] arm-compute-library: Add exe= cutables to the filesystem >=20 > On Mon, Sep 24, 2018 at 12:05:50PM -0400, Djordje Senicic wrote: > > Signed-off-by: Djordje Senicic > > --- > > .../arm-compute-library/arm-compute-library_git.bb | 14 ++++++= ++++++-- > > 1 file changed, 12 insertions(+), 2 deletions(-) > >=20 > > diff --git a/meta-arago-extras/recipes-support/arm-compute-library/arm-= compute-library_git.bb b/meta-arago-extras/recipes-support/arm-compute-libr= ary/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 +=3D "-larmpl_lp64_mp" > > do_install() { > > CP_ARGS=3D"-Prf --preserve=3Dmode,timestamps --no-preserve=3Downer= ship" > > =20 > > - 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} >=20 > Why do you make libraries executable? > BTW, are those *.so actual libraries or symlinks? >=20 >=20 > > done > > =20 > > + # 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} > > } > > =20 > > +SOLIBS =3D ".so" > > +FILES_SOLIBSDEV =3D "" > > +INSANE_SKIP_${PN} =3D "ldflags" > > INSANE_SKIP_${PN}-dev =3D "dev-elf ldflags" > > =20 > > PACKAGES =3D+ "${PN}-source" > > +FILES_${PN} +=3D "${bindir}/*" > > +FILES_${PN} +=3D "${libdir}/*.so" > > FILES_${PN}-source =3D "${datadir}/${BPN}" > > INSANE_SKIP_${PN}-source =3D "ldflags libdir staticdev" > > INHIBIT_PACKAGE_DEBUG_SPLIT =3D "1" > > --=20 > > 1.9.1 > >=20 > > _______________________________________________ > > meta-arago mailing list > > meta-arago@arago-project.org > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago