-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
ELCE: DT, Kconfig, EDTS path forward #10821
Comments
Here are the defines we need to remove
|
I believe that this is what will require the most work and break compatibility the hardest:
the rest looks fairly straightforward. I would like to discuss our strategies for getting these Kconfig symbols out of DT. For instance CONFIG_BOOTLOADER_MCUBOOT. I agree with the assessment of @mbolivar , who has worked on the MCUboot integration, that taking the MCUBoot partitions out of the scope of DT is the best approach here[0]. I am aware that communicating flash partitioning layout information between the bootloader and the kernel is one of the responsibilities of DT. But I believe that although this has worked well for other DT users, it does not work well for us. [0] #9925 (comment) Can we agree on this, or are there any viable alternatives? |
About that point: you mentioned a reason why COMPAT flags should remain CONFIG_DT_XXX since having them in DT_ namespace would not work (possible but would not enable the expected usage). Can you state here the reason again? |
@erwango I edited this now There are 2 things here: one is that we generate compatible defines or flags, which are not used right now at all. Those can live in the |
EDITED: ok so kept in #11180 then |
The rationale for encoding compatible identifier in the alias prefix was in support of a feature (Kconfig-based identification of compatible drivers) that has not yet been designed/implemented. Since it's causing trouble now, add a more generic alias. Leave the compat-annotated one in place with the expectation of removing it before 1.14. See: zephyrproject-rtos#10821 (comment) See: zephyrproject-rtos#11180 (comment) See: zephyrproject-rtos#11180 (comment) See: zephyrproject-rtos#11737 Signed-off-by: Peter A. Bigot <[email protected]>
This is not really relevant anymore, and the missing bits are covered by #8499 |
Meeting at ELCE 2018.10.24
@nashif @galak @erwango @mbolivar @carlescufi
Run DT before Kconfig (DONE)
#if CONFIG_
from allboard/
anddts/
files-DSHIELD=
to enable building of a shield (Use -DSHIELD= to enable building of a shield #12102).conf
and.overlay
filesHave DT generate Kconfig fragment enabling the compatibles:
CONFIG_DT_COMPAT_STM32_SPI=y
so that if the user enablesCONFIG_SPI=y
then the right driver is enabled.By default only drivers/subsystems that are enabled in
_defconfig
via device class (CONFIG_SPI=y
for example) are compiled in, others are not compiled.Merge in EDTS
Code generation
Create a
dts-ng
branch where both the EDTS and later maybe code generation can be pushed for collaboration.The text was updated successfully, but these errors were encountered: