Skip to content

Switch to managing the Linux kernel configuration by fragments #250

Description

@fhunleth

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:

  1. Run make linux-menuconfig
  2. Search for the modules we need to enable (and their dependencies)
  3. Write down ourselves which modules we enabled in a fragment file, e.g. "linux-mysystem-fragment.config"
  4. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions