我正在使用三星Galaxy Ace 4 Neo SM-G316ML的非官方LOS 14.1端口。我目前在GitLab中有LOS和内核源代码,不是GitHub 。
我已使用以下内容创建了local_manifest.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gitlab"
fetch="https://gitlab.com/"
revision="cm-14.1" />
<project name="Megver83/android_device_samsung_vivalto3mve3gltn" path="device/samsung/vivalto3mve3gltn" remote="gitlab" />
<project name="Megver83/android_kernel_samsung_vivalto3mve3gltn" path="kernel/samsung/vivalto3mve3gltn" remote="gitlab" />
</manifest>
哪个效果很好(repo sync
同步很好)。然后(当然在做. build/envsetup.sh
之后)我添加了luch组合:
$ add_lunch_combo lineage_vivalto3mve3gltn-userdebug
但是这里有丑陋的部分:
$ lunch lineage_vivalto3mve3gltn-userdebug
build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:680: *** bailing.... Stop.
Device vivalto3mve3gltn not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for vivalto3mve3gltn not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:680: *** bailing.... Stop.
build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:680: *** bailing.... Stop.
** Don't have a product spec for: 'lineage_vivalto3mve3gltn'
** Do you have the right repo manifest?
我不明白,因为根据我读到的here,此函数用于编译非官方版本,但错误消息显示找不到设备LineageOS&#39; s Github
那么,编译非官方LOS版本的正确方法是什么? 提前致谢
答案 0 :(得分:0)
最后,我得到了答案in this XDA thread
转到build / core和gedit config.mk。 然后在每行添加#,如下所示
仅针对以下几行:
# ################################################## #############
# Set up final options.
# ################################################## #############
#ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS), )
#$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
#$(info *** Device configurations are no longer allowed to change the global flags.)
#$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
#$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
#$(error bailing...)
#endif
问题解决了。现在我可以毫无问题地lunch
/ breakfast
。