Page 1 of 1

create my userextended menuconfig

Posted: Thu Feb 08, 2018 11:09 pm
by jumjum123
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

Re: create my userextended menuconfig

Posted: Thu Feb 08, 2018 11:33 pm
by WiFive
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.

Re: create my userextended menuconfig

Posted: Thu Feb 08, 2018 11:50 pm
by rudi ;-)
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 ;-)

Re: create my userextended menuconfig

Posted: Fri Feb 09, 2018 10:02 am
by jumjum123
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

Re: create my userextended menuconfig

Posted: Fri Feb 09, 2018 7:44 pm
by WiFive
@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-)

Re: create my userextended menuconfig

Posted: Mon Feb 12, 2018 7:12 am
by jumjum123
@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.