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前端开发规范文档你需要知道的事 规范目的 为提高团队协作效率, 便于后台人员添加功能及前端后期优化维护, 输出高质量的文档, 特制订此文档. 本规范文档一经确认, 前端开发人员必须按本文档规范进 ...
随机推荐
- Linux下数组遍历
声明一个数组变量 直接赋值: array[]=”Zero” array[]=”One” array[]=”Two” declare声明: declare -a array 小括号空格法: array= ...
- 网络采集软件核心技术剖析系列(6)---将任意博主的全部博文下载到SQLite数据库中并通过Webbrower显示(将之前的内容综合到一起)
一 本系列随笔目录及本节代码下载 自己开发的豆约翰博客备份专家软件工具问世3年多以来,深受广大博客写作和阅读爱好者的喜爱.同时也不乏一些技术爱好者咨询我,这个软件里面各种实用的功能是如何实现的. 该软 ...
- MORMOT数据库连接池
MORMOT数据库连接池 MORMOT封装了一堆的PROPS控件,用于连接各种数据库. MORMOT的封装是武装到了牙齿的,这堆PROPS控件居然数据库连接池也封装好了.这就为我们省了不少事,笔者非常 ...
- vue假全家桶升级方式,形成类似于小程序的路径管理(新增require-css与require-text)
1.路径布局大致就是这样,完全模拟小程序,主要是靠require来做到的 2.首先index.html是这样的(配置js和css没有用requireJs主要是方便而且载入什么组件比较清晰) <! ...
- Hive使用简介
---恢复内容开始--- 指定分隔符 HIVE输出到文件的分隔符 ,列与列之间是'\1'(ASCII码1,在vim里显示为^A),列内部随着层数增加,分隔符依次为'\2','\3','\4'等. 例: ...
- ISP图像调试工程师——3D和2D降噪(熟悉图像预处理和后处理技术)
2D降噪:只在2维空间域上进行降噪处理.基本方法:对一个像素将其与周围像素平均,平均后噪声降低,但缺点是会造成画面模糊,特别是物体边缘部分.因此对这种算法的改进主要是进行边缘检测,边缘部分的像素不用来 ...
- http://www.oschina.net/question/1019034_153316
http://www.oschina.net/question/1019034_153316 http://www.oschina.net/question/97503_212116?sort=tim ...
- java源码阅读LinkedList
1类签名与注释 public class LinkedList<E> extends AbstractSequentialList<E> implements List< ...
- JS 取得当前日期时间(文本形式)
//-------------------------------------- // 取得当前时间,来自网上,作者不详 //------------------------------------- ...
- ZT:有些人,活了一辈子,其实不过是认真过了一天,其余时间都在重复这一天而已
出处:http://news.163.com/17/1011/19/D0G7UEDS0001982T.html 有些人,活了一辈子,其实不过是认真过了一天,其余时间都在重复这一天而已,也有人每天不重样 ...