This commit is contained in:
2026-06-02 21:38:47 +02:00
parent d3c949b8a2
commit f51dab51db
70 changed files with 1632 additions and 21 deletions
+30
View File
@@ -46,3 +46,33 @@ def install(self):
self.build_dir / "arch/x86/boot/bzImage",
self.dest_dir / f"boot/vmlinuz-{self.version}",
)
self.run(
"install",
"-Dm644",
self.build_dir / ".config",
self.dest_dir / f"boot/config-{self.version}",
)
self.run(
"install",
"-Dm644",
self.build_dir / "System.map",
self.dest_dir / f"boot/System.map-{self.version}",
)
# Install loadable modules so udev can autoload DRM/input drivers at boot.
# The kernel's modules_install target runs depmod itself (host kmod).
self.run(
*_make(
self,
f"INSTALL_MOD_PATH={self.dest_dir}",
"INSTALL_MOD_STRIP=1",
"modules_install",
)
)
# Drop the dangling build/source symlinks that point at the (ephemeral)
# build tree; they are useless in the target image.
self.run(
"sh",
"-c",
f"rm -f {self.dest_dir}/lib/modules/*/build "
f"{self.dest_dir}/lib/modules/*/source",
)