From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6473366578589073408 X-Received: by 10.223.153.210 with SMTP id y76mr805158wrb.18.1507202070621; Thu, 05 Oct 2017 04:14:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.193.129 with SMTP id r123ls3877803wmf.1.gmail; Thu, 05 Oct 2017 04:14:30 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB5Mq/78x4o2Zj4VR5n3hDbQDizLDF/+YeEBwRckrOr61cD9o45sdj+O4fbhz8LpjldAJKw X-Received: by 10.28.99.67 with SMTP id x64mr2910823wmb.31.1507202070347; Thu, 05 Oct 2017 04:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507202070; cv=none; d=google.com; s=arc-20160816; b=H0Nk3QaEolXgTNspLc5LRMK78+MlbPMGfmbDyuMtk2hmNpakCw+mx0kQg3l7Pa48d9 w7ZK1WZ57tf83mbYA5pbz1o/3yU8TExwewQ5AqmJRpO5tBWJVhZJN8EDcpPwuepPAw0l F4VqOyzT4lDna9svwlk/j+TY/93lfj6ncn2Unn9hMsplKfGVQuoi3EziC9iSEfndl4Ps VSSciLCadpQtmXU5wPlP8g5KwFNfffZrj+dQrPooTOy6N09MrxXqH8BF3bWkOdIAjkfL xkgjhAyIypcPwVY9S7UOV7USRiyF5iwvWq7XVv2LVB6go4lVHiyan7cpnqnCehDvqOxe CxGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=iDqME1Ood4Kzn24StOJ6UbuW7mbIWvbFx2K7sgmdjb4=; b=Xk6zjxlSjlFILjiuCdJb2hvJdzBAPsT94gfH5UplE4zUDX4ayyZQ2qRw+yi6/Cnn+c +82aM2QiF4KREybz6DtLSm6JlkQIngsdyzuU4/yw0RdSDo9+EZ8pE8upiUlTEJuRJXnC dHS0DlbYK4RbmsTnER1IRAOw5G0UrAoiRi8o9TEntVAVbTWAReAAf9Fwa0906Uaanqqh Ur3MK+VjXLLu5F5jv36/XfIBCuvpzsN+3u2DBJwd8UyTNJdx05sgl6FdhrGK19+jZOT+ 6jg9+YXp0fXIIAs8qiQL16uEGspBJ89hBT13ZB/dau2ckrEyLbCMYe422KbyvSY262J0 /FtQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 74si125115wme.2.2017.10.05.04.14.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 04:14:30 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of claudius.heine.ext@siemens.com) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id v95BETBe027045 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Oct 2017 13:14:30 +0200 Received: from [139.25.68.223] (linux-ses-ext02.ppmd.siemens.net [139.25.68.223]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id v95BETbK010944; Thu, 5 Oct 2017 13:14:29 +0200 Subject: Re: [PATCH 1/4] apt: Generate configs for apt To: Alexander Smirnov , isar-users@googlegroups.com References: <20171005100807.3369-1-asmirnov@ilbers.de> <20171005100807.3369-2-asmirnov@ilbers.de> From: Claudius Heine Message-ID: <9e154cd2-72ee-fc8a-48c9-6ce295209ff0@siemens.com> Date: Thu, 5 Oct 2017 13:14:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171005100807.3369-2-asmirnov@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: vD1mFsG9eByH Hi, On 10/05/2017 12:08 PM, Alexander Smirnov wrote: > Generate reprepro configuration files for apt deployment. > > Signed-off-by: Alexander Smirnov > --- > meta-isar/conf/layer.conf | 10 ++++++++-- > meta-isar/recipes-core/images/files/distributions.in | 3 +++ > meta/classes/image.bbclass | 17 ++++++++++++++++- > 3 files changed, 27 insertions(+), 3 deletions(-) > create mode 100644 meta-isar/recipes-core/images/files/distributions.in > > diff --git a/meta-isar/conf/layer.conf b/meta-isar/conf/layer.conf > index 72a103c..0950a34 100644 > --- a/meta-isar/conf/layer.conf > +++ b/meta-isar/conf/layer.conf > @@ -1,5 +1,5 @@ > # This software is a part of ISAR. > -# Copyright (C) 2015-2016 ilbers GmbH > +# Copyright (C) 2015-2017 ilbers GmbH > > # We have a conf and classes directory, add to BBPATH > BBPATH .= ":${LAYERDIR}" > @@ -13,6 +13,12 @@ BBFILE_PRIORITY_isar = "5" > > # This should only be incremented on significant changes that will > # cause compatibility issues with other layers > -LAYERVERSION_isar = "2" > +LAYERVERSION_isar = "3" > > LAYERDIR_isar = "${LAYERDIR}" > + > +# Codename of the repository created by the caching class > +DEBDISTRONAME = "isar" > + > +# Path to the Isar apt repository > +DEPLOY_DIR_APT ?= "${DEPLOY_DIR}/apt" Thanks! I would prefer that being handled the same way the DL_DIR and SSTATE_DIR is handled. So the same variable naming scheme (maybe APT_CACHE_DIR) and similar default paths (maybe "${TOPDIR}/aptcache"). The deploy dir is not really the place to do work in. If you want to have something deployed to the deploy dir then it should be done via a recipe. I would suggest something like a "do_deploy_repository_deb" task in image recipes. But thats a separate patch. Claudius -- 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