This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge2:development:android:build-android [2022/07/15 23:46] nick |
products:sbc:edge2:development:android:build-android [2024/10/28 06:15] (current) xiong |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| ====== Edge2 Build Android ====== | ====== Edge2 Build Android ====== | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | This document mainly introduces how to compile the Android source code. You will learn how to compile different versions of Android source code. | ||
| + | |||
| + | ===== Preparation ===== | ||
| + | |||
| + | * [[http:// | ||
| + | * [[.download-android-source-code]] | ||
| + | * [[.install-toolchains]] | ||
| + | |||
| + | ===== Building ===== | ||
| + | |||
| + | <WRAP important > | ||
| + | Before you start to build, make sure you have done all the Preperations listed above. | ||
| + | </ | ||
| + | |||
| + | |||
| + | Build ALL: | ||
| + | |||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -UCKAou | ||
| + | ``` | ||
| + | You can also distribute compilations: | ||
| + | |||
| + | |||
| + | Build U-Boot: | ||
| + | |||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -Uu | ||
| + | ``` | ||
| + | |||
| + | Build kernel: | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -CKu | ||
| + | ``` | ||
| + | |||
| + | Build Android: | ||
| + | |||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -Au | ||
| + | ``` | ||
| + | |||
| + | Build OTA: | ||
| + | |||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -ou | ||
| + | ``` | ||
| + | |||
| + | <WRAP info > | ||
| + | | ||
| + | </ | ||
| + | |||
| + | After executing '' | ||
| + | |||
| + | ``` | ||
| + | rockdev/ | ||
| + | ├── boot-debug.img | ||
| + | ├── boot.img | ||
| + | ├── config.cfg | ||
| + | ├── dtbo.img | ||
| + | ├── MiniLoaderAll.bin | ||
| + | ├── misc.img | ||
| + | ├── parameter.txt | ||
| + | ├── pcba_small_misc.img | ||
| + | ├── pcba_whole_misc.img | ||
| + | ├── recovery.img | ||
| + | ├── resource.img | ||
| + | ├── super.img | ||
| + | ├── uboot.img | ||
| + | ├── update.img | ||
| + | └── vbmeta.img | ||
| + | ``` | ||
| + | |||
| + | Packing update.img: | ||
| + | |||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch kedge2-userdebug | ||
| + | $ ./build.sh -u | ||
| + | ``` | ||
| + | |||
| + | <WRAP important > | ||
| + | After compiling, you need to reload '' | ||
| + | </ | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | * [[/ | ||
| + | * [[/ | ||
| + | |||
| + | |||
| + | |||