构建 openwrt 交叉编译工具链
2015-08-04 15:15
274 查看
1 首先。make menuconfig 的时候选上工具链:
也就是 Package the OpenWrt-based Toolchain
编译完后会在 bin/ramips/ 生成 penWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686.tar.bz2
把这个文件解压到任何一个目录。推荐解压到 /opt/目录下
然后修改 解压后的文件夹里面的文件
OpenWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-wrapper.sh
在
这一行后面添加:
最后一步。把这个
这个目录添加到 path 这个环境变量中。具体百度
也就是 Package the OpenWrt-based Toolchain
Target System (Ralink RT288x/RT3xxx) ---> x x x x Subtarget (RT3x5x/RT5350 based boards) ---> x x x x Target Profile (HAME MPR-A2) ---> x x x x Target Images ---> x x x x Global build settings ---> x x x x [ ] Advanced configuration options (for developers) ---- x x x x [ ] Build the OpenWrt Image Builder x x x x [ ] Build the OpenWrt SDK x x x x [*] Package the OpenWrt-based Toolchain x x x x [ ] Image configuration ---> x x
编译完后会在 bin/ramips/ 生成 penWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686.tar.bz2
把这个文件解压到任何一个目录。推荐解压到 /opt/目录下
然后修改 解压后的文件夹里面的文件
OpenWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-wrapper.sh
在
TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/../.."
这一行后面添加:
export STAGING_DIR="$REALNAME_DIR/../../"
最后一步。把这个
/opt/OpenWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin
这个目录添加到 path 这个环境变量中。具体百度
相关文章推荐
- 工作常用shell集合
- 源码安装LAMP环境
- heartbeat实现Nginx高可用
- 如何更新远程主机上的 Linux 内核
- openstack相关
- Linux tmpfs的使用问题解析
- "Tomcat+Spring+Quartz"解决方案下,关闭Tomcat出现"线程未关闭,出现内存泄漏"错误
- CentOS 6.x 下安装配置 gvim
- 搭建 lamp环境【apache2.4.12 + php5.5.12 + mysql5.6.13】
- OpenGL 矩阵变换(讲的太好了~!)
- OpenGL笔记之矩阵变换(Matrix Transformation)
- Parallel Stop与Break的理解
- -Dmaven.multiModuleProjectDirectory system propery is not set.
- Android4.2 keyguard源码架构,学习(一)!
- CentOS yum源默认安装路径
- shell脚本:批量添加用户,并设置随机字符为密码
- MapReduce过程、Spark和Hadoop以Shuffle为中心的对比分析
- Jetty和Tomcat的选择:按场景而定
- Jetty与tomcat的比较
- Jetty和tomcat的比较