[PATCH rtems-libbsd v3 1/4] Implement portable kernel symbol namespace tool

Chris Johns chrisj at rtems.org
Wed Jul 28 06:50:48 UTC 2021


On 28/7/21 4:38 pm, Sebastian Huber wrote:
> On 28/07/2021 04:53, chrisj at rtems.org wrote:
>> +        for sym in self.output['symbols']:
>> +            out += ['#define %s_bsd_%s' % (sym, sym)]
> 
> If you add a tab after the #define, then the output is in line with the FreeBSD
> style and you have a lot less changes in the generated file compared to the
> previous script.

You have lost me on the FreeBSD style so I am moving on.

In regards to diff'ing the file the sort order was something bespoke to Linux's
sort and so all the defines moved about anyway. I check all the symbols present
before are present in the generated file. I also checked the executables from
before and after regeneration matched.

Chris


More information about the devel mailing list