Skip to content

Commit d393ce4

Browse files
Mattijs Korpershoekcshilwant
authored andcommitted
feat(android): kernel: Add a couple of introduction sentences
We have this in our internal BayLibre documentation. Add it here as well so that both pages match. Signed-off-by: Mattijs Korpershoek <[email protected]>
1 parent ae44b71 commit d393ce4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/android/Foundational_Components_Kernel.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Android Kernel
33
##############
44

5+
Android is built around a Linux kernel. By default, Android's
6+
``boot.img`` is build from a binary kernel Image located in:
7+
8+
.. code-block:: text
9+
10+
${YOUR_PATH}/ti-aosp-15/device/ti/am62x-kernel/kernel/6.6
11+
12+
This guide describes how to rebuild and customize a Linux kernel for
13+
Android.
14+
515
.. _android-download-kernel:
616

717
*******************
@@ -30,6 +40,13 @@ Fetch the code using ``repo``:
3040
Build Instructions
3141
******************
3242

43+
In this section, we will assume that we already have an Android source
44+
tree which has been fully build and is located in:
45+
46+
.. code-block:: text
47+
48+
${YOUR_PATH}/ti-aosp-15/
49+
3350
Building everything from scratch
3451
================================
3552

@@ -44,6 +61,8 @@ Building everything from scratch
4461
$ export DIST_DIR=${YOUR_PATH}/ti-aosp-15/device/ti/am62x-kernel/kernel/${TARGET_KERNEL_USE}
4562
$ tools/bazel run //common:ti_dist -- --dist_dir=$DIST_DIR
4663
64+
Re-running this command will rebuild incrementally.
65+
4766
Android uses Kleaf, a Bazel-based build system to build the kernel.
4867
AOSP documentation can be found `here <https://source.android.com/docs/setup/build/building-kernels?hl=fr>`__ and
4968
Kleaf documentation `here <https://android.googlesource.com/kernel/build/+/refs/heads/main/kleaf/README.md>`__
@@ -65,6 +84,8 @@ The usual (``make menuconfig``) is done via ``bazel`` command :
6584
$ cd ${YOUR_PATH}/ti-kernel-aosp/
6685
$ tools/bazel run //common:ti_config -- menuconfig
6786
87+
This will automatically update the :file:`arch/arm64/configs/ti_gki.fragment`.
88+
6889
.. note::
6990

7091
Users must have built the android kernel image prior to building the Android file system.

0 commit comments

Comments
 (0)