⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crosstool-mipsel.spec

📁 linux下编译交叉工具链的工具源码
💻 SPEC
字号:
%define version 0.25%define gccvers 3.3.2%define glibcvers 2.3.2%define binutilsvers 2.14.90.0.5%define kernelversion 2.4.21%define lrelease cb1%define release gcc_%{gccvers}_glibc_%{glibcvers}_%{lrelease}Summary: GNU Compiler Collection (GCC) for Linux/MIPSEL cross-developmentName: crosstool-gccVersion: %{version}Release: %{release}License: GPLGroup: Development/Languages%define base_url http://www.kegel.com/crosstool/URL: %{base_url}Source0: %{base_url}/crosstool-%{version}.tar.gzSource1: gcc-%{gccvers}.tar.gzSource2: glibc-%{glibcvers}.tar.bz2Source3: glibc-linuxthreads-%{glibcvers}.tar.bz2Source4: binutils-%{binutilsvers}.tar.bz2Source5: linux-%{kernelversion}.tar.bz2BuildRequires: /bin/pwd, /bin/sh, autoconf, binutils >= 2.9.4, bisonBuildRequires: bzip2, diffutils, fileutils, findutils, flexBuildRequires: glibc-devel >= 2.1, gzip, m4 >= 1.1, make >= 3.77, patch >= 2.5BuildRequires: rpm >= 3.0, sed, tar, textutils#BuildRoot: /var/tmp/%{name}-%{version}-root%descriptionA GNU cross-compiler for the little-ended MIPS chipset, built using Dan Kegel'scrosstool script set.%changelog%prep%setup -q -n crosstool-%{version}%buildexport TARBALLS_DIR=$RPM_SOURCE_DIRecho $TARBALLS_DIRexport RESULT_TOP=/opt/crosstoolif [ -e $RESULT_TOP/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers}/ ]then   echo "target directory $RESULT_TOP/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers}/ exists"   echo "check what you are doing, and remove the target directory if appropriate"   exit 1else   mkdir -p $RESULT_TOP/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers}/   if [ \! -d $RESULT_TOP/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers} ]   then      echo "could not create target directory"      exit 2   fifiKERNELCONFIG=$(pwd)/mipsel.config \  TARGET=mipsel-unknown-linux-gnu \  TARGET_CFLAGS="-O2 -finline-limit=10000" \  BINUTILS_DIR=binutils-%{binutilsvers} \  BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils \  GCC_DIR=gcc-%{gccvers} \  GLIBC_DIR=glibc-%{glibcvers} \  LINUX_DIR=linux-%{kernelversion} \  GLIBCTHREADS_FILENAME=glibc-linuxthreads-%{glibcvers} \  sh all.sh --notest%install# install already done during build%files%defattr(-,root,root)%dir /opt/crosstool/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers}//opt/crosstool/mipsel-unknown-linux-gnu/gcc-%{gccvers}-glibc-%{glibcvers}/*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -