From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057909071463055360 X-Received: by 2002:a2e:b0fb:: with SMTP id h27mr1354168ljl.161.1644409054697; Wed, 09 Feb 2022 04:17:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bc08:: with SMTP id b8ls322714ljf.0.gmail; Wed, 09 Feb 2022 04:17:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFO49WMezgkJLp72FOPpk4yGBR7uWdAK+sbbsxutFREm2FaXH97bp/8rvBajAbU8+X1tg1 X-Received: by 2002:a2e:834b:: with SMTP id l11mr1353870ljh.336.1644409053614; Wed, 09 Feb 2022 04:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644409053; cv=none; d=google.com; s=arc-20160816; b=CRnsDbQIgXvfAtE8br0+7ZDP324W4OkKXm/MJyrfk1OeLKs9EyPzXHMJC9M447FVvN y/KQP7O5NUY9dh26i6U0E8/Qc6opeznhECGnksF2dWEK6OYVCjXblUcJ4v5lB0C1/FNd SpRNWwm/AaMKy3QJan8j/UZFuShh8fXWNmsNo2SmLhpvYVNtwYmR++i7WfZLhqitDKx1 0T8j+BcgyOYlqNbr0Lo2LgRoKLINBemWjmdRHImGlWxJVfr7Begh0/6EyQsKoBh4ierf YRYzb/J6EvjHpQfh1zt7JVlZklqoglxW4PTTSnQyzQ3MqY/dWtmWvadIREScB2YA0rTT Mmbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=dgPweV1Im5+4x/4sOh3R39QYqwlLMBvgxVYxVdqaq4A=; b=cSzKDjCZKDYFr5b7JMT+sBsGVtWasTpKZZUE7mBD+KUXzHW/p+dgFFyMywM7M+jYFR 5zwlvaQoHNG4M9UFWG8GmrF21TmD+AuojdBzvbmjALP7sPTAaPx36PH5VRihprrxJZmR XXln6hrcku+0o3d2DMAAA9Nssy3kA2K4gV3y0y98diOgEo0g1nl/Wh4BYF6WfOXxnFQT BckdapgYPZYTpmJBlShjvJgIzCOTOaSgY2s+tVaqBh25ZDlW+66HReaTDr6ctBqmdW4S tMkXq787Lfz5q4vxlO3VSAo3W1R29aAk/j69EXn+Q8S8Ojx7qf+5O22yfivFuzFo+Z6J ttvQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id d6si179497lfn.5.2022.02.09.04.17.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Feb 2022 04:17:33 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@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 amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (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 219CHURG024148 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Feb 2022 13:17:31 +0100 Subject: Re: [PATCH v7 0/1] add support for debian build profiles To: Felix Moessbauer , isar-users@googlegroups.com Cc: vijaikumar.kanagarajan@gmail.com, jan.kiszka@siemens.com References: <20220201161619.726934-1-felix.moessbauer@siemens.com> From: Anton Mikanovich Message-ID: <5de2856c-0dcc-6e59-0566-d2adae198262@ilbers.de> Date: Wed, 9 Feb 2022 15:17:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220201161619.726934-1-felix.moessbauer@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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: gu4aoewYKdsD 01.02.2022 19:16, Felix Moessbauer wrote: > Changes since v6: > > - always expand ISAR_CROSS_COMPILE variable when used in debian build profiles / options > - rebased onto next > > Changes since v5: > > - squash into a single commit to ensure atomicity of patch (review comment from Jan Kiszka) > > Changes since v4: > > - fix devshell (glitch introduced in v3) > > Changes since v3: > > Set variables via export shell directive instead of setting via os.environ. > This change is required as os.environ sets the environment of the whole bitbake run, hence affects other tasks as well. > As we have to use export, there is no way for us to check if the variable is already exported. > Also checking the current env-vars in isar_deb_build_profiles does not help as the bb function is called prior to the invocation of the shell function that does the compiling. > I added a statement to the RECIPE-API-CHANGELOG about that. > > Changes since v2: > > - only provide DEB_BUILD_PROFILES variable (no _CROSS variable) > - add "cross" directly to env variable when cross-compiling > - add DEB_BUILD_OPTIONS bitbake variable > (profiles like "nocheck" must also add "nocheck" to DEB_BUILD_OPTIONS) > - update API changelog > - use DEB_BUILD_OPTIONS in hello.bb example > > Changes since v1: > > - fix erronous code removal reported by Vijai > - only use value of DEB_BUILD_PROFILES_CROSS when cross-compiling (no combination of values) > - improve API changelog docs > - rebased onto next > - use DEB_BUILD_PROFILES infrastructure in linux-custom.inc > > > Felix Moessbauer (1): > add support for debian build profiles and options > > RECIPE-API-CHANGELOG.md | 8 ++++++++ > meta-isar/recipes-app/hello/hello.bb | 8 ++------ > meta/classes/dpkg-base.bbclass | 19 +++++++++++++++++++ > meta/classes/dpkg.bbclass | 7 ++++++- > .../libubootenv/libubootenv_0.3-3.bb | 5 +---- > meta/recipes-kernel/linux/linux-custom.inc | 13 ++++++++----- > 6 files changed, 44 insertions(+), 16 deletions(-) > Applied to next, thanks.