public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Claudius Heine <claudius.heine.ext@siemens.com>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	"Maxim Yu. Osipov" <mosipov@ilbers.de>,
	isar-users@googlegroups.com
Subject: Re: [PATCH 1/2] meta-isar: Separate images per MACHINE
Date: Thu, 14 Mar 2019 13:22:48 +0100	[thread overview]
Message-ID: <03edfec6-0507-830f-0b19-995adcbaa7f1@siemens.com> (raw)
In-Reply-To: <2b47142e-8e89-4d79-dbf0-c2959596fb74@siemens.com>



On 14/03/2019 09.20, [ext] Claudius Heine wrote:
> On 14/03/2019 09.07, [ext] Claudius Heine wrote:
>> Hi Jan,
>>
>> On 14/03/2019 08.28, Jan Kiszka wrote:
>>> On 14.03.19 08:21, [ext] Claudius Heine wrote:
>>>> Hi Maxim,
>>>>
>>>> On 13/03/2019 17.42, Maxim Yu. Osipov wrote:
>>>>> Hi everybody,
>>>>>
>>>>> Any feedback on this patch?
>>>>> This is a "fast track" patch as it fixes problem which delayed the 
>>>>> release.
>>>>>
>>>>> Thanks,
>>>>> Maxim.
>>>>>
>>>>> On 3/12/19 9:27 PM, Maxim Yu. Osipov wrote:
>>>>>> Image directory gets overwritten when running for two targets
>>>>>> with the same pair DISTRO and DISTRO_ARCH, resulting
>>>>>> start_vm script failure.
>>>>>>
>>>>>> Note:
>>>>>> This patch affects the bitbake multiconfig target calling syntax:
>>>>>> PREVIOUS: "multiconfig:$MACHINE-$DISTRO:isar-image-base"
>>>>>> NEW: "multiconfig:$MACHINE-$DISTRO:isar-image-base-$MACHINE"
>>>>>>
>>>>>> Suggested-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>> Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
>>>>>> ---
>>>>>>   meta-isar/conf/conf-notes.txt                    |  6 ++--
>>>>>>   meta-isar/recipes-core/images/isar-image-base.bb |  2 ++
>>>>>>   meta-isar/recipes-core/images/isar-image-ubi.bb  |  2 ++
>>>>>>   scripts/ci_build.sh                              | 40 
>>>>>> ++++++++++++------------
>>>>>>   scripts/start_vm                                 | 16 +++++-----
>>>>>>   5 files changed, 35 insertions(+), 31 deletions(-)
>>>>>>
>>>>>> diff --git a/meta-isar/conf/conf-notes.txt 
>>>>>> b/meta-isar/conf/conf-notes.txt
>>>>>> index 87bd2dc..84049e1 100644
>>>>>> --- a/meta-isar/conf/conf-notes.txt
>>>>>> +++ b/meta-isar/conf/conf-notes.txt
>>>>>> @@ -1,4 +1,4 @@
>>>>>>   Common targets are:
>>>>>> -    multiconfig:qemuarm-stretch:isar-image-base
>>>>>> -    multiconfig:qemuamd64-stretch:isar-image-base
>>>>>> -    multiconfig:rpi-jessie:isar-image-base
>>>>>> +    multiconfig:qemuarm-stretch:isar-image-base-qemuarm
>>>>>> +    multiconfig:qemuamd64-stretch:isar-image-base-qemuamd64
>>>>>> +    multiconfig:rpi-jessie:isar-image-base-rpi
>>>>
>>>> I am not a big fan of having to specify the machine when building a 
>>>> image.
>>>>
>>>> Would it be possible to have virtual recipes?
>>>>
>>>> IMO all isar-image-base-* would provide a isar-image-base.
>>>
>>> That would be useful if it has no unexpected side effects. Can we 
>>> exclude that we end up with multiple providers in some scenario? It 
>>> seems so, but I'm not 100% sure ATM.
>>
>> IIUC want is needed here is that the workdir of the images contain the 
>> machine. We can do that indirectly via modifying the PN or directly 
>> via modifying the WORKDIR.
> 
> I looked at the bitbake.conf. PF would be better to contain the machine, 
> since that will also affect the stamps. Like this:
> 
>    PF .= "-${MACHINE}"

Well isar-image.bbclass does not use PF for the WORKDIR. It has this entry:

     WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}"

while the default in the bitbake.conf is:

     WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PF}"

If images are really version-less, then I would would recommend 
something like this:

     WORKDIR .= "-${MACHINE}"
     PF .= "-${MACHINE}"

This way the stamps should be correctly placed as well as the work dir 
not collide with work dirs of other machines.

Cheers,
Claudius

> 
>>
>> Maxim choose the first option in this patch and that changes how the 
>> target name of that recipe as well. I don't know why he choose to 
>> change the PN, but if that was what is required for other reasons, 
>> then ok. But I am not in favor of changing the target name since that 
>> breaks the UX. My suggestion is just the easiest way to fix the UX.
>>
>> We will end up with multiple providers if someone writes recipes that 
>> provide the same target name, we cannot really do anything about this.
>>
>> IMO this patch should not be merged from one rc to the next, because 
>> it breaks the user interface. Renaming the core targets is a pretty 
>> big change.
>>
>> Cheers,
>> 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

  reply	other threads:[~2019-03-14 12:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12 20:27 Maxim Yu. Osipov
2019-03-12 20:27 ` [PATCH 2/2] doc/user_manual: Update after images per machine separation Maxim Yu. Osipov
2019-03-14  7:14   ` Jan Kiszka
2019-03-14 11:31     ` Baurzhan Ismagulov
2019-03-14 12:08       ` Jan Kiszka
2019-03-13 16:42 ` [PATCH 1/2] meta-isar: Separate images per MACHINE Maxim Yu. Osipov
2019-03-14  7:15   ` Jan Kiszka
2019-03-14  7:21   ` Claudius Heine
2019-03-14  7:28     ` Jan Kiszka
2019-03-14  8:07       ` Claudius Heine
2019-03-14  8:20         ` Claudius Heine
2019-03-14 12:22           ` Claudius Heine [this message]
2019-03-15  9:02     ` Maxim Yu. Osipov
2019-03-15 10:25       ` Claudius Heine
2019-03-15 11:22         ` Maxim Yu. Osipov
2019-03-15 14:28         ` Baurzhan Ismagulov

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=03edfec6-0507-830f-0b19-995adcbaa7f1@siemens.com \
    --to=claudius.heine.ext@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=mosipov@ilbers.de \
    /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