How to modify compiling files to support a new camera?
来源:互联网 发布:加入淘宝游戏交易平台 编辑:程序博客网 时间:2024/06/05 19:58
I got a task for adding a new camera on msm8974 platform, so write something for further use.
Add user-space driver, in “device/yulong/common/coolpad.mk”, follow what other sensor do, for example,
libmmcamera_imx214 \
libmmcamera_imx214_R \
libmmcamera_ov13850 \
libmmcamera_ov13850_R \
Add chromatix libraries in “vendor/qcom/proprietary/common/config/device-vendor.mk”, see below,
#CONFIG_OV13850 START
MM_CAMERA += libchromatix_ov13850_common
MM_CAMERA += libchromatix_ov13850_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_common
MM_CAMERA += libchromatix_ov13850_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_foxconn_preview
MM_CAMERA += libchromatix_ov13850_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_hfr_90fps
MM_CAMERA += libchromatix_ov13850_liveshot
MM_CAMERA += libchromatix_ov13850_preview
MM_CAMERA += libchromatix_ov13850_snapshot
MM_CAMERA += libchromatix_ov13850_R_common
MM_CAMERA += libchromatix_ov13850_R_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_common
MM_CAMERA += libchromatix_ov13850_R_foxconn_default_video
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_120fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_60fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_foxconn_preview
MM_CAMERA += libchromatix_ov13850_R_foxconn_snapshot
MM_CAMERA += libchromatix_ov13850_R_hfr_90fps
MM_CAMERA += libchromatix_ov13850_R_liveshot
MM_CAMERA += libchromatix_ov13850_R_preview
MM_CAMERA += libchromatix_ov13850_R_snapshot
#CONFIG_OV13850 END
Add kernel-space driver in “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-$(CONFIG_OV13850_R) +=ov13850_R.o
Modify “kernel/arch/arm/configs/ msm8974_defconfig” for a new configuration.
CONFIG_OV13850_R=y
I want to remove old “.config” for compiling, but it’s strange that it isn’t in kernel folder, I find it in “/out/target/product/xxxxx(not disclose project)/obj/KERNEL_OBJ/.config”, but after remove such file, it doesn’t work. I suppose to clean all the project and start a new compiling process, but the project doesn’t allow me to do, finally, I just simply modify the “kernel/drivers/media/platform/msm/camera_v2/sensor/Makefile”
obj-y += ov13850_R.o
Adding a new camera didn’t take much time if you follow other cameras that already exist in compiling chain.
- How to modify compiling files to support a new camera?
- how to change official rom to support a new language
- how to modify DNS
- How to create a custom directory for app files inside the ~/Library/Application Support directory.
- How to access files in a jar?
- How to Deploy a OAF Files
- How to obtain Microsoft support files from online services
- How to Modify the Virtual Memory in a Mac
- How to modify linux time
- How to modify wifi NV
- How to create a new routine
- How to create a new process
- how to start a new goal
- how to begin with a new project
- How to create a new game
- How to create a new component
- Modify Android Pixelflinger to support ATMEL BGR555
- How to save a picture (take screenshot) from a camera
- 麦子学院美国商务中心成立,探索在线教育新高点www.maiziedu.com
- 自定义绘画歌词,产生滚动效果
- man
- Cocos2d-x 3.2 Lua示例 ActionTest(动作测试)
- 各种数据库大体结构,mysql
- How to modify compiling files to support a new camera?
- 含join,order by,group by的复杂语句优化
- Funny Car Racing(最短路)
- Linux无密码登录配置
- 海岛-船舰海水淡化处理解决方案
- Cognos函数(十六) - children & level & siblings
- ArcGIS API for Silverlight实现地形坡度在线分析
- RedHat升级python
- 【内核研究】Binder服务端设计