




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
menuconfig配置功能的代码编写 -基于安霸平台语法一:choice(prompt/default/help)config(bool/help)endchoice1.1使用范例1.1:/*语法一:choiceconfigenchoice*start*/Choice -menuconfig界面直接就是列表显示模式。prompt Preference to Compile/Link ARM/THUMB codedefault PREFER_CORE_ARMhelp -帮助说明信息The ARM core on the Ambarella Processor can executeeither ARM or THUMB instructions. There are variouslibraries that are distributed in either ARM or THUMB versions.Choosing this parameter can change the compiling and linkingbehavior to use either ARM/THUMB versions wherever applicable.config PREFER_CORE_ARM-将来用来宏定义控制程序编译的标志bool ARM-menuconfig菜单显示的 布尔型标志(只能Y or N)config PREFER_CORE_THUMBbool THUMB -由于此处代码未加help信息,所以机器的提示为默认信息endchoice/*语法一:choiceconfigenchoice*end*/1.2使用范例1.1对应的menuconfig界面显示。选择型的选择值 语法二:menu(comment/depend on)config(bool/default/depend on/help)endmenu2.1 使用范例2.1menu Audio modulecomment WARNING: CHANGING FOLLOWING PARAMETERS HAS NO EFFECT! (no source) -菜单也可以由警告信息。depends on !has_audio_srcconfig ENABLE_AUDIObool Enable Audio moduledefault nhelpThis option will enable the audio module to comperss and decompress audio.config ENABLE_TEST_AUDIObool Run the AUDIO infrastructure Test program default ndepends on ENABLE_TESTdepends on ENABLE_AUDIO-因为此菜单项代码是同级别的,所以当开启ENABLE_AUDIO条件,菜单显示是同级的。helpThis test simulates a AUDIO infrastructure running schemeconfig ENABLE_AUDIO_QUALbool Run the AUDIO Signal Qual program default ndepends on ENABLE_TESTdepends on ENABLE_AUDIO-因为此菜单项代码是同级别的,所以当开启ENABLE_AUDIO条件,菜单显示是同级的。helpThis provides a series of AUDIO Signal Qual Programsconfig ENABLE_AUDIO_2bool Enable Audio module V2.省略endmenu2.2使用范例2.1对应的menuconfig界面显示。 三、衍生的语法应用3.1 十六进制型 menu AMBoot memory optionsconfig AMBOOT_BLD_RAM_STARThex AMBoot bootloader starting address -此处非bool型的数据,而是hex(十六进制)default 0xc0000000 -默认的数值helpThe AMBoot bootloader starting address - The bootloader code isthe 2nd-stage code that is loaded by the AMBoot bootstrappercode. Its size is limited to 64KB in size. It contains aninteractive prompt, diagnostics, and utilities for managingthe flash contents as well as loading other (RTOS, ramdisk,etc.) images into the DRAM and uncompressing and executingthem. (Please dont modify this value unless you know whatyou are doing!).省略endmenu3.2 字符串型_1输入字符参数menu AMBoot (boot loader).省略config AMBOOT_DEV_CMDLINEstring Booting parameter (cmdline)default helpEnter the booting parameter command line here. Note: the valueselected under this option will be the default programmedinto flash, but could be later modified interactively at theAMBoot command prompt.省略endmenu3.3 字符串型_2 (字符串依赖型)menu ROMFS Partitiondepends on BUILD_DEVFWconfig CREATE_ROMFS_FWbool Create ROMFS firmware from binariesdefault ndepends on (ENABLE_FLASH & BUILD_DEVFW)helpSelect this option if you want to create ROMFS firmeareusing the ROMFS generator.config ROMFS_CONFIG_FILEstring ROMFS config filedefault depends on (BUILD_DEVFW & CREATE_ROMFS_FW)helpLocation of the ROMFS config file or shellscirpt to generate the specified ROMFS config file.config ROMFSstring ROMFS imagedefault depends on (BUILD_DEVFW & !CREATE_ROMFS_FW)helpLocation of the ROMFS image.config ROMFS_VIFstring ROMFS Version Filedefault depends on BUILD_DEVFWhelpLocation of the version description file that describesthe format of the ROMFS image.endmenu四、choice endchoice 与 menu endmenu的区别4.1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年江西省卫生系统招聘考试(中医学)历年参考题库含答案详解
- 2025年北京银行长沙分行社会招聘考试备考题库及答案解析
- 节能监察理论知识培训课件
- 2025年小微企业创业扶持资金申请政策解读与创业团队知识管理报告
- 良好的公共秩序课件
- 教师招聘之《幼儿教师招聘》模拟题库附参考答案详解【培优】
- 教师招聘之《小学教师招聘》能力提升B卷题库附答案详解(巩固)
- 2025呼伦贝尔海拉尔区建设街道办事处招聘城镇公益性岗位人员笔试备考及答案详解(名师系列)
- 教师招聘之《小学教师招聘》能力检测【典优】附答案详解
- 基于2025年电竞游戏用户社交需求的社区运营模式创新报告
- 2025-2026学年人民版小学劳动技术六年级上册教学计划及进度表
- 新学期三年级班主任工作计划(16篇)
- 接种疫苗预防流感课件
- 游戏体验寻规律(教学设计)-2024-2025学年人教版(2024)小学信息技术五年级全一册
- 基于plc的恒压供水控制系统设计
- 环保设备加工处理方案(3篇)
- 《成人重症监护病房口腔护理专家共识》解读课件
- 2025中小学生法制知识竞赛题库及答案
- 恶性间皮瘤护理查房
- 2025新版劳动合同范本
- 喷锚支护施工技术
评论
0/150
提交评论