Re: [bitbake-devel] [PATCH 2/2] bitbake-setup: write notes for generated build configs
Ernest Van Hoecke <[email protected]> Mon, 1 Jun 2026 14:53:31 +0200
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <3kgay5cukb3dd6ojc7ysbtd5jgglbe7i4shvcksa2wb3kh2zyc@3oegr7dacucw> |
On Mon, Jun 01, 2026 at 09:05:17AM +0200, Antonin Godard wrote: > On Fri May 29, 2026 at 5:00 PM CEST, Ernest Van Hoecke via lists.openembedded.org wrote: > > From: Ernest Van Hoecke <[email protected]> > > > > For bb-layers configurations, bitbake-setup currently writes an empty > > "conf-notes.txt". Configurations using "oe-template" get this file from > > the template. > > > > Add an optional field called "notes" to configurations that populates > > this field when "bb-layers" is used instead of "oe-template". > > Suggestion: call the field "conf-notes" so it matches the resulting filename? > > Also, I supposed newlines must be explicitly written in the string ("\n")? Are > those properly converted, or does it need escaping of some sorts? > > Thanks, > Antonin > Hi Antonin, Yes, I tested with some newlines explicitly written and this worked fine. Since it just comes from a json string and is passed to `f.write()` I don't believe any special escaping is necessary, just "\n" is fine. My understanding is that the Python json library should handle this well and converts it to a real newline in the python string. Thanks, Ernest