用户工具

站点工具


entware:mips2

差别

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

到此差别页面的链接

后一修订版
前一修订版
entware-ng:mips2 [2015/12/07 14:24] – 创建 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 15+ubuntu 需要安装以下软件包 
 +<code> 
 +gcc g++ make autoconf automake flex gperf bison texinfo libtool libtool-bin libncurses5-dev zlib1g-dev unzip libssl-dev gettext python2.7 subversion 
 +</code>
  
-安装以下软件包+centos 需要安装以下软件包
 <code> <code>
-gcc g++ make autoconf automake flex gperf bison texinfo libtool libtool-bin libncurses5-dev +git patch bzip2 gcc gcc-c++ libtool ncurses-devel zlib-static openssl-devel make autoconf automake flex gperf bison texinfo libtool unzip gettext subversion
-zlib1g-dev unzip libssl-dev gettext+
 </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 
-./scripts/feeds update +make package/symlinks
-$ ./scripts/feeds install -a+
 $ cp ./configs/mipselsf.config .config $ cp ./configs/mipselsf.config .config
 $ make tools/install $ make tools/install
行 33: 行 34:
 === 设置环境变量 === === 设置环境变量 ===
 <code> <code>
-export STAGING_DIR=/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8 +export STAGING_DIR=/opt/mips/Entware/staging_dir/target-mipsel_mips32r2_uClibc-1.0.13 
-export PATH=$PATH:/paht/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/bin+export PATH=$PATH:/opt/mips/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-5.3.0_uClibc-1.0.13/bin
 </code> </code>
  
行 40: 行 41:
 手动编译软件时configure需要加入以下参数 手动编译软件时configure需要加入以下参数
 <code> <code>
---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='-O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -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/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/include -I/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/include -I/path/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/include -I/path/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/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/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/lib -L/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/path/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/path/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/lib -L/path/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/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>
  
行 52: 行 53:
 编译tinc 1.11pre11 编译tinc 1.11pre11
  
-先编译依赖库, entware-ng自带+先编译依赖库, entware自带
 <code> <code>
 make package/ncurses/compile make package/ncurses/compile
行 58: 行 59:
 make package/libreadline/compile make package/libreadline/compile
 make package/zlib/compile make package/zlib/compile
-make package/openssl/compile 
 </code> </code>
  
行 64: 行 64:
 <code> <code>
 ./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=/opt \ --prefix=/opt \
 +--without-openssl \
 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 -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.8/opt/include -I/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/include -I/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/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.8/opt/lib -L/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/opt/entware-ng/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/lib -L/opt/entware-ng/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/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.1449469469.txt.gz · 最后更改: 2015/12/07 14:24 由 Hshh