create my userextended menuconfig

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

create my userextended menuconfig

Postby jumjum123 » Thu Feb 08, 2018 11:09 pm

I would like to create some additional fields in menuconfig which next are used in source code for #ifdef or #define
Changing an existing Kconfig seems to be easy for me
Now I would like to see the changes after starter make menuconfig
Which steps are missing now ?
Since I'm an absolut dummy around make, would be great, if somebody could guide me with some lines

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: create my userextended menuconfig

Postby WiFive » Thu Feb 08, 2018 11:33 pm

Make espruino buildable as an idf project where the whole espruino repo is a submodule and in the espruino component folder you can have a kconfig file to create your own menu.

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: create my userextended menuconfig

Postby rudi ;-) » Thu Feb 08, 2018 11:50 pm

jumjum123 wrote:I would like to create some additional fields in menuconfig which next are used in source code for #ifdef or #define
Changing an existing Kconfig seems to be easy for me
Now I would like to see the changes after starter make menuconfig
Which steps are missing now ?
Since I'm an absolut dummy around make, would be great, if somebody could guide me with some lines
1. take the blinky example
2. look in to the project menu config file

the gpio is then #defined by the code to the menu config


the VALUE of config BLINK_GPIO in the Kconfig.projbuild File is then later as CONFIG_BLINK_GPIO that you can use in your code.

how menuconfig basicly works, and what you can do further, the best is to read some basic here or there
keywords for google are:
Kconfig language, menuconfig,

or lookup in the esp-idf , it is there too :) ( RTFM )


hope this helps
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Re: create my userextended menuconfig

Postby jumjum123 » Fri Feb 09, 2018 10:02 am

Hello Rudi,
thanks for your feedback.
My actual problem is gone and I don't know why :?
It was not a problem with the language.
My changes did not make it to the screen, at least yesterday late evening.
Usually this is a bug between the ears of the developer :geek:

Anyway, now it works fine, see https://esp32.com/viewtopic.php?f=2&t=4 ... 172#p20172

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: create my userextended menuconfig

Postby WiFive » Fri Feb 09, 2018 7:44 pm

@jumjum123 still really want espruino as component where the output of espruino submodule build is libespruino.a copied to project build folder and Espruino/targets/esp32/main.c is in project's /main. Sounds good, right? 8-)

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Re: create my userextended menuconfig

Postby jumjum123 » Mon Feb 12, 2018 7:12 am

@wifive, Both options, component in ESP-IDF or board in Espruino have their own pros and cons.
For both you have to pay a price, whenever a change happens in one of them.
At the end it depends on yourself, which way to follow.
For me the situation is, that I have a working solution.
Based on knowledge and time, its not on my todo list to follow the ESP-IDF philosophy.

Who is online

Users browsing this forum: No registered users and 95 guests