当前位置:网站首页>RK1126 新添加一个模块
RK1126 新添加一个模块
2022-06-10 18:08:00 【QMCY_jason】
为了便于开发 同时不影响RK原来的代码
新建了一个自己的模块用来调试开发
- 在SDK 的external 目录下新建一个rk_crazy目录(名字随便起)把对应的代码放到这个目录下
- 在 SDK 的 buildroot/package/rockchip 目录下创建 rk_crazy 目录。
- 在 buildroot/package/rockchip/rk_crazy 添加文件 Config.in。
config BR2_PACKAGE_RK_CRAZY bool "rk_crazy: test rk_crazy" select BR2_PACKAGE_RKMEDIA select BR2_PACKAGE_ISP2_IPC
4.在 buildroot/package/rockchip/rk_crazy 添加文件 rk_crazy.mk。
RK_CRAZY_SITE = $(TOPDIR)/../external/rk_crazy RK_CRAZY_SITE_METHOD = local RK_CRAZY_DEPENDENCIES = rkmedia $(eval $(cmake-package))
修改 buildroot/package/rockchip/Config.in,添加:
source "package/rockchip/rk_crazy/Config.in"
在对应的 defconfig 文件( 如 buildroot/configs/rockchip_rv1126_rv1109_defconfig)将此 package 选上:

这里的的defconfig 是 在你source envsetup.sh 是要选的那个config 如下图

比如我这里选4

然后这个config就是 firefly_rv1126_rv1109_defconfig
然后去SDK buildroot/configs目录下 修改对应的config文件 因为我选的是4

所以修改上图选中的这个config文件就可以 这个就是默认值 ,后期可以通过make menuconfig的方式修改
之后 回到SDK 根目录
source envsetup.sh 选择对应的config文件之后
make menuconfig
出来如下界面

按下斜杠 / 会出来搜索界面

搜索刚刚新建的模块 crazy

可以发现默认值已经是y了
然后退出 连续按两下ESC键
然后 去根目录 编译 ./build.sh external/rk_crazy

可以编译了 正常没问题的话
编出来的会被放在 buildroot/output/项目配置目录/build/rk_crazy目录下 如下图

边栏推荐
猜你喜欢

Three ways generated by stream lambda

Data URL

Some summary about YUV format
![[CEPH] CEPH configuration source code analysis | common/config*](/img/d6/ba8d3ccc28d11e7fd9662b730fd998.jpg)
[CEPH] CEPH configuration source code analysis | common/config*

Adobe Premiere基础-工具使用(选择工具,剃刀工具,等常用工具)(三)

5. Golang泛型与反射

Huawei cloud Kunpeng devkit code migration practice

Adobe Premiere基础-不透明度(蒙版)(十一)

数字化转型怎样转?朝哪转?

Adobe Premiere Foundation (the last step of video subtitle adding) (6)
随机推荐
Adobe Premiere基础-导入导出,合并素材,源文件编译,脱机(二)
[kuangbin]专题二十二 区间DP
[kuangbin] topic 22 interval DP
VMware Horizon 8 2111 部署系列(十六)Blast带宽测试
期货网上开户安全吗,具体怎么开户的
Uniapp native JS to convert the Gregorian calendar to the lunar calendar
光储直柔配电系统浅析
SaleSmartly | 再添新渠道Slack,助你拉近客户关系
Adobe Premiere基础(动画制作-弹性动画)(八)
Adobe Premiere基础(视频的最后一步字幕添加)(六)
关于YUV格式的一些总结
[QNX hypervisor 2.2 user manual] 3.2.3 ACPI table and FDT
Db2 SQL PL简介
三部曲解下棋先手后手问题
Salesmartly | add a new channel slack to help you close the customer relationship
阵列信号处理仿真之四——Z变换分析阵列多项式
[kuangbin] topic 12 basic DP1
2021年全球十大模拟IC供应商:德州仪器稳居第一,Skyworks营收增幅最高
Adobe Premiere基础(轨道相关)(五)
In the digital age, why should enterprises make digital transformation?