kernel config files and subtarget config-default files
Jonas Gorski
jonas.gorski at gmail.com
Tue Jan 23 02:48:02 PST 2024
Hi,
On Mon, 22 Jan 2024 at 21:27, Tim Harvey <tharvey at gateworks.com> wrote:
>
> Greetings,
>
> What is the best known method to add items to config-$KVER when you
> have subtargets with individual config-default files - specifically
> how are the items in this file ordered properly? Maybe the norm is to
> put them alphabetically (even though the kernel doesn't always do
> this) or to put them at the bottom? When using config-default and even
> config-$KVER config fragments they don't compare well to a full linux
> .config file in order to know where they should be placed.
The original intended way is via kernel's menuconfig:
make kernel_menuconfig CONFIG_TARGET=subtarget_target
which will sort them for you and drop any duplicated configs with the
same value as the generic/subtarget config.
this may produce a lot of changes though through if this hasn't been
done for a while.
Likewise to modify the subtarget config you would use CONFIG_TARGET=subtarget
You could also use kernel_oldconfig to refresh the configs after
adding the option manually.
Best Regards,
Jonas
More information about the openwrt-devel
mailing list