[PATCH rtems-libbsd] imx: Remove ccm functions alredy defined in RTEMS

Christian MAUDERER christian.mauderer at embedded-brains.de
Thu Sep 2 07:40:13 UTC 2021


Hello Chris,

Am 02.09.21 um 09:33 schrieb Chris Johns:
> On 2/9/21 5:18 pm, Christian MAUDERER wrote:
>> And already a question regarding the new branch: You cleaned up the
>> rtems-bsd-kernel-namespace.h (which is great).
> 
> Thanks. It came as a surprise the script broke on FreeBSD.
> 
>> My patch removes some duplicated functions that are in RTEMS and in libbsd. The
>> ones in RTEMS are definitively the correct ones and the ones in libbsd return
>> wrong values sometimes. With your patch, the functions are now in the namespace
>> header (which is OK).
> 
> OK
> 
>> I tried to regenerate the header using the rtems-kern-symbols. But even with the
>> --regenerate option like described in the CONTRIBUTING.md, the symbols are not
>> removed. I can remove them manually and the rtems-kern-symbols script doesn't
>> change the header if I re-run it. So I'm quite sure that this is an OK solution.
>> But it somehow feels wrong to manually change a generated header. Is there
>> something I used wrong?
> 
> No nothing at all.
> 
>> What I did:
>>
>> - Re-build libbsd and note that the tests don't link any more.
>>
>> - run `./rtems-kern-symbols --regenerate --rtems-tools=<path_to_tools>`
>>    Nothing has been changed.
>>
>> - manually remove the symbols
>>
>> - re-build (now successfully)
>>
>> - run `./rtems-kern-symbols --regenerate --rtems-tools=<path_to_tools>`
>>    Nothing has been changed. Symbols are still removed.
>>
>> - add symbols manually again
>>
>> - run `./rtems-kern-symbols --regenerate --rtems-tools=<path_to_tools>`
>>    Nothing has been changed. Symbols are still there.
>>
>> So I think my core question is: Does the tool clean up old symbols or do I have
>> to do that manually?
> 
> You need to remove the lines manually. I could not find a suitable solution that
> worked effective and efficiently.
> 
> I spent sometime on this and considered a number of options for a while and came
> to no workable solution to handle it automatically. An automatic tool that can
> remove calls needs to build all combinations of arch/bsps multiplied by all the
> possible options for RTEMS and the BSPs multiplied by all libbsd options to know
> a symbol is not needed. That was all way too hard.

OK. Good reason.

> 
> My compromise solution was adding a report option to help you see what is
> happening with the symbols. The intention is to aid managing those symbols you
> are interested in.
> 

After you explained it here I have found the right paragraph in the new 
parts of the CONTRIBUTING.md where you already documented that. I should 
have read the new parts more thoroughly.

Thanks for the explanation. I'll update the patch accordingly and push 
it to 6-freebsd-12 too.

Best regards

Christian

> Chris
> 

-- 
--------------------------------------------
embedded brains GmbH
Herr Christian MAUDERER
Dornierstr. 4
82178 Puchheim
Germany
email: christian.mauderer at embedded-brains.de
phone: +49-89-18 94 741 - 18
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list