From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6524973730788016128 X-Received: by 10.46.29.133 with SMTP id w5mr346291lje.26.1519287621069; Thu, 22 Feb 2018 00:20:21 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.64.15 with SMTP id n15ls346002lja.6.gmail; Thu, 22 Feb 2018 00:20:20 -0800 (PST) X-Google-Smtp-Source: AH8x2255Is9X0UaV0cdkqsJtI/xLVzgUqD1GFhPrqVhJcwanBMjnGc4PtqQB+zkuGZSMA/STTJiL X-Received: by 10.46.5.200 with SMTP id 191mr358286ljf.25.1519287620513; Thu, 22 Feb 2018 00:20:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519287620; cv=none; d=google.com; s=arc-20160816; b=kvDY5GL5xqRnF/Di173YDxMyyqrJlvqqWIiWGMB5Uirv9y6TiVqQhI5INf3vFD/Oky nL7WtvwfU8rIC0jrBPML7r0lO2mr3/tfWCiSUVNgeuZlLE+hkgFsEXHIWiwHByQchRA+ kEFQoUSpTO6hfQ2/XvEsUDRIg3kFZcW5Tol+yYtTvJmhr5123/tF8GFB79GkQB3JXXI1 NZcS2fGJDod0FPYJdOr/RAw3jnxUS7wrEQD5UsTqAtE7tqc4KJcKSvBGmwdrxjiWnFrh 53Y8rFg2dtwAQ6Es1XJ6j3BApnDv0w5fsmGX5Kn4CJeIZTC3SiPpshfYUc4mTr9Ki/vw /SVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=xiqBNRjn/lmGUS9Zn8QufxmKvxjS3N9K38pPmu8bVZ0=; b=Y+nkNpWidu4/+Boo5QBLEuskprgGoIgqLFKZRQ+YskK3x83VXAc5LE/+t5sj++mfLK 9En2ZsS9Mnf4fLV71IVwts84XBnrL0S2Q6RaMPnifwJjsINCCjKxH0iK+8kM9HTp/n69 A4PGUdkkdKGvpLUHw+FDMiLHHWUHM/2gKdxSlR7xR/s3tSGunUGarNRU67yA4mxx3Igu Sk5+nWPVBSkDhWbekflnrmoG1iNsWanVSR+Nf6LHJXC6tnTC+jr+4ElpKrGoj/wiH8l2 WYwBR88l85KaXF2aHkNV/Swu8+4RmZbI+gpaq1SgBYBuWtiq92CY/uNx2XlCouDemqOw duxw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id j4si16321lja.1.2018.02.22.00.20.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 00:20:20 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=212.18.0.9; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zn6jb6zCSz1r0X2; Thu, 22 Feb 2018 09:20:19 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zn6jb6plkz1r3TR; Thu, 22 Feb 2018 09:20:19 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id i8TLlWS4Ilql; Thu, 22 Feb 2018 09:20:18 +0100 (CET) X-Auth-Info: 9U6oLoyqx+kvrqWKcrr3Z3Gcf4z3T2YZ1cBuwejc2s0= Received: from Orrorin.Speedport_W723_V_Typ_A_1_01_009 (p578a821c.dip0.t-ipconnect.de [87.138.130.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 22 Feb 2018 09:20:18 +0100 (CET) Message-ID: <1519287617.2473.103.camel@denx.de> Subject: Re: [PATCH 2/5] meta/isar-bootstrap-helper.bbclass: handle rfs customization centrally From: Claudius Heine To: claudius.heine.ext@siemens.com, isar-users@googlegroups.com Date: Thu, 22 Feb 2018 09:20:17 +0100 In-Reply-To: <20180221115003.11163-3-claudius.heine.ext@siemens.com> References: <20180221115003.11163-1-claudius.heine.ext@siemens.com> <20180221115003.11163-3-claudius.heine.ext@siemens.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-0tqQg2Z8qqSikdO5ZDUZ" X-Mailer: Evolution 3.26.5 Mime-Version: 1.0 X-TUID: CxOu0BrTgVB3 --=-0tqQg2Z8qqSikdO5ZDUZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2018-02-21 at 12:50 +0100, claudius.heine.ext@siemens.com wrote: > From: Claudius Heine >=20 > This patch introduces the 'isar-bootstrap-helper' bitbake class to > support recipes that use the basic root file system created by > isar-bootstrap. >=20 > In this patch the function 'setup_root_file_system' is defined that > allows to copy the root file system to the directory specified in the > first parameter and installs additional packages specified by the > next parameters. It also adds the local 'isar-apt' repo to the apt > configuration and fetches its index. >=20 > Signed-off-by: Claudius Heine > --- > meta/classes/isar-bootstrap-helper.bbclass | 36 > ++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 meta/classes/isar-bootstrap-helper.bbclass >=20 > diff --git a/meta/classes/isar-bootstrap-helper.bbclass > b/meta/classes/isar-bootstrap-helper.bbclass > new file mode 100644 > index 0000000..49c81c1 > --- /dev/null > +++ b/meta/classes/isar-bootstrap-helper.bbclass > @@ -0,0 +1,36 @@ > +# Helper functions for using isar-bootstrap > +# > +# This software is a part of ISAR. > +# Copyright (c) Siemens AG, 2018 > +# > +# SPDX-License-Identifier: MIT > + > +setup_root_file_system() { > + RFSDIR=3D"$1" For consistency sake, I'll rename this variable to ROOTFSDIR, the same used in the isar-bootstrap recipe. > + shift > + PACKAGES=3D"$@" > + > + sudo cp -Trpfx \ > + "${DEPLOY_DIR_IMAGE}/isar-bootstrap-${DISTRO}- > ${DISTRO_ARCH}/" \ > + "$RFSDIR" > + > + echo "deb file:///isar-apt ${DEBDISTRONAME} main" | \ > + sudo tee "$RFSDIR/etc/apt/sources.list.d/isar-apt.list" > >/dev/null > + > + sudo mount --bind ${DEPLOY_DIR_APT}/${DISTRO} $RFSDIR/isar-apt > + sudo mount -t devtmpfs -o mode=3D0755,nosuid devtmpfs $RFSDIR/dev > + sudo mount -t proc none $RFSDIR/proc > + > + # Install packages: > + E=3D"${@ bb.utils.export_proxies(d)}" > + sudo -E chroot "$RFSDIR" /usr/bin/apt-get update \ > + -o Dir::Etc::sourcelist=3D"sources.list.d/isar-apt.list" \ > + -o Dir::Etc::sourceparts=3D"-" \ > + -o APT::Get::List-Cleanup=3D"0" > + sudo -E chroot "$RFSDIR" \ > + /usr/bin/apt-get install -y \ > + --allow-unauthenticated \ > + --no-install-recommends \ Should I instead of using '--no-install-recommends' put the following in the apt configuration within the isar-bootstrap process? APT::Install-Recommends "0" ; APT::Install-Suggests "0" ; regards, Claudius > + -o Debug::pkgProblemResolver=3Dyes \ > + $PACKAGES > +} --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-0tqQg2Z8qqSikdO5ZDUZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlqOfUEACgkQEXPLGZgI sVNmAA/8ClrWGvIULFQEaj63t20WEwilDVFhuNSGLor4g+ekbdoGTXaQ9PAsTkin o5wszCqAUMnAMQ8dleD4hoGzFAvP7dJA0JNEktw1xXSvq88V3cBES84o1gZSYmYF NRA5ScF0qK0T4/i8/RZwsc4JTvUyZ4aZEGf+Pu2CC+PGZElruy7YBBsfVs9a07jY SEBxuNrci+HJXLAbzv187JrbUlXo5vl4681jG5vfUZFzHh1nxrIHwr10oTw25M+U wHF02NHz/Xety0MB89gGIdtyOVd9ZY3zotYE9zrQKR0t0PAqL+BoQ7iTfCROJfRI SYEcigw2Xvr6LQW/Q9tT0xpcOTfcLRWqAcr93XMfPEXem5qb/MLPj7bI/WLCyZeB 49/bc38zCbisA5UNvb49/3EzXLPUmyjK5k3hQik+dEK2NnQwKDLnXhnl8yN7rQep HoI/nailOvvENP4WIqf2aBxAxusk8FqJP/kapRpBAq4Cxjphs+k+kHoeSgqWrELf dcCrROQUd9nHHIkMUgx5YEwux46cdpRX3c27tpSuAMBuQGAbAmXgHxeiDDrHugc2 uhj/6+6oQWz1rpBSsouVqYGJkSdiFK8FA2CoZ933H+kmEUK0t12u6XkjQ2qlUHzI Way5eS8v5twtiN7cpz0ZxE+Gbf2BBAKZf4acCSDccko+FFGmKEA= =DFC/ -----END PGP SIGNATURE----- --=-0tqQg2Z8qqSikdO5ZDUZ--