From: "Nandor Han" <nandor.han@vaisala.com>
To: Alex Kiernan <alex.kiernan@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v2] classes: Add a new bbclass that abstracts the generation of FIT blobs
Date: Fri, 27 Mar 2020 19:54:47 +0200 [thread overview]
Message-ID: <bfec2793-94da-e73e-176e-4ea97a4acb60@vaisala.com> (raw)
In-Reply-To: <CAO5Uq5TjhSR+nu7GcLNs5dZYdRBt5e4PSk6m3dqvXq3ddAKqhg@mail.gmail.com>
On 2020-03-27 19:23, Alex Kiernan wrote:
> On Fri, Mar 27, 2020 at 7:16 AM Nandor Han <nandor.han@vaisala.com> wrote:
>>
>> FIT format is very versatile allowing various combination of booting
>> sequences. In the same time different U-Boot boot stages can use FIT
>> blobs to pack various binaries (e.g. SPL supports reading U-Boot from a
>> FIT blob). Because of the allowed level of customization, the generation
>> of a FIT blob using a fixed image tree source, becomes challenging and
>> increase the level of complexity where different configurations and
>> combinations are needed.
>>
>> This bbclass will know how to generate a FIT blob, leaving the mechanics
>> of the process (dependencies, task order...) to be handled by the users
>> of the bbclass. In the same time will allow to separate the knowledge of
>> the FIT format leaving the user code cleaner and more readable.
>>
>> Signed-off-by: Nandor Han <nandor.han@vaisala.com>
>> ---
<snip>
>> ```
>> 2. Build the kernel: `bitbake virtual/kernel`
>> 3. Verify that `image-fit.itb` is present in the build directory: PASS
>> 4. Disassemble the image using the command: `dtc -I dtb -O dts image-fit.itb`
>> 5. Verify that the FIT source contains the expected configuration: PASS
>>
Hi Alex and thanks for feedback.
>
> Whilst I'm definitely interested in this, building the its file
> through dozens of variables is fragile and ugly...
>
> What I had in a class that I'd started, but hadn't got anything like
> this far was something like a .its.in file which got passed through
> bitbake's expand.
>
For most of the users or better say for a normal user, these variables
will be probbly almost invisible. Like I mention in other answers, my
plan is to refactor `kernel-fitimage` class to use this class. This way
we can very easily customize the FIT source based on the user needs.
I started also by using an `its.in` template, however it turns out very
quickly that is hard to maintain and hard to extend, given the FIT
format possibility and user needs. For example in my situation in some
conditions I wanted to have kernel as loadable image or my conf to
contain or not a signature...
Nandor
next prev parent reply other threads:[~2020-03-27 17:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-26 21:43 [PATCH] Add a new bbclass that abstracts the generation of FIT blobs nandor.han
2020-03-27 7:15 ` [PATCH v2] classes: " Nandor Han
2020-03-27 17:23 ` [OE-core] " Alex Kiernan
2020-03-27 17:54 ` Nandor Han [this message]
2020-03-27 8:29 ` [PATCH v3] " Nandor Han
2020-03-27 15:11 ` [OE-core] " Zach Booth
2020-03-27 17:33 ` Nandor Han
2020-03-27 18:16 ` Denys Dmytriyenko
2020-03-27 18:24 ` Nandor Han
2020-03-30 16:07 ` Denys Dmytriyenko
2020-03-30 16:46 ` Nandor Han
2020-03-27 16:35 ` Richard Purdie
2020-03-27 17:18 ` Nandor Han
2020-05-26 17:57 ` [OE-core][PATCH v4 0/3] " Nandor Han
2020-05-26 17:57 ` [OE-core][PATCH v4 1/3] Add a recipe for `python3-fdt` package Nandor Han
2020-05-26 17:57 ` [OE-core][PATCH v4 2/3] classes: Add a new bbclass that abstracts the generation of FIT blobs Nandor Han
2020-05-26 17:57 ` [OE-core][PATCH v4 3/3] selftest: add a unit-test for fit-image bbclass Nandor Han
2020-05-26 17:57 ` [PATCH v3] classes: Add a new bbclass that abstracts the generation of FIT blobs Nandor Han
2020-05-26 18:02 ` ✗ patchtest: failure for Add a new bbclass that abstracts the generation of FIT blobs (rev6) Patchwork
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=bfec2793-94da-e73e-176e-4ea97a4acb60@vaisala.com \
--to=nandor.han@vaisala.com \
--cc=alex.kiernan@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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