Order of components in kconfig menu SOLVED

greg-dickson
Posts: 24
Joined: Sun Nov 01, 2020 1:51 am

Order of components in kconfig menu SOLVED

Postby greg-dickson » Fri Jun 02, 2023 7:41 pm

I am curious as I add my components with Kconfig.probuild files the order that they appear in is sort of random. Is there some sort of logic to the order in which they appear in the menuconfig menu.

Thanks.

Gregory

Ok in answer to my own question I finally found the answer.
They are sorted according to the components directory name.
Change the name and you change the order. The contents etc stay the same and will be lined the same way.

example:

i2c_core renamed to i2c
pca9685 renamed to i2c_pca9685
ds3231 renamed to i2c_ds3231


these will then be ordered in the menu and sdkconfig as
i2c ->i2c_core
i2c_ds3231 -> ds3231
i2c_pca9685 -> pca9685

instead of
ds3231
i2c_core
pca9685

The name of the folder doesn't affect the access or naming of the component just the order it is included in kconfig

I actually use symlinks for each project so I just change the names of the symlink in the components folder of the project not the original folder

Who is online

Users browsing this forum: No registered users and 133 guests