Comments (11)
If you want to generate a .h file for your project, you can always add the required logic to your component.mk file, run commands manually or suggest a PR to the framework to automate this.
You can generate a header file directly like this:
CONFIG_= KCONFIG_CONFIG=out/Esp32/esp32/debug/kconfig.config /usr/bin/python3 -m genconfig
This will create the file config.h
by default. Use --header-path
to change this. See genconfig --help
for other details.
from sming.
See SDK_CUSTOM_CONFIG (https://sming.readthedocs.io/en/latest/_inc/Sming/Arch/Esp32/README.html#envvar-SDK_CUSTOM_CONFIG)
Custom SDK settings for a project can be defined in a separate file and setting this value to the location, relative to the project source root directory.
These will be added to the default SDK settings.
To make the settings current, you must run make sdk-config-clean
. This will discard any changes made via make sdk-menuconfig
.
from sming.
Also see https://sming.readthedocs.io/en/latest/_inc/Sming/Arch/Esp32/Components/esp32/index.html#background
from sming.
from sming.
This should work:
make SDK_CUSTOM_CONFIG=Kconfig.projbuild
make sdk-config-clean
make
Note: You'd typically add SDK_CUSTOM_CONFIG=Kconfig.projbuild
to your project's component.mk
file. Remember to run make config-clean
if it doesn't take.
Assuming a debug
build for esp32
variant the config used can be found in $(SMING_HOME)/Arch/Esp32/Components/esp32/project/esp32/debug/sdkconfig.defaults
. This is a composite of all the sming-defined defaults with your Kconfig.projbuild
settings appended.
The IDF tools creates the sdkconfig
in the same directory. When you run make sdk-menuconfig
it is this file which gets edited. Running make sdk-config-clean
removes both of these files.
from sming.
I tested the modification of a menu in ESP-IDF (peripherals/rmt/ir_protocols) with the Kconfig.projbuild provided. It worked under ESP-IDF idf.py menuconfig
I copied the Kconfig.projbuild from the example in BASIC_BLINK.
I proceeded according to your instructions and the compiler complains that all the lines are malformed.
Here are some lines
/tmp/confgen_tmpnkw6klgx:87: warning: ignoring malformed line 'menu "Example Configuration"'
/tmp/confgen_tmpnkw6klgx:88: warning: ignoring malformed line 'choice EXAMPLE_IR_PROTOCOL'
/tmp/confgen_tmpnkw6klgx:89: warning: ignoring malformed line 'prompt "Infrared Protocol"'
Does it work on your end ?
from sming.
Sorry, I've got the wrong end of the stick. I found the example file you mention in IDF version 4.4. Copy that as Kconfig
to the project root, then run make menuconfig
.
from sming.
Perfect
Thanks again
from sming.
from sming.
These variables are available in makefiles but not in code (no .h
file is generated). If you require values in code then you might add something like this to your component.mk file:
GLOBAL_CFLAGS += \
-DEXAMPLE_IR_PROTOCOL_NEC=$(EXAMPLE_IR_PROTOCOL_NEC) \
-DEXAMPLE_IR_PROTOCOL_RC5=$(EXAMPLE_IR_PROTOCOL_RC5) \
-DEXAMPLE_RMT_RX_CHANNEL=$(EXAMPLE_RMT_RX_CHANNEL) \
-DEXAMPLE_RMT_RX_GPIO=1910$(EXAMPLE_RMT_RX_GPIO) \
-DEXAMPLE_RMT_TX_CHANNEL=$(EXAMPLE_RMT_TX_CHANNEL) \
-DEXAMPLE_RMT_TX_GPIO=18100$(EXAMPLE_RMT_TX_GPIO)
from sming.
from sming.
Related Issues (20)
- HardwareTimer repeating when it shouldn't on Esp8266 HOT 3
- AdafruitGFX `fillscreen()`, `drawFastVLine()`, `drawFastHLine()` working only partially (ESP32) HOT 6
- maximum number of concurrent tcpConnections HOT 2
- On ESP32 GPIO32 GPIO33 can't be used as output HOT 5
- vPortFree 517 line assert fail HOT 22
- Intellisense for esp-idf-5.2-beta1 HOT 2
- HttpUpgrader crashes when tested with Host emulator
- fatal error: mbedtls/mbedtls_config.h: No such file or directory for esp32/esp32c3 in IDF-4.4 HOT 5
- ESP32 IDF 4.3, 4.4 due for deprecation HOT 3
- error: implicit declaration of function 'system_rtc_mem_read' HOT 2
- LwIP seems to not correctly handle packages larger than MTU HOT 29
- `time_t` size is inconsistent
- HostTests stalling on esp8266 `Waiting for timer1 callback test to complete` HOT 4
- esp32c3 redirection of uart serial to usb serial ? HOT 4
- Can't build for SMING_ARCH=Host in Apple M1 Pro HOT 15
- Websocket server has big delay when sending messages HOT 3
- ESP32C3 WiFi problems HOT 8
- #warning "**Y2038** time_t is only 32-bits in this build configuration stops the build for esp32 due to -Werror=cpp HOT 5
- make flash does not upload modified javascript file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sming.