默认情况下,openwrt编译脚本会自动从Internet上获取所需要的软件包源代码,并把下载的源码包存放在当前目录的 dl/ 目录中;  
在 build_dir/ 目录中存放编译中使用的软件包,  
在 staging_dir/ 目录用于存放构建目标系统镜像的工具软件,包括: 宿主系统使用的工具,存放在 staging_dir/host/ 目录下 
目标系统使用的软件包,存放在 staging_dir/target-mips_r2_uClibc-0.9.30.1/ 目录下 
交叉编译工具链,存放在 staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/ 目录下

[opwrt@localhost openwrt-dreambox]$ ls
bin build_dir default_configs docs feeds.conf.default LICENSE package rules.mk staging_dir tmp tools
BSDmakefile Config.in dl feeds include Makefile README scripts target toolchain
[opwrt@localhost openwrt-dreambox]$ cd staging_dir/
[opwrt@localhost staging_dir]$ ls
host target-mips_r2_uClibc-0.9.30.1 toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1
[opwrt@localhost staging_dir]$ cd toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/
[opwrt@localhost toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1]$ ls
bin info.mk lib sbin stamp usr
[opwrt@localhost toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1]$ cd usr/
[opwrt@localhost usr]$ ls
bin include info lib libexec man mips-openwrt-linux mips-openwrt-linux-uclibc share
[opwrt@localhost usr]$ cd bin/
[opwrt@localhost bin]$ ls
ldd mips-openwrt-linux-gcov mips-openwrt-linux-uclibc-addr2line mips-openwrt-linux-uclibc-gprof
mips-openwrt-linux-addr2line mips-openwrt-linux-gprof mips-openwrt-linux-uclibc-ar mips-openwrt-linux-uclibc-ld
mips-openwrt-linux-ar mips-openwrt-linux-ld mips-openwrt-linux-uclibc-as mips-openwrt-linux-uclibc-nm
mips-openwrt-linux-as mips-openwrt-linux-nm mips-openwrt-linux-uclibc-c++ mips-openwrt-linux-uclibc-objcopy
mips-openwrt-linux-c++ mips-openwrt-linux-objcopy mips-openwrt-linux-uclibc-c++filt mips-openwrt-linux-uclibc-objdump
mips-openwrt-linux-c++filt mips-openwrt-linux-objdump mips-openwrt-linux-uclibc-cpp mips-openwrt-linux-uclibc-ranlib
mips-openwrt-linux-cpp mips-openwrt-linux-ranlib mips-openwrt-linux-uclibc-g++ mips-openwrt-linux-uclibc-readelf
mips-openwrt-linux-g++ mips-openwrt-linux-readelf mips-openwrt-linux-uclibc-gcc mips-openwrt-linux-uclibc-size
mips-openwrt-linux-gcc mips-openwrt-linux-size mips-openwrt-linux-uclibc-gcc-4.3.3 mips-openwrt-linux-uclibc-strings
mips-openwrt-linux-gcc-4.3.3 mips-openwrt-linux-strings mips-openwrt-linux-uclibc-gccbug mips-openwrt-linux-uclibc-strip
mips-openwrt-linux-gccbug mips-openwrt-linux-strip mips-openwrt-linux-uclibc-gcov

[opwrt@localhost capwap-0.93.3]$ vim /home/opwrt/.bash_profile

PATH=$PATH:/home/opwrt/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin

[opwrt@localhost capwap-0.93.3]$ make CC=mips-openwrt-linux-uclibc-gcc

./configure --host=mips-openwrt-linux   --prefix=/tmp

