shit
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user