魔趣论坛

 找回密码
 注册账号
通过您的新浪微博帐号登录
QQ登录
查看: 1573|回复: 0

[机油问答] 手机适配求助

[复制链接]
  • TA的每日心情
    慵懒
    2014-2-8 11:18
  • 签到天数: 6 天

    连续签到: 3 天

    [LV.2]偶尔看看I

    升级   78%

    发表于 2014-1-30 15:28:18 | 显示全部楼层 |阅读模式
    本帖最后由 liuhongguang 于 2014-2-8 05:58 编辑

    手机是三星e120s,
    1、先同步了魔趣kk源码                               repo sync
    Syncing work tree: 100% (449/449), done.

    产生目录mokee/hardware
    2、然后克隆了手机依赖的项目
    git clone https://github.com/CyanogenMod/android_device_samsung_msm8660-common.git -b cm-11.0
    下载后的解压目录mokee/device/samsung/msm86600common
    git clone
    https://github.com/CyanogenMod/android_device_samsung_celox-common.git -b cm-11.0
    下载后的解压目录mokee/device/samsung/celox-common
    git clone
    https://github.com/CyanogenMod/android_device_samsung_qcom-common.git -b cm-11.0
    下载后的解压目录mokee/device/samsung/qcom-common
    git clone
    https://github.com/gpillusion/android_device_samsung_e120s.git -b master
    下载后的解压目录mokee/device/samsung/e120s
    git clone https://github.com/gpillusion/illusion_kernel_e120s.git -b master
    下载后的解压目录mokee/kenel/samsung/e120s

    3、之后adb提取了手机vendorl驱动文件(http://pan.baidu.com/s/1jG6xBYA
    提取后的目录mokee/vendor/samsung/e120s


    4、按照适配教程,修改device目录几个文件的名称,并在boadconfig.mk中修改如下
    TARGET_KERNEL_CONFIG        := dali_kor_skt_defconfig
    TARGET_KERNEL_SOURCE        := kernel/samsung/e120s
    TARGET_PREBUILT_KERNEL      := device/samsung/e120s/kernel/zImage



    例如,device/samsung/e120s目录文件结构

    5、
    . build/envsetup.sh
    lunch
    选择添加的机型
    mka bacon
    编译正常开始,进行到apk生成阶段时出现错误

    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:4500:16: error: 'struct ion_allocation_data' has no member named 'heap_mask'
    ......
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp: At global scope:
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:139:17: warning: 'android_audio_legacy::SND_DEVICE_HAC' defined but not used [-Wunused-variable]
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:140:17: warning: 'android_audio_legacy::SND_DEVICE_USB_HEADSET' defined but not used [-Wunused-variable]
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:198:13: warning: 'android_audio_legacy::anc_running' defined but not used [-Wunused-variable]
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:199:13: warning: 'android_audio_legacy::anc_setting' defined but not used [-Wunused-variable]
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:201:13: warning: 'android_audio_legacy::anc_enabled' defined but not used [-Wunused-variable]
    hardware/qcom/audio-caf/legacy/msm8660/AudioHardware.cpp:280:17: warning: 'android_audio_legacy::fmDevice' defined but not used [-Wunused-variable]
    make: *** [/home/liu88711/mokee/out/target/product/e120s/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/AudioHardware.o] 错误 1
    make: *** 正在等待未完成的任务....

    解压后可用Notepad++打开
    打开AudioHardware.cpp删除4500行后,成功生成AudioHardware.o
    继续编译,继续出错
    hardware/qcom/display-caf/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
    hardware/qcom/display-caf/libgralloc/ionalloc.cpp:83:18: error: 'struct ion_allocation_data' has no member named 'heap_mask'
    hardware/qcom/display-caf/libgralloc/ionalloc.cpp:84:46: error: 'ION_FLAG_CACHED' was not declared in this scope
    make: *** [/home/liu88711/mokee/out/target/product/e120s/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] 错误 1
    make: *** 正在等待未完成的任务....



    无法生成ionalloc.o







    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?注册账号  

    x
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册账号  

    本版积分规则

    手机版|魔趣论坛 |

    我们旨在提供一个良好的手机玩家技术交流、资源分享社区,如果有涉及版权的资源,请联系管理员并提供相应的版权证明,我们会进行相应处理。

    GMT+8, 2017-10-22 08:48 , Processed in 0.071543 second(s), 28 queries , Gzip On, Redis On.

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表