openwrt的交叉编译的更多相关文章

  1. CentOS6 上OpenWRT交叉编译

    目的不是为了编译固件,而是为了一个是编译可执行文件,放倒op的路由器上跑,另一个目的是安装一些开源软件折腾下(例如ss-lib),需要打包成 .ipk 格式 路由设备信息 erya@ERYA:~$ c ...

  2. 开发OpenWrt路由器上LuCI的模块

    [题外话] 学校里最近改造了校园网,要求必须用iNode验证,万幸的是路由器能刷OpenWrt,并且OpenWrt上有好多iNode认证的开源项目,比如njit8021xclient(以下简称njit ...

  3. Openwrt自定义CGI实现

    此文已由作者吴志勐授权网易云社区发布. 欢迎访问网易云社区,了解更多网易技术产品运营经验. 安装uhttpd. 在编译openwrt前,输入make memuconfig,查找Network -> ...

  4. 3Openwrt自定义CGI实现 前后端交互

    https://www.cnblogs.com/163yun/p/9834993.html 安装uhttpd. 在编译openwrt前,输入make memuconfig,查找Network -> ...

  5. OpenWRT交叉编译

    对于当前不在OpenWRT repository中的软件,如果是用源码形式发布的,那么可以用OpenWRT Buildroot进行交叉编译. 首先编译好Buildroot(一般编译过一次固件,就已经编 ...

  6. 交叉编译Node.js到OpenWrt(HG255D)

    操作系统:deepin linux 2013 或 ubuntu 13.04 1.安装交叉编译前.须要安装的包 sudo apt-get install build-essential subversi ...

  7. 交叉编译OpenWrt 定制固件

    在Centos7上交叉编译生成OpenWrt固件 安装ss-* 获取最新的ss, 当前是 wget https://github.com/shadowsocks/shadowsocks-libev/a ...

  8. OpenWRT学习笔记-1@WNDR3800

    很久以前买了一台二手wndr3800 放假了刷成op可以一耍.ar71xx,芯片还比较热门. 首先是刷机,准备使用OP CC 15.05 r46767,官方稳定版.把原装系统降级到1.0.0.16,就 ...

  9. 搭建自己的OpenWrt开发环境

    1.  安装环境Linux系统,如果在CentOS上操作,需安装如下依赖包:yum install binutils bzip2 gawk gcc gcc-c++ gettext makencurse ...

随机推荐

  1. Creating a Unique File Name

    If you are working with files or file attachments in PeopleCode, you will typically want to create a ...

  2. js一些稀奇古怪的写法-带你装逼带你飞

    //定时器的第三个参数 setInterval(function(str1,str2,num){ alert(str1+str2+num) },1000,'参数1','还可以有很多参数,不同的类型.. ...

  3. 微软必应·英雄会第三届在线编程大赛:几个bing?

    发布公司:微软亚太研发集团 有 效 期:2013-12-31至2014-02-01 难 度 等 级: 答 题 时 长:120分钟 编程语言要求:C C++ Java C# 悬赏详情 一等奖 : 价值2 ...

  4. Incorrect column name 'productid '

    #1166 - Incorrect column name 'productid ' 解决方法:字段是复制的吧,复制的里面应该是有空格吧?检查一下,去掉就可以了哟,呵呵.  

  5. ubuntu上搭建vsftpd且通过mysql来管理FTP账号

    参考文章:http://wiki.ubuntu.org.cn/Vsftpd%E5%92%8Cmysql%E9%85%8D%E7%BD%AE 请各位先按照这篇文章一步一步操作,我这里是记录一些其间遇到的 ...

  6. 画画板--第三方开源--DrawableView

    Android上的第三方开源DrawableView支持手写,类似于写字板.DrawableView支持改变画笔颜色,画笔线条粗细,画布的手势缩放和拖曳显示部分区域.并最终支持将手绘的图保存到本地.在 ...

  7. 使用事务操作SQLite数据库

    使用SQLiteDatabase的beginTransaction()方法可以开启一个事务,程序执行到endTransaction() 方法时会检查事务的标志是否为成功,如果程序执行到endTrans ...

  8. python实现 _ 图书馆书籍到期之前_自动邮件提醒

    一共两个脚本: 第一个是[借书完毕以及借书信息有变更(续借等)]的时候需要执行的脚本:实现模拟登陆,同时最新的借书信息的下载到本地文本:之所以没有这样做,是因为如果每次爬取一遍的话,需要每次输入一遍验 ...

  9. Kindeditor小改动

    1.Flash上传时默认的大小为550*400,修改Kindeditor/plugins/flash/flash.js里的 self.plugin.flash内容,根据自己的页面直接设置默认大小,方便 ...

  10. 多路转接之poll和select

    先看poll(): #include <stdio.h> #include <stdlib.h> #include <string.h> #include < ...