entware:mips2
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| entware-ng:mips2 [2015/12/07 14:24] – 创建 Hshh | entware:mips2 [2019/05/23 18:17] (当前版本) – 宣告本文不再更新 Hshh | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ===== Entware-ng mips2 ===== | + | ===== Entware mips2 (细节不再更新) |
| - | 笔记: 创建 [[https:// | + | 笔记: 创建 [[https:// |
| ==== 系统环境准备 ==== | ==== 系统环境准备 ==== | ||
| - | ubuntu | + | ubuntu |
| + | < | ||
| + | gcc g++ make autoconf automake flex gperf bison texinfo libtool libtool-bin libncurses5-dev zlib1g-dev unzip libssl-dev gettext python2.7 subversion | ||
| + | </ | ||
| - | 安装以下软件包 | + | centos 需要安装以下软件包 |
| < | < | ||
| - | gcc g++ make autoconf automake flex gperf bison texinfo libtool | + | git patch bzip2 gcc gcc-c++ libtool ncurses-devel zlib-static openssl-devel |
| - | zlib1g-dev | + | |
| </ | </ | ||
| - | ==== 搭建 entware-ng ==== | + | ==== 搭建 entware ==== |
| < | < | ||
| - | $ git clone https:// | + | $ git clone https:// |
| - | $ cd Entware-ng | + | $ cd Entware |
| - | $ ./ | + | $ make package/symlinks |
| - | $ ./scripts/feeds install -a | + | |
| $ cp ./ | $ cp ./ | ||
| $ make tools/ | $ make tools/ | ||
| 行 33: | 行 34: | ||
| === 设置环境变量 === | === 设置环境变量 === | ||
| < | < | ||
| - | export STAGING_DIR=/ | + | export STAGING_DIR=/ |
| - | export PATH=$PATH:/ | + | export PATH=$PATH:/ |
| </ | </ | ||
| 行 40: | 行 41: | ||
| 手动编译软件时configure需要加入以下参数 | 手动编译软件时configure需要加入以下参数 | ||
| < | < | ||
| - | --target=arm-openwrt-linux \ | + | --target=mipsel-openwrt-linux \ |
| --host=mipsel-openwrt-linux \ | --host=mipsel-openwrt-linux \ | ||
| --build=x86_64-linux-gnu \ | --build=x86_64-linux-gnu \ | ||
| CC=mipsel-openwrt-linux-uclibc-gcc \ | CC=mipsel-openwrt-linux-uclibc-gcc \ | ||
| - | CFLAGS=' | + | CFLAGS=' |
| - | CPPFLAGS=' | + | CPPFLAGS=' |
| - | LDFLAGS=' | + | LDFLAGS=' |
| </ | </ | ||
| 行 52: | 行 53: | ||
| 编译tinc 1.11pre11 | 编译tinc 1.11pre11 | ||
| - | 先编译依赖库, | + | 先编译依赖库, |
| < | < | ||
| make package/ | make package/ | ||
| 行 58: | 行 59: | ||
| make package/ | make package/ | ||
| make package/ | make package/ | ||
| - | make package/ | ||
| </ | </ | ||
| 行 64: | 行 64: | ||
| < | < | ||
| ./configure \ | ./configure \ | ||
| - | --target=arm-openwrt-linux \ | + | --target=mipsel-openwrt-linux \ |
| --host=mipsel-openwrt-linux \ | --host=mipsel-openwrt-linux \ | ||
| --build=x86_64-linux-gnu \ | --build=x86_64-linux-gnu \ | ||
| --prefix=/ | --prefix=/ | ||
| + | --without-openssl \ | ||
| CC=mipsel-openwrt-linux-uclibc-gcc \ | CC=mipsel-openwrt-linux-uclibc-gcc \ | ||
| - | CFLAGS=' | + | CFLAGS=' |
| - | CPPFLAGS=' | + | CPPFLAGS=' |
| - | LDFLAGS=' | + | LDFLAGS=' |
| make | make | ||
| </ | </ | ||
entware/mips2.1449469469.txt.gz · 最后更改: 2015/12/07 14:24 由 Hshh