使用 CM 存储库构建 Vanilla AOSP Rom? [英] Building Vanilla AOSP Rom with CM repos?

查看:23
本文介绍了使用 CM 存储库构建 Vanilla AOSP Rom?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我是否可以为我的设备构建一个带有 CyanogenMod 存储库的纯 Vanilla 6.0 ROM.他们在这里:

I'd like to know if I can build a pure Vanilla 6.0 ROM with CyanogenMod repos for my device. Here they are:

设备

内核

我应该做一些特定的编辑吗(不包括将我的设备添加到午餐")?

Should I do some particular edits (excluded adding my device to "lunch")?

谢谢:)

推荐答案

快速尝试可以将 $(call inherit-product, vendor/cm/config/common_full_phone.mk) 更改为 $(调用继承产品,build/target/product/full.mk).

A quick try could be changing $(call inherit-product, vendor/cm/config/common_full_phone.mk) to $(call inherit-product, build/target/product/full.mk).

这将使用 AOSP 默认的 PRODUCT_PACKAGES(例如 SystemUI、Launcher2 等 UI 内容或 libpowermanager 等平台相关内容),这些内容对于工作设备(以及其他一些内容,例如电话功能)是必需的.您也可以使用另一个,只需查看 build/target/product 目录.

This will use the AOSP default PRODUCT_PACKAGES (e.g. UI stuff like SystemUI, Launcher2 or platform relevant stuff like libpowermanager) which are mandatory for a working device (and some more, e.g. phone functionality). You can also use another, just look into build/target/product directory.

现在可能发生的是,Cyanogen 对这些 PRODUCT_PACKAGES 进行了一些更改,如果没有之前删除的 vendor/cm/config/common_full_phone.mk.

What can happen now is, that Cyanogen did some changes on these PRODUCT_PACKAGES which work no longer without some stuff on top defined in previously removed vendor/cm/config/common_full_phone.mk.

这就是我个人会走另一条路的原因:

That is why I would personally go another way:

只需使用您设备特定的产品配置(设备存储库)和供应商特定的预构建库(由产品配置中的 setup-makefiles.sh 脚本生成),当然还有内核您选择的 AOSP 堆栈(例如 vanilla 6.0).

Just use your device specific product configuration (the device repo) and the vendor specific prebuilt libraries (generated by the setup-makefiles.sh script in your product configuration) and of course the kernel within the AOSP stack of your choice (e.g. vanilla 6.0).

如果幸运的话,它可以开箱即用,但通常需要一些变通方法才能使预构建的供应商库正常工作.如果是这样,您必须研究设备存储库的提交消息,以获取一些提示,这些人做了什么,移植了设备.

If you are lucky it will work out of the box, but often there are some work arounds needed to make the prebuilt vendor libraries working. If so, your have to study the commit messages of the device repository to get some hints what the guys have done, who ported the device.

无论您选择哪种方式,您可能都需要添加一些配置文件、权限文件和/或标志.如需了解 Cyanogenmod vendor_cm 存储库的定位信息.

Regardless which way you are choosing, you probably need to add some configuration file, permission files and/or flags. For an orientation look into the Cyanogenmod vendor_cm repository.

更改为 vendor/cm/config/*.mk 中的配置以获得几乎普通的 Android 也是一个很好的尝试.

It could also be a good try to change to configuration in vendor/cm/config/*.mk to get a nearly vanilla Android.

我认为对于这样的提议,您需要时间和耐心.我希望我能给你一些好的起点.

I think for such a proposition you need time and patience. I hope I could give you some good starting points.

这篇关于使用 CM 存储库构建 Vanilla AOSP Rom?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