用户工具

站点工具


entware:mips2

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
entware-ng:mips2 [2016/05/03 16:44] – [系统环境准备] add python2.7 subversion Hshhentware:mips2 [2019/05/23 18:17] (当前版本) – 宣告本文不再更新 Hshh
行 1: 行 1:
-===== Entware-ng mips2 =====+===== Entware mips2 (细节不再更新) =====
  
-笔记: 创建 [[https://github.com/Entware-ng/Entware-ng|Entware-ng]] 环境+笔记: 创建 [[https://github.com/Entware/Entware|Entware]] 环境
  
 ==== 系统环境准备 ==== ==== 系统环境准备 ====
-ubuntu 16 +ubuntu 需要安装以下软件包
- +
-安装以下软件包+
 <code> <code>
 gcc g++ make autoconf automake flex gperf bison texinfo libtool libtool-bin libncurses5-dev zlib1g-dev unzip libssl-dev gettext python2.7 subversion gcc g++ make autoconf automake flex gperf bison texinfo libtool libtool-bin libncurses5-dev zlib1g-dev unzip libssl-dev gettext python2.7 subversion
 </code> </code>
  
-==== 搭建 entware-ng ====+centos 需要安装以下软件包
 <code> <code>
-$ git clone https://github.com/Entware-ng/Entware-ng.git +git patch bzip2 gcc gcc-c++ libtool ncurses-devel zlib-static openssl-devel make autoconf automake flex gperf bison texinfo libtool unzip gettext subversion 
-$ cd Entware-ng+</code> 
 + 
 +==== 搭建 entware ==== 
 +<code> 
 +$ git clone https://github.com/Entware/Entware.git 
 +$ cd Entware
 $ make package/symlinks $ make package/symlinks
 $ cp ./configs/mipselsf.config .config $ cp ./configs/mipselsf.config .config
行 21: 行 24:
 $ make target/compile $ make target/compile
 </code> </code>
- 
-==== 无法编译golang支持的解决方法 ==== 
-新版本加入了go语言的支持, 但是tools编译的过程中, 可能出错 
- 
-解决方法是, 编辑 .config 
- 
-把里面的有关 GCCGO, libgo, 和Go有关的包, 全部注释了 
  
 ==== 编译自带软件包 ==== ==== 编译自带软件包 ====
行 38: 行 34:
 === 设置环境变量 === === 设置环境变量 ===
 <code> <code>
-export STAGING_DIR=/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13 +export STAGING_DIR=/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13 
-export PATH=$PATH:/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/bin+export PATH=$PATH:/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/bin
 </code> </code>
  
行 50: 行 46:
 CC=mipsel-openwrt-linux-uclibc-gcc \ CC=mipsel-openwrt-linux-uclibc-gcc \
 CFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fPIC' \ CFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fPIC' \
-CPPFLAGS='-I/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/include'+CPPFLAGS='-I/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/include'
-LDFLAGS='-L/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/lib'+LDFLAGS='-L/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/lib'
 </code> </code>
  
行 57: 行 53:
 编译tinc 1.11pre11 编译tinc 1.11pre11
  
-先编译依赖库, entware-ng自带+先编译依赖库, entware自带
 <code> <code>
 make package/ncurses/compile make package/ncurses/compile
行 75: 行 71:
 CC=mipsel-openwrt-linux-uclibc-gcc \ CC=mipsel-openwrt-linux-uclibc-gcc \
 CFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fPIC' \ CFLAGS='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fPIC' \
-CPPFLAGS='-I/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/include'+CPPFLAGS='-I/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/include'
-LDFLAGS='-L/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/lib'+LDFLAGS='-L/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/lib'
 make make
 </code> </code>
entware/mips2.1462265068.txt.gz · 最后更改: 2016/05/03 16:44 由 Hshh