默认情况下,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. 学习iOS的博客推荐

    1.取精华.去糟粕!适合iOS开发者的15大网站推荐 http://www.csdn.net/article/2015-03-04/2824108-ios-developers-sites

  2. mysql批量修改表引擎

    生成修改的语句 SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables WH ...

  3. mybatis动态sql中的trim标签的使用(转)

    trim标记是一个格式化的标记,可以完成set或者是where标记的功能,如下代码: 1. select * from user <trim prefix="WHERE" p ...

  4. 把Java对象转为xml格式

    主要使用到的Java类有:javax.xml.bind.JAXBContext,javax.xml.bind.Marshaller(编排) 代码主要展示如下: public class Student ...

  5. Laravel 5 基础(九)- 表单

    首先让我们修改路由,能够增加一个文章的发布. Route::get('articles/create', 'ArticlesController@create'); 然后修改控制器 public fu ...

  6. delphi的几个特别关键字 object absolute

    1.object关键字相当于C++中的struct, record定义个结构体只能定义数据,而object可以定义方法,默认都是public的.   代码示例如下: TTest = record na ...

  7. spyder常用快捷键

    Ctrl + 1: 注释/反注释 Ctrl + 4/5: 块注释/块反注释 Ctrl + L: 跳转到行号 Tab/Shift + Tab: 代码缩进/反缩进 Ctrl +I:显示帮助

  8. IOS学习:在工程中添加百度地图SDK

    1.将下载下来的sdk中的inc文件夹.mapapi.bundle.libbaidumapapi.a添加到工程中,其中libbaiduapi.a有两个,一个对应模拟器一个对应真机,导入方法如下: 第一 ...

  9. sublime text 3 设置

    最近开始用sublime text 3,查资料总结了一下常用的设置,记录下以备用,同时也希望能改大家带来方便 0.使用package control安装,点前边超链接,复制左侧代码到console,回 ...

  10. Node.js学习笔记 01 搭建静态服务器

    希望这篇文章能解决你这样一个问题:“我现在已经了解了一些Node.Js基本概念了,怎么搭一台静态服务器呢?” 请参考一下博主的前两篇文章: 完全面向于初学者的Node.js指南 Node.Js的Mod ...