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

Update Linux kernel configuration & patches #444

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

Googulator
Copy link
Collaborator

This updates the Linux kernel configuration, removing irrelevant networking-related components, and switching framebuffer drivers to the DRM-based ones. With this, we can finally bootstrap on systems with newer NVIDIA cards, which would green screen with the nvidiafb driver.

KVM is still disabled, see #443 - VIRTUALIZATION is also disabled, as it's useless without KVM or any other suboption being enabled.

Additionally, we can now drop the bad-asm patch, since our newer binutils has no problem supporting that syntax, and it doesn't look quite innocuous to me, removing an offset from a memory access.

The kernel is now built in 2 stages: first, we build vmlinux only, then, after cleaning up any intermediate .o files (except the ones needed to build efistub), we convert it to a bzImage. This required some creative use of the -o option to convince Make not to rebuild all of the .o files we've just deleted as dependencies.

@Googulator Googulator requested review from fosslinux and stikonas and removed request for fosslinux February 18, 2024 16:47
This updates the Linux kernel configuration, removing irrelevant
networking-related components, and switching framebuffer drivers to
the DRM-based ones. With this, we can finally bootstrap on systems
with newer NVIDIA cards, which would green screen with the nvidiafb
driver.

KVM is still disabled, see fosslinux#443 - VIRTUALIZATION is also disabled,
as it's useless without KVM or any other suboption being enabled.

Additionally, we can now drop the bad-asm patch, since our newer
binutils has no problem supporting that syntax, and it doesn't look
quite innocuous to me, removing an offset from a memory access.

The kernel is now built in 2 stages: first, we build vmlinux only,
then, after cleaning up any intermediate .o files (except the ones
needed to build efistub), we convert it to a bzImage. This required
some creative use of the -o option to convince Make not to rebuild
all of the .o files we've just deleted as dependencies.
Copy link
Owner

@fosslinux fosslinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fosslinux fosslinux merged commit d6e49c1 into fosslinux:master Feb 20, 2024
6 checks passed
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.

3 participants