From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Install SDK with yocto To: yocto@lists.yoctoproject.org From: daniel_herrmann22@web.de X-Originating-Location: Heidelberg, Baden-Württemberg, DE (92.74.25.68) X-Originating-Platform: Linux Firefox 90 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 28 Jul 2021 14:12:53 -0700 Message-ID: Content-Type: multipart/alternative; boundary="eleKsl2Ri5k4bLKNzwuA" --eleKsl2Ri5k4bLKNzwuA Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I am new to yocto and have some problems by installing a SDK with yocto fo= r AArch64. The SDK you can find here: https://www.baumer.com/ch/de/produktubersicht/i= ndustriekameras-bildverarbeitung/software/baumer-gapi-sdk/linux-arm/c/14178 It comes with a debian package and a tar.gz file. The tar is like this: include/sdk-folder/header-files lib/sdk-folder/lib-files etc.. *Question 1: What is the best way to install this with yocto ?* *1. I tried to install the deb package like this with no success:* DEPENDS +=3D " dpkg-native " SRC_URI +=3D " \ file://baumer-gapi-sdk-linux-v2.11.0-gcc-5.4-aarch64.deb.zip \ " do_install_append() { touch ${STAGING_DIR_NATIVE}/var/lib/dpkg/status ${STAGING_BINDIR_NATIVE}/dpkg --instdir=3D${D}/ \ --admindir=3D${STAGING_DIR_NATIVE}/var/lib/dpkg/ \ -i ${WORKDIR}/baumer-gapi-sdk-linux-v2.11.0-gcc-5.4-aarch64.deb } *Question 2: Is this a good way with dpkg, when host and target architectu= re are different ?* *2. I tried to install the tar.gz file like this also with no sucess:* # Use local tarball SRC_URI =3D "file://${BP}.tar.gz" S =3D "${WORKDIR}" inherit bin_package #For Error: libraries are added by mutiple providers EXCLUDE_FROM_SHLIBS =3D "1" #For Warning: was already stripped (precompiled sources) INSANE_SKIP_${PN} =3D "ldflags" INHIBIT_PACKAGE_DEBUG_SPLIT =3D "1" INHIBIT_PACKAGE_STRIP =3D "1" do_install() { cp -r "${WORKDIR}/include ${D}/include ... } The way I thought here, is to extract and copy each file to the target ins= ide do_install.. *It would be very helpful when you could give me some hints for the best w= ay to installing this package* *Thanks* --eleKsl2Ri5k4bLKNzwuA Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,
I am new to yocto and have some problems by installing a SDK with = yocto for AArch64.
The SDK you can find here: htt= ps://www.baumer.com/ch/de/produktubersicht/industriekameras-bildverarbeitun= g/software/baumer-gapi-sdk/linux-arm/c/14178

It comes with a= debian package and a tar.gz file.
The tar is like this:
include/sdk-folder/header-files
lib/sdk-folder/lib-files
etc..


Question 1: What is the best way to install this with = yocto ?

1. I tried to install the deb package = like this with no success:

DEPENDS +=3D " dpkg-native "=

SRC_URI +=3D " \
    file://baumer-gapi-sdk= -linux-v2.11.0-gcc-5.4-aarch64.deb.zip \
"

do_install_appen= d() {
    touch ${STAGING_DIR_NATIVE}/var/lib/dpkg/stat= us
    ${STAGING_BINDIR_NATIVE}/dpkg --instdir=3D${D}/ = \
    --admindir=3D${STAGING_DIR_NATIVE}/var/lib/dpkg/ = \
     -i ${WORKDIR}/baumer-gapi-sdk-linux-v2.11.0= -gcc-5.4-aarch64.deb
}
Question 2: Is this a good way wit= h dpkg, when host and target architecture are different ?

2. I tried to install the tar.gz file like this also with= no sucess:

# Use local tarball
SRC_URI =3D "file:= //${BP}.tar.gz"

S =3D "${WORKDIR}"

inherit bin_packag= e

#For Error: libraries are added by mutiple providers
EXCL= UDE_FROM_SHLIBS =3D "1"

#For Warning: was already stripped (prec= ompiled sources)
INSANE_SKIP_${PN} =3D "ldflags"
INHIBIT_PACKAGE_= DEBUG_SPLIT =3D "1"
INHIBIT_PACKAGE_STRIP =3D "1"

do_instal= l() {
    cp -r "${WORKDIR}/include ${D}/include
 =    ...  
}
The way I thought here, is to ext= ract and copy each file to the target inside do_install..

It would be very helpful when you could give me some hints for the best w= ay to installing this package
Thanks --eleKsl2Ri5k4bLKNzwuA--