I would like to know what is the order followed by kbuild when configuring the kernel and what is the order that it's more convenient to use when writing CONFIG_ options in the .config file .I have read the docs about kbuild but so far no specs on the order of the operations .
Scanning order of the kbuild / kconfig kernel build system?
kernel;linux kernel;configuration;configure
You should strive to not have order dependencies!The system starts at the first line of the top level Kconfig file, and processes each line in turn. When it sees a 'source' line, it suspends reading the current file, processes the specified file. When it gets to the end of a file it resumes where it was in the previous file.