From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 3/3] sdk: Provide README inside sdkchroot
Date: Wed, 20 Feb 2019 20:43:55 +0100 [thread overview]
Message-ID: <20190220194355.24046-4-mosipov@ilbers.de> (raw)
In-Reply-To: <20190220194355.24046-1-mosipov@ilbers.de>
Suggested-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
---
meta/recipes-devtools/sdkchroot/files/README.sdk | 42 ++++++++++++++++++++++++
meta/recipes-devtools/sdkchroot/sdkchroot.bb | 5 ++-
2 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/sdkchroot/files/README.sdk
diff --git a/meta/recipes-devtools/sdkchroot/files/README.sdk b/meta/recipes-devtools/sdkchroot/files/README.sdk
new file mode 100644
index 0000000..9c1af6d
--- /dev/null
+++ b/meta/recipes-devtools/sdkchroot/files/README.sdk
@@ -0,0 +1,42 @@
+Building applications for targets in ISAR takes a lot of time as they are built under QEMU.
+SDK helps to develop applications for target platform in crossbuild environment.
+
+SDK contains cross-toolchain for target architecture and a copy of isar-apt repo with
+locally prebuilt target debian packages.
+
+ - First one have to mount the system directories for proper operation in chroot environement.
+Just call supplied with sdk tarball in udo rootfs as an argument to the script `mount_chroot.sh`:
+
+$ sudo mount_chroot.sh <sdk_rootfs>
+
+ - chroot to isar SDK rootfs:
+
+$ sudo chroot <sdk_rootfs>
+
+ - Check that cross toolchains are installed
+
+:~# dpkg -l | grep crossbuild-essential-armhf
+ii crossbuild-essential-armhf 12.3 all Informational list of cross-build-essential packages
+
+ - Install needed prebuilt target packages.
+
+:~# apt-get update
+:~# apt-get install libhello-dev:armhf
+
+ - Check the contents of the installed target package
+
+:~# dpkg -L libhello-dev
+/.
+/usr
+/usr/include
+/usr/include/hello.h
+/usr/lib
+/usr/lib/arm-linux-gnueabihf
+/usr/lib/arm-linux-gnueabihf/libhello.a
+/usr/lib/arm-linux-gnueabihf/libhello.la
+/usr/share
+/usr/share/doc
+/usr/share/doc/libhello-dev
+/usr/share/doc/libhello-dev/changelog.gz
+/usr/share/doc/libhello-dev/copyright
+~#
diff --git a/meta/recipes-devtools/sdkchroot/sdkchroot.bb b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
index f6b9cce..895a454 100644
--- a/meta/recipes-devtools/sdkchroot/sdkchroot.bb
+++ b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
@@ -8,7 +8,9 @@ DESCRIPTION = "Isar SDK Root filesystem"
LICENSE = "gpl-2.0"
LIC_FILES_CHKSUM = "file://${LAYERDIR_core}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
-SRC_URI = "file://configscript.sh"
+SRC_URI = " \
+ file://configscript.sh \
+ file://README.sdk"
PV = "0.1"
inherit isar-bootstrap-helper
@@ -51,6 +53,7 @@ do_build() {
setup_root_file_system --copyisarapt --host-arch --host-distro "${S}" $packages
# Configure root filesystem
+ sudo install -m 644 ${WORKDIR}/README.sdk ${S}
sudo install -m 755 ${WORKDIR}/configscript.sh ${S}
sudo chroot ${S} /configscript.sh ${DISTRO_ARCH}
}
--
2.11.0
next prev parent reply other threads:[~2019-02-20 19:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-20 19:43 [PATCH 0/3] Improve SDK packaging Maxim Yu. Osipov
2019-02-20 19:43 ` [PATCH 1/3] classes/image: Remove setup scripts from final sdk image Maxim Yu. Osipov
2019-02-20 19:43 ` [PATCH 2/3] classes/image: Add mount_chroot.sh script to the " Maxim Yu. Osipov
2019-02-21 17:38 ` Henning Schild
2019-02-20 19:43 ` Maxim Yu. Osipov [this message]
2019-02-27 9:35 ` [PATCH 0/3] Improve SDK packaging Maxim Yu. Osipov
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=20190220194355.24046-4-mosipov@ilbers.de \
--to=mosipov@ilbers.de \
--cc=isar-users@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox