赞
踩
俗话说得好,工欲善其事必先利其器!有一台自己的编译服务器是每个学习AOSP 安卓系统源代码人的梦想,然而需要什么样的配置呢?下面是我当前在用的3个平台的核心配置,可供大家参考。
另外推荐个人专栏文章:
CPU: AMD Ryzen 5 2600X 6核心12线程
内存:金士顿 (Kingston FURY 16GB DDR4 3200) x2条
主板:微星B450M MORTAR迫击炮
显卡:蓝宝石(Sapphire)RX580 2048SP 8G D5 白金版 OC 1306MHz/8000MHz 8GB/256bit
硬盘:1TB 固态硬盘
szhou@bcsrv03:~/workspace/aosp$ source build/envsetup.sh
szhou@bcsrv03:~/workspace/aosp$ lunch aosp_x86_64-eng
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.11.0-37-generic-x86_64-Ubuntu-20.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.210705.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/generic/goldfish device/generic/goldfish-opengl
============================================
szhou@bcsrv03:~/workspace/aosp$ make -j12
> [ 99% 121734/121736] Target super fs image for debug: out/target/product/generic
> 2021-10-02 00:01:49 - build_super_image.py - INFO : Building super image from
> info dict...
> 2021-10-02 00:01:49 - common.py - INFO : Running: "lpmake --metadata-size 6
> 5536 --super-name super --metadata-slots 2 --device super:3229614080 --group emu
> lator_dynamic_partitions:3221225472 --partition system:readonly:1695207424:emula
> tor_dynamic_partitions --image system=out/target/product/generic_x86_64/system.i
> mg --partition vendor:readonly:65351680:emulator_dynamic_partitions --image vend
> or=out/target/product/generic_x86_64/vendor.img --output out/target/product/gene
> ric_x86_64/super.img"
> 2021-10-02 00:01:51 - common.py - INFO : lpmake I 10-02 00:01:49 820545 82054
> 5 builder.cpp:1031] [liblp]Partition system will resize from 0 bytes to 16952074
> 24 bytes
> lpmake I 10-02 00:01:49 820545 820545 builder.cpp:1031] [liblp]Partition vendor
> will resize from 0 bytes to 65351680 bytes
> Invalid sparse file format at header magic
> Invalid sparse file format at header magic
> 2021-10-02 00:01:51 - build_super_image.py - INFO : Done writing image out/ta
> rget/product/generic_x86_64/super.img
> [100% 121736/121736] Create system-qemu.img now
> removing out/target/product/generic_x86_64/system-qemu.img.qcow2
> out/host/linux-x86/bin/sgdisk --clear out/target/product/generic_x86_64/system-q
> emu.img
>
> #### build completed successfully (03:23:40 (hh:mm:ss)) ####
>
> szhou@bcsrv03:~/workspace/aosp$
[ 99% 154474/154478] Target super fs image for debug: out/target/product/emulator_x86_64/super.img
2023-12-24 05:08:00 - build_super_image.py - INFO : Building super image from info dict...
2023-12-24 05:08:00 - common.py - INFO : Running: "/home/szhou/works/aosp/aosp/out/host/linux-x86/bin/lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:8598323200 --group emulator_dynamic_partitions:8589934592 --partition system:readonly:1038884864:emulator_dynamic_partitions --image system=out/target/product/emulator_x86_64/system.img --partition system_dlkm:readonly:348160:emulator_dynamic_partitions --image system_dlkm=out/target/product/emulator_x86_64/system_dlkm.img --partition system_ext:readonly:154165248:emulator_dynamic_partitions --image system_ext=out/target/product/emulator_x86_64/system_ext.img --partition product:readonly:330076160:emulator_dynamic_partitions --image product=out/target/product/emulator_x86_64/product.img --partition vendor:readonly:167936000:emulator_dynamic_partitions --image vendor=out/target/product/emulator_x86_64/vendor.img --output out/target/product/emulator_x86_64/super.img"
2023-12-24 05:08:01 - build_super_image.py - INFO : Done writing image out/target/product/emulator_x86_64/super.img
[100% 154478/154478] Create system-qemu.img now
removing out/target/product/emulator_x86_64/system-qemu.img.qcow2
out/host/linux-x86/bin/sgdisk --clear out/target/product/emulator_x86_64/system-qemu.img
#### build completed successfully (03:13:06 (hh:mm:ss)) ####
szhou@bc-R01:~/works/aosp/aosp$
CPU: AMD 锐龙9 3900X 处理器 (r9)7nm 12核24线程 3.8GHz 105W AM4接口 盒装CPU
3499.00 元
内存:金士顿 (Kingston) FURY 32GB DDR4 3200
929.00 元
SSD:西部数据(Western Digital)1T SSD固态硬盘 M.2接口 (NVMe协议)WD Blue SN550
709.00 元
szhou@bcsrv01:~/aosp$ source build/envsetup.sh
szhou@bcsrv01:~/aosp$ lunch aosp_x86_64-eng
szhou@bcsrv01:~/aosp$ make -j24
> [ 99% 1338/1340] Target super fs image for debug: out/target/product/generic_x86_64/super.img
> 2021-08-20 09:07:19 - build_super_image.py - INFO : Building super image from info dict...
> 2021-08-20 09:07:19 - common.py - INFO : Running: "lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:3229614080 --group emulator_dynamic_partitions:3221225472 --partition system:readonly:16952
> 07424:emulator_dynamic_partitions --image system=out/target/product/generic_x86_64/system.img --partition vendor:readonly:65351680:emulator_dynamic_partitions --image vendor=out/target/product/generic_x86_64/vendor.img --output o
> ut/target/product/generic_x86_64/super.img"
> 2021-08-20 09:07:24 - common.py - INFO : lpmake I 08-20 09:07:20 35360 35360 builder.cpp:1031] [liblp]Partition system will resize from 0 bytes to 1695207424 bytes
> lpmake I 08-20 09:07:20 35360 35360 builder.cpp:1031] [liblp]Partition vendor will resize from 0 bytes to 65351680 bytes
> Invalid sparse file format at header magic
> Invalid sparse file format at header magic
> 2021-08-20 09:07:24 - build_super_image.py - INFO : Done writing image out/target/product/generic_x86_64/super.img
> [100% 1340/1340] Create system-qemu.img now
> removing out/target/product/generic_x86_64/system-qemu.img.qcow2
> out/host/linux-x86/bin/sgdisk --clear out/target/product/generic_x86_64/system-qemu.img
>
> #### build completed successfully (01:21:53 (hh:mm:ss)) ####
>
> szhou@bcsrv01:~/aosp$
此类一般是公司里使用,如自己组建团队,可考虑购买。
CPU: 32核心
内存: 64G
硬盘: RAID机械硬盘
szhou@bcsrv01:~/aosp$ source build/envsetup.sh
szhou@bcsrv01:~/aosp$ lunch aosp_x86_64-eng
szhou@bcsrv01:~/aosp$ make -j32
> 2021-08-19 20:07:37 - build_super_image.py - INFO : Done writing image out/target/product/generic_x86_64/super.img
> [100% 64385/64385] Create system-qemu.img now
> removing out/target/product/generic_x86_64/system-qemu.img.qcow2
> out/host/linux-x86/bin/sgdisk --clear out/target/product/generic_x86_64/system-qemu.img
>
> #### build completed successfully (41:58 (mm:ss)) ####
>
> szhou@Android:~/aosp_works/aosp$
CPU: intel E5 2673v3 (12cores, 24 threads.)
Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
DDR: 32G/DDR3
BORAD: JY x99
--------------------- JD shopping, total: 792 RMB
SATA solid disk:1 TB
void kotlinx.coroutines.scheduling.WorkQueue.offloadAllWork$kotlinx_coroutines_core(kotlinx.coroutines.sched
uling.GlobalQueue)
Type information in locals-table is inconsistent. Cannot constrain type: BOTTOM (empty) for value: v15 by co
nstraint INT.
Info: Some warnings are typically a sign of using an outdated Java toolchain. To fix, recompile the source wit
h an updated toolchain.
[100% 137254/137254] Target vbmeta image: out/target/product/generic_x86_64/vbmeta.img
#### build completed successfully (02:32:43 (hh:mm:ss)) ####
CPU : Intel® Xeon® CPU E5-2686 v4 @ 2.30GHz
内存 : 128GB
编译:sdk_phone_x86_64-userdebug
[ 99% 154474/154478] Target super fs image for debug: out/target/product/emulator_x86_64/super.img
2023-12-20 13:27:46 - build_super_image.py - INFO : Building super image from info dict...
2023-12-20 13:27:46 - common.py - INFO : Running: "/home/szhou/works/aosp/out/host/linux-x86/bin/lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:8598323200 --group emulator_dynamic_partitions:8589934592 --partition system:readonly:1038888960:emulator_dynamic_partitions --image system=out/target/product/emulator_x86_64/system.img --partition system_dlkm:readonly:348160:emulator_dynamic_partitions --image system_dlkm=out/target/product/emulator_x86_64/system_dlkm.img --partition system_ext:readonly:154165248:emulator_dynamic_partitions --image system_ext=out/target/product/emulator_x86_64/system_ext.img --partition product:readonly:330076160:emulator_dynamic_partitions --image product=out/target/product/emulator_x86_64/product.img --partition vendor:readonly:167936000:emulator_dynamic_partitions --image vendor=out/target/product/emulator_x86_64/vendor.img --output out/target/product/emulator_x86_64/super.img"
2023-12-20 13:27:49 - build_super_image.py - INFO : Done writing image out/target/product/emulator_x86_64/super.img
[100% 154478/154478] Create system-qemu.img now
removing out/target/product/emulator_x86_64/system-qemu.img.qcow2
out/host/linux-x86/bin/sgdisk --clear out/target/product/emulator_x86_64/system-qemu.img
#### build completed successfully (01:12:30 (hh:mm:ss)) ####
szhou@oa-R630:~/works/aosp$
工欲善其事,必先利其器~
欢迎留言,私信~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。