从源代码构建 lineageos 的方法过去非常简单,但在将其构建到设备 hero2lte(三星 Galaxy S7 Edge)时我没有成功。
要重现该问题,只需按照官方文档的构建步骤进行操作,唯一的区别是我正在尝试构建 lineage-15.1 分支。
repo init -u https://github.com/LineageOS/android.git -b lineage-15.1
我还尝试在以下位置手动添加设备、内核和供应商树的存储库local_manifests.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="vendor"
fetch="https://github.com"
revision="lineage-15.1" />
<remote name="device"
fetch="https://github.com"
revision="lineage-15.1"/>
<remote name="kernel"
fetch="https://github.com"
revision="lineage-15.1"/>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="vendor"/>
<project name="LineageOS/android_device_samsung_hero2lte" path="device/samsung/hero2lte" remote="device" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_kernel_samsung_universal8890" path="kernel/samsung/universal8890" remote="kernel" />
</manifest>
但是当我运行时,我尝试的每一种方法都会出错breakfast hero2lte
:
包括 vendor/lineage/vendorsetup.sh
build/core/product_config.mk:243: *
_nic.PRODUCTS.[[device/samsung/hero2lte/lineage.mk]]: "device/samsung/hero-common/hero-common. mk”不存在。停止。
未找到设备 hero2lte。尝试
从 LineageOS Github ( http://github.com/LineageOS ) 检索设备存储库。找到的存储库:
android_device_samsung_hero2lte 默认版本:lineage-15.1
检查分支信息 检查是否
从 android_device_samsung_hero2lte获取 device/samsung/hero2lte
LineageOS/android_device_samsung_hero2lte 已经提取到
device/samsung/hero2lte 同步存储库以检索项目。
远程:枚举对象:13,完成。远程:计数
对象:100% (13/13),完成。远程:压缩对象:100%
(11/11),完成。远程:总共 17(增量 4),重用 7(增量 1),
打包重用 4 来自 git://github.com/LineageOS/android
f56ece1..800af59 lineage-16.0 -> origin/lineage-16.0
43f3fd0..152210f lineage-17.0 -> origin/lineage-17.0 致命: /home/fabio/android/lineage15.1/.repo/manifest.xml 存储库
中的重复路径 device/samsung/hero2lte
已同步!
在 device/samsung/hero2lte 中寻找
依赖关系 在 device/samsung/hero-common device/samsung/hero-common 中寻找依赖关系
没有额外的依赖。完成 build/core/product_config.mk:243:
* _nic.PRODUCTS.[[device/samsung/hero2lte/lineage.mk]]: "device/samsung/hero-common/hero-common.mk" 不存在。停止。
build/core/product_config.mk:243: ***
_nic.PRODUCTS.[[device/samsung/hero2lte/lineage.mk]]: "device/samsung/hero-common/hero-common.mk" 不存在。停止。
** 没有产品规格:'lineage_hero2lte'
** 你有正确的回购清单吗?
编辑 在我的示例中,我正在构建,lineage-15.1
但我也接受lineage-16.0
或接受答案lineage-17.1
。提前致谢。