From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6660170843026358272 X-Received: by 2002:a2e:8593:: with SMTP id b19mr1985520lji.5.1550691867126; Wed, 20 Feb 2019 11:44:27 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:5551:: with SMTP id j78ls2949ljb.11.gmail; Wed, 20 Feb 2019 11:44:26 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia5dB7gRbAyMzVcOqJygqyFCh+u0nFOadxzVEwHmVXE1KvWILckGVxonS9uCRIjGidYGVZk X-Received: by 2002:a2e:2c1a:: with SMTP id s26mr2203113ljs.12.1550691866502; Wed, 20 Feb 2019 11:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550691866; cv=none; d=google.com; s=arc-20160816; b=RxmbZXQJ245E7yOlMLgcnN74dGTm5zdonfW/sG6of/qMXmFhsc+6vy4ko2AspaEzwe EG9SWweypGAYe7htWr/b2z1YhofDWANJ0JvA26D/zTskWozTkmDxQuQlTanxvTMXCbPY 5wxVHtqpoMsJPccfA95xc6nt/KlsXXYoX2fIaxaNUpp4H8FkJdJ98eFFX4v3lR2ADjb6 Jq8BqIvW4EUuMBrHE56xrdC99vVBIUNvKcWDx0nqRR3soWC7KYhpzKXoQDlsGYtNJU/6 QTCtAReKltAJrHVf+4+bXauLpF1OIqwhuebh3Gxo2HatfWXiwJAOzR9mMJ+CNMRP9QPU I+Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from; bh=/0DjH8Fp/93810QrAPvVW/S6dBw88L4xDEuJN1H/mZ0=; b=e1WtGPhFKUWlkY5PW9IH9SNJaK2XgArUxSvVWv6I9f95IzPNLawEb2KJ8w15fhNV5W w9t4bdJuGSIx5879kO+eOVDaDcMdwDkuFmYv1EpCG+CYnTG8bXmE7MVdH6d0tdwo3dS0 2MND+MxOYrkESxMf4j/hV4iwQ99/+rcFvsCUZXpgpTrB9LiGqgBbw0473sHNCpab4VYF 5T9HKeWY5L1H94tpWghC6XuiMix3NAM8F8w8OkpQJoculhZRjz1RM6oorpl7Y+pCk+j/ VByWKzCwhqctyZGKzi4sBLMPkF8Z4esIapS6IQ0wowLYrjzWofvxF8b4MIfNIYxkBWPb J59g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id d20si933550lfi.3.2019.02.20.11.44.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Feb 2019 11:44:26 -0800 (PST) Received-SPF: pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from azat.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id x1KJhtcb025370 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Feb 2019 20:44:25 +0100 From: "Maxim Yu. Osipov" To: isar-users@googlegroups.com Subject: [PATCH 3/3] sdk: Provide README inside sdkchroot Date: Wed, 20 Feb 2019 20:43:55 +0100 Message-Id: <20190220194355.24046-4-mosipov@ilbers.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190220194355.24046-1-mosipov@ilbers.de> References: <20190220194355.24046-1-mosipov@ilbers.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: /VdDaGeMtxCU Suggested-by: Jan Kiszka Signed-off-by: Maxim Yu. Osipov --- 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 + + - chroot to isar SDK rootfs: + +$ sudo chroot + + - 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