Topics

Divide zephyr into libraries #west


Nikos Karamolegkos
 

Hello and Happy new year to everyone, I am working in project with target to use zephyr as base of any freestanding application. Specifically, I would like the developer to have the ability to choose the desired sub-modules (e.g from subsys folder), after creating a new application. For example, a developer can create a hello-world application and then to choose that is interested to use bluetooth or net functionalities (think it like inserting new libraries to the projects). Any ideas on how to implement that? I have seen the cmake files in the app directory (e.g hello world) which are really simple. Should I make this process through proj.conf file (and/or the overlay conf files) by setting the appropriate configs? (e.g CONFIG_BT, CONFIG_NET_BUF, etc)?


Nikos Karamolegkos
 

Guys any extra information about this. It will really helps.

Thank you


On 12/1/21 4:23 μ.μ., Nikos Karamolegkos wrote:
Hello and Happy new year to everyone, I am working in project with target to use zephyr as base of any freestanding application. Specifically, I would like the developer to have the ability to choose the desired sub-modules (e.g from subsys folder), after creating a new application. For example, a developer can create a hello-world application and then to choose that is interested to use bluetooth or net functionalities (think it like inserting new libraries to the projects). Any ideas on how to implement that? I have seen the cmake files in the app directory (e.g hello world) which are really simple. Should I make this process through proj.conf file (and/or the overlay conf files) by setting the appropriate configs? (e.g CONFIG_BT, CONFIG_NET_BUF, etc)?
-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Lukasz Iwaszkiewicz
 

Hi

Isn't `ninja menuconfig` what you are looking after? Link :
https://docs.zephyrproject.org/latest/guides/kconfig/menuconfig.html?highlight=menuconfig
.

Regards

On Tue, Jan 19, 2021 at 11:32 AM Nikos Karamolegkos <nkaram@ics.forth.gr> wrote:

Guys any extra information about this. It will really helps.

Thank you


On 12/1/21 4:23 μ.μ., Nikos Karamolegkos wrote:

Hello and Happy new year to everyone, I am working in project with target to use zephyr as base of any freestanding application. Specifically, I would like the developer to have the ability to choose the desired sub-modules (e.g from subsys folder), after creating a new application. For example, a developer can create a hello-world application and then to choose that is interested to use bluetooth or net functionalities (think it like inserting new libraries to the projects). Any ideas on how to implement that? I have seen the cmake files in the app directory (e.g hello world) which are really simple. Should I make this process through proj.conf file (and/or the overlay conf files) by setting the appropriate configs? (e.g CONFIG_BT, CONFIG_NET_BUF, etc)?

--
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)