[INFO] New Library Generator tool

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

[INFO] New Library Generator tool

Postby Giovanni » Sun Jun 02, 2019 8:23 am

Hi,

Now there is a new project under ./demos/various/RT-ARMCM4-MAKELIB, it compiles RT (and port) into a pre-configured library named libch.a. It can be easily cloned in similar projects for M0, M3 and M7 (and others) if required.

A new make target "make header" generates an unified header named "ch_unified.h" which can be used with the library without having to import all headers and without the risk of configuration de-synchronization, all switches are resolved inside the unified header.

This has be done in order to be able to create binary distributions of the OS. A similar work could be done also for NIL, HAL etc.

It is still work in progress, feel free to give suggestions.

Giovanni

electronic_eel
Posts: 77
Joined: Sat Mar 19, 2016 8:07 pm
Been thanked: 17 times

Re: [INFO] New Library Generator tool

Postby electronic_eel » Sun Jun 02, 2019 9:47 am

Could you elaborate more what the usecase for a binary distribution of the os is?

Why not compile it with your program? The makefile system of ChibiOS works really well, rebuilding the whole os just takes a few seconds on a recent machine.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: [INFO] New Library Generator tool

Postby Giovanni » Sun Jun 02, 2019 11:57 am

For example you may want to include the OS in your application as an immutable library free of dependencies on compiler version and options. Test once use forever. Another use is some kind of commercial licenses.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 12 guests