Lts kernel compile 5.10 intro: Difference between revisions

From embeddedTS Manuals
(Initial creation)
 
(Fix syntax)
Line 2: Line 2:


Download kernel repo on a host Linux workstation:
Download kernel repo on a host Linux workstation:
<source lang=bash>
<syntaxhighlight lang=bash>
git clone -b linux-5.10.y https://github.com/embeddedTS/linux-lts
git clone -b linux-5.10.y https://github.com/embeddedTS/linux-lts


Line 9: Line 9:


cd linux-lts/
cd linux-lts/
</source>
</syntaxhighlight>

Revision as of 12:43, 21 April 2023

These steps assume a host Linux workstation with an appropriate cross compiler. While on most platforms the kernel can be downloaded, built, and installed all on the device, we recommend against this due to the amount of time, memory, and disk space that can be needed for a build.

Download kernel repo on a host Linux workstation:

git clone -b linux-5.10.y https://github.com/embeddedTS/linux-lts

# Alternatively, a shallow clone can instead be performed to save space on disk. This makes the source smaller and faster to clone, but can make development and updating from remote more complex.
# git clone --depth 1 -b linux-5.10.y https://github.com/embeddedTS/linux-lts

cd linux-lts/