-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
This discussion was started on Slack.
From @trarbr:
So I just watched this talk (https://www.youtube.com/watch?v=J8zxekwYMDY) on using fragments.
I guess the process for layering our own config on top of the linux.defconfig would be something like:
- Run make linux-menuconfig
- Search for the modules we need to enable (and their dependencies)
- Write down ourselves which modules we enabled in a fragment file, e.g. "linux-mysystem-fragment.config"
- Specify BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="${NERVES_DEFCONFIG_DIR}/linux-mysystem-fragment.config" in nerves_defconfig
Note that the fragment file should only include the changes we explicitly made - any defaults that would automatically be applied to the defconfig on save don't have to be put in the fragment file, as it will happen automatically when Buildroot merges the defconfig with the fragment.
I don't think this would require any changes to how Nerves does things, it's just on us to keep our own fragments updated. I think this would work for us.
As mentioned later, this breaks make linux-update-defconfig. On the other side, it also makes it possible to have comments and be very clear where Linux options come from - are they Nerves related, VintageNet support, etc?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels