Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ mkdir android-kernel && cd android-kernel
$ repo init -u https://android.googlesource.com/kernel/manifest -b common-android-mainline
$ repo sync -j32 -d
  1. Cherry pick patch for enabling Xen configuration

...

  1. Apply patches for Android common kernel

    View file
    name0001-ANDROID-GKI-Support-Arm64-Android-on-Xen-virtual-mac.patch

    View file
    name0002-Configs-disable-UBSAN.patch

Code Block
# Download the two patches:
#  0001-ANDROID-GKI-Support-Arm64-Android-on-Xen-virtual-mac.patch
#  0002-Configs-disable-UBSAN.patch                               
$ cd common
$ git fetch https://android.googlesource.com/kernel/common refs/changes/58/2606758/2 && git cherry-pick FETCH_HEADam 0001-ANDROID-GKI-Support-Arm64-Android-on-Xen-virtual-mac.patch
$ git am 0002-Configs-disable-UBSAN.patch
  1. Build Linux kernel and modules

...

Code Block
$ mkdir aosp_master
$ cd aosp_master
$ repo init -u https://android.googlesource.com/platform/manifest -b master
$ repo sync -j8
  1. Cherry pick patches out Cuttlefish branch for Xen related patches for Cuttlefish devicesupport Xen virtual machine:

Code Block
$ cd device/google/cuttlefish
$ git fetch remote add aosp_xen https://android.googlesourcegitlab.com/deviceLinaro/googleblueprints/cuttlefish refs/changes/89/2629789/1 &&automotive/xen-aosp/cuttlefish.git
$ git cherry-pickfetch FETCHaosp_HEADxen
$ git fetch https://android.googlesource.com/device/google/cuttlefish refs/changes/91/2629791/1 && git cherry-pick FETCH_HEAD
$ git fetch https://android.googlesource.com/device/google/cuttlefish refs/changes/92/2629792/2 && git cherry-pick FETCH_HEADcheckout -b xen_aosp_maintenance_20231108 aosp_xen/xen_aosp_maintenance_20231108 
  1. Enable gatekeeper and keymint services in compatibility matrix

...

Finally, we can get files aosp_cf_arm64_auto-img-eng.leoyXXX.zip and cvd-host_package.tar.gz under the folder out/dist/. The first file is a tar file which includes Android images and the second file is Cuttlefish virtual machine related utilities.

...