Lines Matching full:build
5 How to quickly build a trimmed Linux kernel
8 This guide explains how to swiftly build Linux kernels that are ideal for
24 you then use to configure, build and install your own kernel::
30 # Hint: it's recommended to tag your build at this point. See below for details.
32 # Hint: at this point you might want to adjust the build configuration; you'll
40 If you later want to build a newer mainline snapshot, use these commands::
47 # Reminder: you might want to add or modify a build tag at this point.
81 https://docs.kernel.org/admin-guide/quickly-build-trimmed-linux.html
103 * Install all software required to build a Linux kernel. Often you will need:
115 sources and build artifacts 12 Gigabyte in your home directory should
117 section for the step that explains adjusting your kernels build
125 * Retrieve the sources of the Linux version you intend to build; then change
187 better add a unique tag to the one you are about to build::
198 * Create the build configuration for your kernel based on an existing
251 * Build the image and the modules of your kernel::
258 [:ref:`details<build>`]
283 * To later build another kernel you need similar steps, but sometimes slightly
290 In case you want to build a version from a stable/longterm series you have
307 At this point you might want to patch the sources again or set/modify a build
308 tag, as explained earlier. Afterwards adjust the build configuration to the
314 # reminder: you might want to update your build tag at this point
317 Now build your kernel::
420 Install build requirements
423 *Install all software required to build a Linux kernel.*
427 sometimes need a few libraries to build one. How to install everything needed
429 about to build.
458 building kernel tools from the tools/ directory; adjusting the build
488 *Retrieve the sources of the Linux version you intend to build.*
499 Note, to keep things simple the commands used in this guide store the build
555 sources. It actually can be, if you are certain to build just one particular
662 Tagging this kernel build (optional, often wise)
674 creating a 'localversion' file in your build directory from which the kernel
675 build scripts will automatically pick up the tag. You can later change that file
683 Define the build configuration for your kernel
686 *Create the build configuration for your kernel based on an existing
698 * These targets will reuse a kernel build configuration in your build directory
718 localmodconfig will set any undefined build options to their default value. This
752 But if you plan to build and use self-built kernels regularly, you might want to
763 If you want to use localmodconfig to build a kernel for another machine, run
764 ``lsmod > lsmod_foo-machine`` on it and transfer that file to your build host.
765 Now point the build scripts to the file like this: ``yes "" | make
768 as well and place it as .config in your build directory.
774 Adjust build configuration
799 quite a bit of space: in late 2022 the build artifacts for a typical x86 kernel
834 The following sections help you to avoid build problems that are known to occur
839 * Remove a stale reference to a certificate file that would cause your build to
871 Build your kernel
874 *Build the image and the modules of your kernel* [:ref:`... <build_sbs>`]
880 Dealing with build errors
883 When a build error occurs, it might be caused by some aspect of your machine's
887 which of the two it is. To perform such a investigation, restart the build
897 After a few seconds the build process should run into the error again. Now try
919 'modules' on x86) to build the image and the modules of your kernel, which later
920 steps of the guide then install. You instead can also directly build everything
936 (e.g. dpkg and rpm) or a package management utility build on top of them (apt,
959 If ``installkernel`` is found, the kernel's build system will delegate the
976 build system and then install the image and the System.map file manually::
993 *To later build another kernel you need similar, but sometimes slightly
996 The process to build later kernels is similar, but at some points slightly
1000 adjust your build configurations to the needs of the kernel version you are
1001 about to build.
1062 needed [to build a kernel] on mainstream Linux distributions running on
1091 …linux/kernel/git/torvalds/linux.git/plain/Documentation/admin-guide/quickly-build-trimmed-linux.rst
1095 (for example by the kernel's build system) might contain content taken from