Skip to content

Commit 95f83f3

Browse files
author
Mattijs Korpershoek
committed
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 0d00e1e commit 95f83f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/android/Foundational_Components_Kernel.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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+
${YOUR_PATH}/ti-aosp-15/device/ti/am62x-kernel/kernel/6.6
9+
10+
This guide describes how to rebuild and customize a Linux kernel for
11+
Android.
12+
513
.. _android-download-kernel:
614

715
*******************
@@ -30,6 +38,11 @@ Fetch the code using ``repo``:
3038
Build Instructions
3139
******************
3240

41+
In this section, we will assume that we already have an Android source
42+
tree which has been fully build and is located in::
43+
44+
${YOUR_PATH}/ti-aosp-15/
45+
3346
Building everything from scratch
3447
================================
3548

@@ -44,6 +57,8 @@ Building everything from scratch
4457
$ export DIST_DIR=${YOUR_PATH}/ti-aosp-15/device/ti/am62x-kernel/kernel/${TARGET_KERNEL_USE}
4558
$ tools/bazel run //common:ti_dist -- --dist_dir=$DIST_DIR
4659
60+
Re-running this command will rebuild incrementally.
61+
4762
Android uses Kleaf, a Bazel-based build system to build the kernel.
4863
AOSP documentation can be found `here <https://source.android.com/docs/setup/build/building-kernels?hl=fr>`__ and
4964
Kleaf documentation `here <https://android.googlesource.com/kernel/build/+/refs/heads/main/kleaf/README.md>`__
@@ -65,6 +80,8 @@ The usual (``make menuconfig``) is done via ``bazel`` command :
6580
$ cd ${YOUR_PATH}/ti-kernel-aosp/
6681
$ tools/bazel run //common:ti_config -- menuconfig
6782
83+
This will automatically update the :file:`arch/arm64/configs/ti_gki.fragment`.
84+
6885
.. note::
6986

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

0 commit comments

Comments
 (0)