<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/binman/etype/cbfs.py, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/binman/etype/cbfs.py?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/binman/etype/cbfs.py?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2025-07-22T17:30:03Z</updated>
<entry>
<title>binman: Fix typing for python &gt;= 3.7</title>
<updated>2025-07-22T17:30:03Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2025-07-15T06:21:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=187ac12927c042a982961096c9a418287b8e97e2'/>
<id>urn:sha1:187ac12927c042a982961096c9a418287b8e97e2</id>
<content type='text'>
To get the [] annotation working with python 3.7 and 3.8, import
annotations.

Reported-by: Tim Harvey &lt;tharvey@gateworks.com&gt;
Fixes: 21bc3433a43d ("binman: rework dropping absent entries from packaged image")
Reviewed-by: Bryan Brattlof &lt;bb@ti.com&gt;
Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
Tested-by: Tim Harvey &lt;tharvey@gateworks.com&gt;
</content>
</entry>
<entry>
<title>binman: rework dropping absent entries from packaged image</title>
<updated>2025-06-26T15:54:05Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2025-06-13T12:02:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=21bc3433a43d3add3430543c9eee2a95d4dee2f6'/>
<id>urn:sha1:21bc3433a43d3add3430543c9eee2a95d4dee2f6</id>
<content type='text'>
When blobs are absent and are marked as optional, they can be safely
dropped from the binman tree. Use the drop_absent function for that.
Rename drop_absent to drop_absent_optional as we do not want to drop any
entries that are absent; they should be reported by binman as errors
when they are missing.
We also reorder the processing of the image the following:
- We call the CheckForProblems function before the image is built.
- We drop entries after we checked for problems with the image.
This is okay because CheckForProblems does not look at the file we have
written but rather queries the data structure (image) built with binman.
This also allows us to get all error and warning messages that we want
to report while avoiding putting missing optional entries in the final
image.
As only the blobs are dropped, the sections still remain in the
assembled image. Thus add them to the expected test case checks where
necessary.

In addition, a rework of testPackTeeOsOptional test case is necessary.

The test did not really do what it was supposed to. The description said
that optional binary is tested, but the binary is not marked as
optional. Further, the tee.elf file, when included in the image
properly, also shows up in the image data. This must be added as well.

As there is no global variable for the elf data, set the pathname to the
elf file that was created when setting up the test suite.
For the test case get the filename and read the contents, comparing them
to the contents of the created binman image.

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
Reviewed-by: Bryan Brattlof &lt;bb@ti.com&gt;
</content>
</entry>
<entry>
<title>binman: Avoid setting the image_pos attribute directly</title>
<updated>2024-09-26T10:40:30Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2024-08-26T19:11:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8498d550c59090f73ca4cc60c17a87dd2350f47e'/>
<id>urn:sha1:8498d550c59090f73ca4cc60c17a87dd2350f47e</id>
<content type='text'>
Two places set this attribute directly. Update them to use the function
provided.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: Support updating section contents</title>
<updated>2023-03-08T21:15:14Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-03-03T00:02:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7caa372a5e41cadd3903165fb26a4b1e0268edbc'/>
<id>urn:sha1:7caa372a5e41cadd3903165fb26a4b1e0268edbc</id>
<content type='text'>
Implement this feature since it is useful for updating FITs within an
image.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: Forward AddBintools calls to sub entries in cbfs_util</title>
<updated>2022-08-21T00:07:33Z</updated>
<author>
<name>Stefan Herbrechtsmeier</name>
<email>stefan.herbrechtsmeier@weidmueller.com</email>
</author>
<published>2022-08-19T14:25:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9069d55c22f94c0d1ee4e9bb4e43e3e397b1f28f'/>
<id>urn:sha1:9069d55c22f94c0d1ee4e9bb4e43e3e397b1f28f</id>
<content type='text'>
Forward AddBintools calls to sub entries in cbfs_util to collect
bintools of sub entries.

Signed-off-by: Stefan Herbrechtsmeier &lt;stefan.herbrechtsmeier@weidmueller.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: Correct pylint errors</title>
<updated>2022-03-02T15:28:12Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2022-02-11T20:23:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8d2ef3e993276cffc3615508b8c81eb3036a8f2b'/>
<id>urn:sha1:8d2ef3e993276cffc3615508b8c81eb3036a8f2b</id>
<content type='text'>
Fix pylint errors that can be fixed and mask those that seem to be
incorrect.

A complication with binman is that it tries to avoid importing libfdt
(or anything that imports it) unless needed, so that things like help
still work if it is missing.

Note that two tests are duplicated in binman and two others have
duplicate names, so both of these issues are fixed also.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: Allow extracting a file in an alternative format</title>
<updated>2021-12-05T16:22:41Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2021-11-24T04:09:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=943bf78a48ac22ce0277697976fef4f89457b446'/>
<id>urn:sha1:943bf78a48ac22ce0277697976fef4f89457b446</id>
<content type='text'>
In some cases entries encapsulate other data and it is useful to access
the data within. An example is the fdtmap which consists of a 16-byte
header, followed by a devicetree.

Provide an option to specify an alternative format when extracting files.
In the case of fdtmap, this is 'fdt', which produces an FDT file which can
be viewed with fdtdump.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: cfbs: Refactor ObtainContents() for consistency</title>
<updated>2021-12-02T16:16:30Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2021-11-23T18:03:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7413321a47483f1be94dad2e8e3e20c7230ad6e2'/>
<id>urn:sha1:7413321a47483f1be94dad2e8e3e20c7230ad6e2</id>
<content type='text'>
Update this to use the same arguments as entry_Section uses.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: cbfs: Refactor the init process</title>
<updated>2021-12-02T16:16:30Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2021-11-23T18:03:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3fc20fd8055f59137293e487244d8b3d885bbbe5'/>
<id>urn:sha1:3fc20fd8055f59137293e487244d8b3d885bbbe5</id>
<content type='text'>
Update the constructor to work in the recommended way, where the node
properties are read in a separate function. This makes it more similar to
entry_Section.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>binman: Use normal entries in cbfs</title>
<updated>2021-12-02T16:16:30Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2021-11-23T18:03:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=080f859cf180e860ec5f3c8b7940820c5a32b02a'/>
<id>urn:sha1:080f859cf180e860ec5f3c8b7940820c5a32b02a</id>
<content type='text'>
This currently uses _cbfs_entries[] to store entries. Since the entries
are in fact valid etypes, we may as well use the same name as
entry_Section uses, which is _entries. This allows reusing more of the
code there (in a future patch).

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
