用户工具

站点工具


entware:mips2

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
entware-ng:mips2 [2016/05/05 16:09] – 路径修改 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]] 环境
  
 ==== 系统环境准备 ==== ==== 系统环境准备 ====
行 14: 行 14:
 </code> </code>
  
-==== 搭建 entware-ng ====+==== 搭建 entware ====
 <code> <code>
-$ git clone https://github.com/Entware-ng/Entware-ng.git +$ git clone https://github.com/Entware/Entware.git 
-$ cd Entware-ng+$ cd Entware
 $ make package/symlinks $ make package/symlinks
 $ cp ./configs/mipselsf.config .config $ cp ./configs/mipselsf.config .config
行 23: 行 23:
 $ make toolchain/install $ make toolchain/install
 $ make target/compile $ make target/compile
-</code> 
- 
-==== ubuntu无法编译golang支持的解决方法 ==== 
-新版本加入了go语言的支持, 但是tools编译的过程中, ubuntu环境下可能出错. 解决方法是, 编辑 .config, 把里面的有关 GCCGO, libgo, 和Go有关的包, 全部注释了, 包含下面内容. 
- 
-<code> 
-CONFIG_INSTALL_GCCGO=y 
-CONFIG_PACKAGE_libgo=m 
-CONFIG_PACKAGE_asciinema-ng=m 
-CONFIG_PACKAGE_gotty=m 
-CONFIG_PACKAGE_rclone=m 
-CONFIG_PACKAGE_shell2http=m 
-CONFIG_PACKAGE_syncthing=m 
 </code> </code>
  
行 47: 行 34:
 === 设置环境变量 === === 设置环境变量 ===
 <code> <code>
-export STAGING_DIR=/opt/mips/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/mips/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>
  
行 59: 行 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/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/mips/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/mips/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/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/mips/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/mips/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>
  
行 66: 行 53:
 编译tinc 1.11pre11 编译tinc 1.11pre11
  
-先编译依赖库, entware-ng自带+先编译依赖库, entware自带
 <code> <code>
 make package/ncurses/compile make package/ncurses/compile
行 84: 行 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/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/include -I/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/include -I/opt/mips/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/include -I/opt/mips/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/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -L/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/mips/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/mips/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/usr/lib -L/opt/mips/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.1462435792.txt.gz · 最后更改: 2016/05/05 16:09 由 Hshh