Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc: expressif: esp32c3: Fix wrong placement of Kconfig #82211

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

nordicjm
Copy link
Collaborator

Fixes a wrong placement of a Kconfig which was put into the wrong file and was bleeding through to every board

@nordicjm nordicjm added Regression Something, which was working, does not anymore Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels Nov 28, 2024
@zephyrbot zephyrbot added the platform: ESP32 Espressif ESP32 label Nov 28, 2024
@nordicjm
Copy link
Collaborator Author

@sylvioalves should this really be a choice that someone can enable or disable in menuconfig, will the existing part numbers have this new firmware applied and stay with the existing part numbers?

@sylvioalves
Copy link
Collaborator

@sylvioalves should this really be a choice that someone can enable or disable in menuconfig, will the existing part numbers have this new firmware applied and stay with the existing part numbers?

Hi,

  1. Currently, only the SOC_ESP32C3_FH4X model is rev 1.1.
  2. I'd rather use the new config SOC_ESP32C3_REV_1_1 to indicate the SOC revision instead of the model itself as there could be new chip models using rev 1.1 rom functions.
  3. SOC_ESP32C3_REV_1_1 could be removed as an enable/disable option in menuconfig, i.e., removing the string after the bool entry. I just don't get why putting this in kconfig.socis wrong? Is that only because it was made optional?

@nordicjm
Copy link
Collaborator Author

Kconfig.soc is for sysbuild, so unless there is a common sysbuild config that is being changed or sysbuild needs to know about this field then it should be in Kconfig which is not used by sysbuild but is used by normal builds

@sylvioalves
Copy link
Collaborator

sylvioalves commented Nov 28, 2024

Kconfig.soc is for sysbuild

This is odd and new for me. If it is for sysbuild only, why do I get SOC_PART_NUMBER value in normal build as such as hello_world without sysbuild?

Look, I am ok with the PR, just trying to understand again the reason for kconfig.soc to be the wrong entry for that.

@nordicjm
Copy link
Collaborator Author

Kconfig.soc is for sysbuild

This is odd and new for me. If it is for sysbuild only, why do I get SOC_PART_NUMBER value in normal build as such as hello_world without sysbuild?

Worded wrongly, it is used in both applications and sysbuild but the options in Kconfig.soc are what sysbuild needs to work, so that's why Kconfig.soc declares the symbols for SoCs but does not select the type of CPU etc. because it doesn't need to know that

@nordicjm
Copy link
Collaborator Author

@sylvioalves
Copy link
Collaborator

@sylvioalves
Copy link
Collaborator

sylvioalves commented Nov 28, 2024

@nordicjm built current main for another board target and I can see where the "bleeding" is:
# CONFIG_SOC_ESP32C3_REV_1_1 is not set
However, it is only there because the kconfig is optional. So making it not optional means that it could stay in kconfig.soc, right?

@nordicjm
Copy link
Collaborator Author

@nordicjm built current main for another board target and I can see where the "bleeding" is: # CONFIG_SOC_ESP32C3_REV_1_1 is not set However, it is only there because the kconfig is optional. So making it not optional means that it could stay in kconfig.soc, right?

The option being in a .config file is not the bleeding, the bleeding is configuring for a board, running menuconfig and seeing an irrelevant Kconfig option

Fixes a wrong placement of a Kconfig which was put into the
wrong file and was bleeding through to every board

Signed-off-by: Jamie McCrae <[email protected]>
@kartben kartben merged commit d7d636d into zephyrproject-rtos:main Nov 30, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: ESP32 Espressif ESP32 Regression Something, which was working, does not anymore Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants