一.device 来源 :https://github.com/angelsl/cm-android_device_lenovo_stuttgart.git
vendor 来源:https://github.com/angelsl/cm-android_vendor_lenovo_stuttgart.git
kernel 来源:https://github.com/icebluechao/K860i_kernel.git
二.适配错误处理
1.第一处错误:TARGET_ARCH not defined by board config
具体如下:build/core/config.mk:160: * TARGET_ARCH not defined by board config: device/lenovo/stuttgart/BoardConfig.mk. Stop.
解决方法:在BoardConfig.mk添加 TARGET_ARCH := arm 问题解决
因为4.2要求在BoardConfig定义 可以参见这里:#17
2.第二处错误:build/core/tasks/kernel.mk:85: * Kernel source found, but no configuration was define
解决方法:BoardConfig.mk 添加TARGET_KERNEL_SOURCE := kernel/lenovo/stuttgart
TARGET_KERNEL_CONFIG :=Mokee_stuttgart_defconfig
3.第三处错误:hardware/samsung/exynos4x12.mk:18: /Android.mk: 没有那个文件或目录
解决方法:TARGET_HAL_PATH := hardware/samsung/exynos4/hal
4.第四处错误:vendor/lenovo/stuttgart/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libhwconverter already defined by hardware/samsung/exynos4/hal/libhwconverter。 停止。
解决方法:注释掉vendor/lenovo/stuttgart/proprietary/Android.mk 中对应的定义
5. 第五处错误:Can’t find default configuration “arch/arm/configs/Mokee_stuttgart_defconfig”!
解决办法:更改TARGET_KERNEL_CONFIG :=Mokee_stuttgart_defconfig为 TARGET_KERNEL_CONFIG:=smdk4412_android_defconfig
6. 第六处错误:acp: missing destination file
解决方法:在kernle/lenovo下重命名stuttgart为stuttgart.bak
7.第七处错误:
make[/home/qingliu/defy/out/target/product/stuttgart/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/AudioPolicyManagerBase.o] 错误 1
解决方法:去hardware 注释掉2733行上面的FM定义
8.第八处错误:
hardware/samsung/exynos/multimedia/utils/csc/exynos4/csc_fimc.cpp:33:25: fatal error: SEC_OMX_Def.h: No such file or directory
compilation terminated.
make: * [/home/qingliu/defy/out/target/product/stuttgart/obj/STATIC_LIBRARIES/libseccscapi_intermediates/csc_fimc.o] 错误 1
解决方法: