New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor defconfigs to have a generic base #457
Comments
Agreed it would be desirable. I've previously looked into it myself and I don't see it as possible without a change to buildroot. Buildroot doesn't support config fragments and it doesn't have a mechanism for the "external" layer (op-build in this case) to add make recipes at defconfig time. Someone would need to propose changes to buildroot to support this and get them accepted upstream. |
I did some googling and found this: Also, from http://free-electrons.com/doc/training/buildroot/buildroot-slides.pdf
It would be nice if buildroot let us put something like this in
but as Patrick said this does not work. We could chose to do this at commit time and have both the fragments and the combined defconfigs checked into the tree. That way developers get the benefit of having easy to maintain configurations, and users don't have to perform any extra steps at build time. |
The work to be done:
|
Sam Bobroff has a buildroot patch that allows defconfigs to be specified as the combination of several partial defconfigs which suits our usecase very well. http://lists.busybox.net/pipermail/buildroot/2016-May/160745.html |
I've put a first-shot at splitting up the platform defconfigs up over here, based on the above patch: sammj@6a334b8 |
Sam has submitted an improved version of his mergeconfig changes as part of this patchset - http://patchwork.ozlabs.org/patch/638448/ |
This didn't end up making it upstream as Buildroot decided that building configs is something that should be done by the user; Buildroot just consumes them. We can still look into making a generic base somehow, but it's going to mean having our own mechanism to build defconfigs. |
We have a defconfig for every machine with a lot of shared content, with any changes across the board needing to be made to each file. This becomes more of a hassle to update as more and more machines get added, it'd be pretty easy to have a generic defconfig for every OpenPOWER machine type, and just have machine-specific details in each machine defconfig.
That helps people to understand specific nuances about each machine, as well as being more maintainable.
The text was updated successfully, but these errors were encountered: