openWRT自学---对官方的开发指导文档的解读和理解 记录3:一些常用方法
1.约定
configuration files follow the convention: <name>.conf
init files follow the convention: <name>.init
patches are numerically prefixed and named related to what they do
2.TroublesShooting
A.If you find your package doesn’t show up in menuconfig, try the following command to see if you get the correct description: TOPDIR=$PWD make -C package/<name> DUMP=1 V=99 --- 此命令敲入后,会针对输入的package,打印出相关信息,并进行编译
比如:TOPDIR=$PWD make -C package/dropbear DUMP=1 V=99,则打印出:
Package: dropbear
Version: 0.52-4
Depends:
Provides:
Section: net
Category: Base system
Title: Small SSH2 client/server
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
Source: dropbear-0.52.tar.gz
Type: ipkg
Description: A small SSH2 server/client designed for small memory environments.
http://matt.ucc.asn.au/dropbear/
@@
Package: dropbearconvert
Version: 0.52-4
Depends:
Provides:
Section: utils
Category: Utilities
Title: Utility for converting SSH keys
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
Source: dropbear-0.52.tar.gz
Type: ipkg
Description: Utility for converting SSH keys
http://matt.ucc.asn.au/dropbear/
@@
make:进入目录'/home/hadoop/openwrt/backfire_10.03/package/dropbear'
make: 没有什么可以做的为 `all'。
make:离开目录“/home/hadoop/openwrt/backfire_10.03/package/dropbear”
B.If you’re just having trouble getting your package to compile, there’s a few shortcuts you can take. Instead of waiting for make to get to your package, you can run one of the following:
make package/<name>/clean V=99 --- 单独将对应的package进行clean
make package/<name>/install V=99 --- 单独将对应的package进行install
make package/<name>/prepare V=99
make package/<name>/compile V=99
make package/<name>/configure V=99
C.Another nice trick is that if the source directory under build_dir/<arch> is newer than the package directory, it won’t clobber it by unpacking the sources again. If you were working on a patch you could simply edit the sources under the build_dir/<arch>/<source> directory and run the install command above, when satisfied, copy the patched sources elsewhere and diff them with the unpatched sources. A warning though - if you go modify anything under package/<name> it will remove the old sources and unpack a fresh copy. --- 另外一个不错的技巧是,如果在build_dir/<arch>中的源目录比package目录更新,它不会再次解压缩源文件(即dl目录下的?)。如果你正在处理一个补丁,你可以简单地编辑build_dir/<arch>/<source>目录下的源,然后执行安装命令:make package/<name>/install。那么就可以这样做:在其他地方复制修补来源,并与未打补丁的来源进行修复合并。警告:如果你去包下修改任何/它的<name>则将删除旧的来源和解压一个新的副本。 --- 翻译的对不?等待后面实际检验
D.wiki介绍如何编译的网址,http://wiki.openwrt.org/doc/howto/build
E.wifi介绍如何patch的网址:http://wiki.openwrt.org/doc/devel/patches
openWRT自学---对官方的开发指导文档的解读和理解 记录3:一些常用方法的更多相关文章
- openWRT自学---对官方的开发指导文档的解读和理解 记录2:如何控制内核模块的编译
openwrt对于kernel module的处理分两类:随内核主线而来的kernel module 和 其他作为独立project的kernel module.而这两种,openwrt将采用相同的模 ...
- openWRT自学---对官方的开发指导文档的解读和理解 记录1:编译一个package
针对的是:http://kamikaze.openwrt.org/docs/openwrt.html#x1-390002 1.If you want, you can also modify the ...
- Enterprise Solution 2.2 开发帮助文档集合
首先是一个PPT文档,从宏观层面展示Enterprise Soltion的几个功能特色. Enterprise Solution解决方案安装与配置 将源代码解决方案和演示程序在电脑中进行配置,作为了解 ...
- Spring MVC 指导文档解读(一)
22.1 指导文档章节 In the Web MVC framework, each DispatcherServlet has its own WebApplicationContext, whic ...
- WEB前端开发规范文档(转)
http://codeguide.bootcss.com/ 编写灵活.稳定.高质量的 HTML 和 CSS 代码的规范上面的文档 再结合下面的规范: 无论是从技术角度还是开发视角,对于web前端开发 ...
- Android APP开发需求文档范本
Android APP开发需求文档范本 软件需求文档格式的标准写法 1.引言 1.1 编写目的 • 阐明开发本软件的目的: 1.2 项目背景 • 标识待开发软件产品的名称.代码: • 列出本项目的任 ...
- 网站开发进阶(三十八)Web前端开发规范文档你需要知道的事
Web前端开发规范文档你需要知道的事 规范目的 为提高团队协作效率, 便于后台人员添加功能及前端后期优化维护, 输出高质量的文档, 特制订此文档. 本规范文档一经确认, 前端开发人员必须按本文档规范进 ...
- FlappyBird开发帮助文档
FlappyBird开发帮助文档 项目需求 完成FlappyBird游戏. 功能说明: 游戏开始后,间歇性的点击鼠标,让小鸟向上飞,不会掉下来,并且要穿过柱子的空隙,不能碰到柱子,碰到就dead了,穿 ...
- Web前端开发规范文档你需要知道的事
Web前端开发规范文档你需要知道的事 规范目的 为提高团队协作效率, 便于后台人员添加功能及前端后期优化维护, 输出高质量的文档, 特制订此文档. 本规范文档一经确认, 前端开发人员必须按本文档规范进 ...
随机推荐
- 【OpenJudge9267】【递推】核电站
核电站 总时间限制: 5000ms 单个测试点时间限制: 1000ms 内存限制: 131072kB [描述] 一个核电站有N个放核物质的坑,坑排列在一条直线上.如果连续M个坑中放入核物质,则会发生爆 ...
- IntelliJ 常用设置
一.智能代码提示忽略大小写 打开设置(CTRL+ALT+S)搜索editor,找到“Code Completion”->点击Case sensitive completion后面的选择框,选中N ...
- Java杂谈4——Java中的字符串存储
Java中的String Java.Lang.String是Java语言自带的字符串实现,它并不是java的基本类型,但却和几乎每个java程序都密切相关的一个基础java类. string类内部实际 ...
- Spring中@Value用法收集
一.配置方式 @Value需要参数,这里参数可以是两种形式: @Value("#{configProperties['t1.msgname']}") 或者 @Value(" ...
- 【MyEcplise】导入项目报错:Errors running builder 'JavaScript Validator' on project '项目名'. java.lang.ClassCastException
导入项目报错:Errors running builder 'JavaScript Validator' on project '项目名'. java.lang.ClassCastException ...
- cocos2dx -lua 面向对象-转
转自:http://www.himigame.com/lua-game/1282.html 上一篇中,向童鞋们介绍了如何自定义类binding到Lua中供给使用的教程,那么本篇将介绍利用OOP思想在在 ...
- [Android 新特性] 谷歌发布Android Studio开发工具1.0正式版(组图) 2014-12-09 09:35:40
Android Studio是谷歌于13年I/O大会推出的Android开发环境,基于IntelliJ IDEA. 类似 Eclipse ADT,Android Studio 提供了集成的Androi ...
- GyoiThon:基于机器学习的渗透测试工具
简介 GyoiThon是一款基于机器学习的渗透测试工具. GyoiThon根据学习数据识别安装在Web服务器上的软件(操作系统,中间件,框架,CMS等).之后,GyoiThon为已识别的软件执行有效的 ...
- TortoiseSVN 使用简介
什么是SVN(subversion)? 有一个简单但不十分精确的比喻:SVN = 版本控制 + 备份服务. 简单的说就是,你可以把SVN看做一个备份服务器,但是更好的是,他可以帮助记住每一次上传的版本 ...
- zclip结合easyui实现复制datagrid每行特定单元格数据的功能
在easyui的datagrid里面,实现复制每行特定单元格的功能,关键是想想如何获取到每个单元格的数据,功能是点击按钮"复制",然后复制object的下载地址,截图如下所示: 进 ...