Revert "Upgrade to android13-5.15 kernel"
Revert "Add Android.bp for microdroid" Revert "Add Android.bp for microdroid" Revert submission 2103024-microdroid_kernel_5_15 Reason for revert: Broke tests - see http://b/233317671#comment20 Reverted Changes: Id1fe79c84:Upgrade to android13-5.15 kernel Ia521c665d:Add Android.bp for microdroid I570ca3cc4:Add Android.bp for microdroid Change-Id: I41990cb01f13667f4331bea9357cbdfb2058b346
This commit is contained in:
parent
820a8af4d8
commit
dcea34ba82
|
@ -4,9 +4,9 @@ package {
|
|||
|
||||
microdroid_filesystem_images = [
|
||||
"microdroid_super",
|
||||
"microdroid_boot",
|
||||
"microdroid_boot-5.10",
|
||||
"microdroid_init_boot",
|
||||
"microdroid_vendor_boot",
|
||||
"microdroid_vendor_boot-5.10",
|
||||
"microdroid_vbmeta",
|
||||
"microdroid_vbmeta_bootconfig",
|
||||
]
|
||||
|
|
|
@ -363,8 +363,8 @@ def ReplaceBootloaderPubkey(args, key, bootloader, bootloader_pubkey):
|
|||
virt_apex_files = {
|
||||
'bootloader.pubkey': 'etc/microdroid_bootloader.avbpubkey',
|
||||
'bootloader': 'etc/microdroid_bootloader',
|
||||
'boot.img': 'etc/fs/microdroid_boot.img',
|
||||
'vendor_boot.img': 'etc/fs/microdroid_vendor_boot.img',
|
||||
'boot.img': 'etc/fs/microdroid_boot-5.10.img',
|
||||
'vendor_boot.img': 'etc/fs/microdroid_vendor_boot-5.10.img',
|
||||
'init_boot.img': 'etc/fs/microdroid_init_boot.img',
|
||||
'super.img': 'etc/fs/microdroid_super.img',
|
||||
'vbmeta.img': 'etc/fs/microdroid_vbmeta.img',
|
||||
|
|
|
@ -102,7 +102,7 @@ guideline](https://source.android.com/setup/build/building-kernels).
|
|||
|
||||
```shell
|
||||
mkdir android-kernel && cd android-kernel
|
||||
repo init -u https://android.googlesource.com/kernel/manifest -b common-android13-5.15
|
||||
repo init -u https://android.googlesource.com/kernel/manifest -b common-android12-5.10
|
||||
repo sync
|
||||
FAST_BUILD=1 DIST_DIR=out/dist BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh -j80
|
||||
```
|
||||
|
@ -113,7 +113,7 @@ for x86.
|
|||
Then copy the built kernel to the Android source tree.
|
||||
|
||||
```
|
||||
cp out/dist/Image <android_root>/kernel/prebuilts/5.15/arm64/kernel-5.15
|
||||
cp out/dist/Image <android_root>/kernel/prebuilts/5.10/arm64/kernel-5.10
|
||||
```
|
||||
|
||||
Finally rebuild the `com.android.virt` APEX and install it by following the
|
||||
|
|
|
@ -240,17 +240,17 @@ microdroid_boot_cmdline = [
|
|||
]
|
||||
|
||||
bootimg {
|
||||
name: "microdroid_boot",
|
||||
name: "microdroid_boot-5.10",
|
||||
// We don't have kernel for arm and x86. But Soong demands one when it builds for
|
||||
// arm or x86 target. Satisfy that by providing an empty file as the kernel.
|
||||
kernel_prebuilt: "empty_kernel",
|
||||
arch: {
|
||||
arm64: {
|
||||
kernel_prebuilt: ":kernel_prebuilts-5.15-arm64",
|
||||
kernel_prebuilt: ":kernel_prebuilts-5.10-arm64",
|
||||
cmdline: microdroid_boot_cmdline,
|
||||
},
|
||||
x86_64: {
|
||||
kernel_prebuilt: ":kernel_prebuilts-5.15-x86_64",
|
||||
kernel_prebuilt: ":kernel_prebuilts-5.10-x86_64",
|
||||
cmdline: microdroid_boot_cmdline + [
|
||||
// console=none is to work around the x86 specific u-boot behavior which when
|
||||
// console= option is not found in the kernel commandline console=ttyS0 is
|
||||
|
@ -272,7 +272,7 @@ bootimg {
|
|||
|
||||
bootimg {
|
||||
name: "microdroid_init_boot",
|
||||
ramdisk_module: "microdroid_ramdisk",
|
||||
ramdisk_module: "microdroid_ramdisk-5.10",
|
||||
kernel_prebuilt: "empty_kernel",
|
||||
header_version: "4",
|
||||
partition_name: "init_boot",
|
||||
|
@ -281,7 +281,7 @@ bootimg {
|
|||
}
|
||||
|
||||
android_filesystem {
|
||||
name: "microdroid_ramdisk",
|
||||
name: "microdroid_ramdisk-5.10",
|
||||
deps: [
|
||||
"init_first_stage",
|
||||
],
|
||||
|
@ -299,8 +299,8 @@ android_filesystem {
|
|||
}
|
||||
|
||||
bootimg {
|
||||
name: "microdroid_vendor_boot",
|
||||
ramdisk_module: "microdroid_vendor_ramdisk",
|
||||
name: "microdroid_vendor_boot-5.10",
|
||||
ramdisk_module: "microdroid_vendor_ramdisk-5.10",
|
||||
dtb_prebuilt: "dummy_dtb.img",
|
||||
header_version: "4",
|
||||
vendor_boot: true,
|
||||
|
@ -321,17 +321,17 @@ prebuilt_kernel_modules {
|
|||
name: "microdroid_kernel_modules",
|
||||
arch: {
|
||||
arm64: {
|
||||
srcs: [":virt_device_prebuilts_kernel_modules_microdroid-5.15-arm64"],
|
||||
srcs: [":virt_device_prebuilts_kernel_modules_microdroid-5.10-arm64"],
|
||||
},
|
||||
x86_64: {
|
||||
srcs: [":virt_device_prebuilts_kernel_modules_microdroid-5.15-x86_64"],
|
||||
srcs: [":virt_device_prebuilts_kernel_modules_microdroid-5.10-x86_64"],
|
||||
},
|
||||
},
|
||||
kernel_version: "5.15",
|
||||
kernel_version: "5.10",
|
||||
}
|
||||
|
||||
android_filesystem {
|
||||
name: "microdroid_vendor_ramdisk",
|
||||
name: "microdroid_vendor_ramdisk-5.10",
|
||||
deps: [
|
||||
"microdroid_fstab",
|
||||
"microdroid_kernel_modules",
|
||||
|
@ -600,9 +600,9 @@ vbmeta {
|
|||
private_key: ":microdroid_sign_key",
|
||||
partitions: [
|
||||
"microdroid_vendor",
|
||||
"microdroid_vendor_boot",
|
||||
"microdroid_vendor_boot-5.10",
|
||||
"microdroid",
|
||||
"microdroid_boot",
|
||||
"microdroid_boot-5.10",
|
||||
"microdroid_init_boot",
|
||||
],
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"partitions": [
|
||||
{
|
||||
"label": "boot_a",
|
||||
"path": "/apex/com.android.virt/etc/fs/microdroid_boot.img"
|
||||
"path": "/apex/com.android.virt/etc/fs/microdroid_boot-5.10.img"
|
||||
},
|
||||
{
|
||||
"label": "init_boot_a",
|
||||
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
{
|
||||
"label": "vendor_boot_a",
|
||||
"path": "/apex/com.android.virt/etc/fs/microdroid_vendor_boot.img"
|
||||
"path": "/apex/com.android.virt/etc/fs/microdroid_vendor_boot-5.10.img"
|
||||
},
|
||||
{
|
||||
"label": "vbmeta_a",
|
||||
|
|
|
@ -16,7 +16,7 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
kernel_version = "5.15"
|
||||
kernel_version = "5.10"
|
||||
|
||||
kernel_stem = "kernel_prebuilts-" + kernel_version
|
||||
|
||||
|
|
Loading…
Reference in New Issue