All of lore.kernel.org
 help / color / mirror / Atom feed
From: daniel_herrmann22@web.de
To: yocto@lists.yoctoproject.org
Subject: Install SDK with yocto
Date: Wed, 28 Jul 2021 14:12:53 -0700	[thread overview]
Message-ID: <DIPV.1627506773075229417.iDOw@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Hi,
I am new to yocto and have some problems by installing a SDK with yocto for AArch64.
The SDK you can find here: https://www.baumer.com/ch/de/produktubersicht/industriekameras-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 += " dpkg-native "

SRC_URI += " \
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=${D}/ \
--admindir=${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 architecture are different ?*

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

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

S = "${WORKDIR}"

inherit bin_package

#For Error: libraries are added by mutiple providers
EXCLUDE_FROM_SHLIBS = "1"

#For Warning: was already stripped (precompiled sources)
INSANE_SKIP_${PN} = "ldflags"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

do_install() {
cp -r "${WORKDIR}/include ${D}/include
...
}
The way I thought here, is to extract 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 way to installing this package*
*Thanks*

[-- Attachment #2: Type: text/html, Size: 2389 bytes --]

             reply	other threads:[~2021-07-28 21:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 21:12 daniel_herrmann22 [this message]
2021-07-29 13:13 ` [yocto] Install SDK with yocto Robert Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DIPV.1627506773075229417.iDOw@lists.yoctoproject.org \
    --to=daniel_herrmann22@web.de \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.