Skip to content
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

Add kernel opts linter and enable a bunch of network/crypto options #5

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

AndrewFasano
Copy link

Expand our build scripts to support "linting" a kernel config by doing a make olddefconfig with it then a savedefconfig and replacing the config with the output. This ensures our configs are sorted consistently, only contain valid values, and don't contain unnecessary information.

Then this expands our support for network options based on some of @lacraig2 changes at https://github.com/panda-re/linux/blob/e6a74b04582aa1c6e73bda6c99d66c55f7d7883d/config.mips64eb. I made some judgement calls about which options made sense to take and then ported to other architectures.

Andrew Fasano added 4 commits January 8, 2024 17:17
Run with ./build.sh configonly [target list]
Also add a few more cgroup options and CFS support for bandwidth.
Drop CONFIG_DUMMY from all.

For unused arches:
* armeb: remove debug_ll
* mips64el: disable firmadyne
@AndrewFasano
Copy link
Author

This is a superset of the changes from panda-re/linux#8, though I think there were some typos in that PR since the options look to be CONFIG_NF_... and not CONFIG_IP_NF...

@AndrewFasano
Copy link
Author

Actually I'm not so sure about those being typos, those do look to be real options, but I think they're implied by some of the others so that's why they're not in the resulting (linted/minimized) config.

@AndrewFasano AndrewFasano merged commit 1d1b671 into main Jan 9, 2024
2 checks passed
@AndrewFasano AndrewFasano deleted the netopts branch January 9, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant