From: Alexander Smirnov <asmirnov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] Include error log of failing task in output
Date: Fri, 2 Mar 2018 18:06:26 +0300 [thread overview]
Message-ID: <28d8adf1-001b-65b1-6961-b399ae11c919@ilbers.de> (raw)
In-Reply-To: <7087f133-f016-2cef-5fa9-034086d8f5f8@siemens.com>
On 03/02/2018 05:42 PM, Jan Kiszka wrote:
> On 2018-03-02 14:57, Alexander Smirnov wrote:
>>
>>
>> On 03/02/2018 04:24 PM, Jan Kiszka wrote:
>>> On 2018-03-02 14:04, Alexander Smirnov wrote:
>>>>
>>>>
>>>> On 03/02/2018 03:46 PM, Jan Kiszka wrote:
>>>>> On 2018-03-02 13:43, Alexander Smirnov wrote:
>>>>>>
>>>>>>
>>>>>> On 02/26/2018 04:41 PM, Jan Kiszka wrote:
>>>>>>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>>>
>>>>>>> Particularly helpful in CI environment, but it also saves many manual
>>>>>>> log dumps.
>>>>>>>
>>>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>>> ---
>>>>>>> meta/conf/isar-bitbake.conf | 2 ++
>>>>>>> 1 file changed, 2 insertions(+)
>>>>>>>
>>>>>>> diff --git a/meta/conf/isar-bitbake.conf
>>>>>>> b/meta/conf/isar-bitbake.conf
>>>>>>> index b49386c..8a1d86b 100644
>>>>>>> --- a/meta/conf/isar-bitbake.conf
>>>>>>> +++ b/meta/conf/isar-bitbake.conf
>>>>>>> @@ -42,6 +42,8 @@ BB_STAMP_POLICY ?= "full"
>>>>>>> BB_NUMBER_THREADS ?= "${@bb.utils.cpu_count()}"
>>>>>>> +BBINCLUDELOGS ??= "yes"
>>>>>>> +
>>>>>>
>>>>>> Is there any specific reason of using the weakest assignment here? The
>>>>>
>>>>> Because all tuneable confs are included after this statement.
>>>>
>>>> In my understanding, tuneable confs should not contain "?" marks in
>>>> assignment, because they specify concrete configuration. :-) That's what
>>>> I see, for example, in local.conf file.
>>>>
>>>>>
>>>>>> whole file contains "?=" only, for me this looks enough here too.
>>>>>
>>>>> That's likely a bug to be fixed separated.
>>>>
>>>> What is your overall policy for assignment in this case?
>>>
>>> Upstream: Look at oe-core's bitbake.conf. It seems to do weak defaults
>>> pretty consistently for stuff that might be set via ?= in other confs.
>>>
>>
>> Yeah I saw it, but who could overwrite BBINCLUDELOGS? For me this option
>> has the same level as BB_NUMBER_THREADS or PARALLEL_MAKE. So IMHO the
>> only local.conf file is the place to overwrite it.
>>
>> I've looked into OE/Yocto bitbake.conf, and I think there is the
>> following logic that in my opinion makes sense:
>>
>> - Global build system settings are mostly defined using "?=", because
>> they should be overwritten in some global file like local.conf only.
>> Tuning this parameter in machine/*.conf is definitely bad idea.
>>
>> - Settings, related to produced results, like DISTRO, MACHINE, LDFLAGS
>> etc. are defined using "??=", because such things could be overloaded
>> from machine/distro config files, from generic recipes etc.
>>
>> So I still propose to use "?=" here.
>
>
> Is there a well defined ordering when multiple ?= follow each other?
> Which one wins, the first or the last?
>
The first one. But user should not use "?=" for such variables like:
BBINCLUDELOGS, BB_NUMBER_THREADS etc. If you overwrite default system
settings, you completely understand what you are doing and hard
assignment should be used.
> Often you have the desire to provide a default in some included config
> in case some other include does not define a final value. We are at the
> top level here, so we should step back from such things and use a weak
> default.
Don't really understand the usecase of cascading exactly BBINCLUDELOGS
several times. This option doesn't affect build content, so the only one
place to overwrite it - is your local.conf. So there are no other
included configs for now, and I believe in future also.
Anyway, I could stay with this.
Alex
next prev parent reply other threads:[~2018-03-02 15:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 13:41 Jan Kiszka
2018-03-02 12:43 ` Alexander Smirnov
2018-03-02 12:46 ` Jan Kiszka
2018-03-02 13:04 ` Alexander Smirnov
2018-03-02 13:24 ` Jan Kiszka
2018-03-02 13:57 ` Alexander Smirnov
2018-03-02 14:42 ` Jan Kiszka
2018-03-02 15:06 ` Alexander Smirnov [this message]
2018-03-02 16:31 ` Alexander Smirnov
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=28d8adf1-001b-65b1-6961-b399ae11c919@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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