用CM回购构建Vanilla AOSP Rom? [英] Building Vanilla AOSP Rom with CM repos?

查看:195
本文介绍了用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")?

谢谢您:)

推荐答案

快速尝试可以更改 $(调用继承产品,供应商/ cm /config/common_full_phone.mk) $(调用Inherit-product,build / target / product / full.mk)

这将使用AOSP默认值 PRODUCT_PACKAGES (例如,诸如UI,SystemUI,Launcher2或与平台相关的东西libpowermanager之类的UI东西),对于工作设备(还有其他功能,例如电话功能)。您还可以使用另一个,只需查看 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.

这就是为什么我会另辟go径:

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天全站免登陆