简介:
前期通过该平台熟悉openwrt的开发过程,仅记录一些学习笔记。
代码下载:
ssh-keygen生成key后提交marverll,获取代码下载权限。
下载代码部分针对marvell的openwrt平台记录,开源或者每家硬件平台的代码下载方式略有不同
1、修改.ssh/config
Host x.x.x.x
HostName xxxx
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_marvell
User xxx
2、下载代码
$ ./ugit.sh clone
$ cd openwrt
$ ./ugit.sh pull
3、编译
$sudo apt-get install build-essential bison flex zlib1g-dev libncurses5-dev subversion \
quilt intltool ruby fastjar zip unzip gawk git-core
$./scripts/feeds update -a
$./scripts/feeds install -a
$make defconfig_pxa1826
$make -j24 V=s
4、clean
清理bin目录
$make clean
清理编译期间生成的目录
$make dirclean
清理编译期间生成的目录,images除外
$make preclean
清理所有非原始代码的部分,包括down,feed,config等
$make distclean
5、模块编译
$ make package/obm-mmp/clean V=s
$ make package/obm-mmp/compile V=s
$ make package/obm-mmp/install V=s
or
$ make package/obm-mmp/{clean,compile,install} V=s
-----------------------
$ make package/feeds/packages/nginx/{clean, compile, install} V=s
$ make tools/automake/compile
$ make toolchain/{clean, compile, install}
重编kernel:
$ make target/linux/compile
$ make target/linux/install
or
$ make target/linux/{clean, compile, install}
网友评论