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

📄 tc-wrapper.spec

📁 coldfire MCF5445X基于unix平台的BSP
💻 SPEC
字号:
%define pfx /opt/freescale/rootfs/%{_target_cpu}%define __os_install_post %{nil}Summary         : Toolchain isolation wrapperName            : tc-wrapperVersion         : 0.1Release         : 1License         : LGPLVendor          : FreescalePackager        : Stuart HughesGroup           : System Environment/LibrariesSource          : %{name}-%{version}.tar.gzPatch1          : tc-wrapper-0.1-tc_cflags-2.patchPatch2          : tc-wrapper-0.1-cache_libgcc_dir-1.patchPatch3          : tc-wrapper-0.1-cplusplus.patchBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}%Description%{summary}This wrapper was originally from uClibc but was obsoleted as it isimperfect and has been superceeded by native uClibc toolchains.However this still has utility in some situations when doinginitial ports and you only have a toolchain build around a differentlibrary available:NOTE: this package builds a host side utility that is built perproject (at the moment).  There are no files in the target rpm.%Prep%setup%patch1 -p1%patch2 -p1%patch3 -p1%BuildCROSSGCC=$TOOLCHAIN_PATH/bin/${TOOLCHAIN_PREFIX}gccLIBGCC_A="`$CROSSGCC -print-libgcc-file-name`"LIBGCC_DIR="`dirname $LIBGCC_A`"GCC_VERSION="`$CROSSGCC -dumpversion`"export CFLAGS="-DLTIB_BUILD -D__UCLIBC_CTOR_DTOR__ -DLIBGCC_DIR=\"$LIBGCC_DIR\" -DGCC_VERSION=\"$GCC_VERSION\""if [ -n "$SYS_WANT_MMU" ]then    export CFLAGS="$CFLAGS -D__UCLIBC_HAS_MMU__"fiif [ -n "$SYS_WANT_SHARED" ]then    export CFLAGS="$CFLAGS -D__UCLIBC_HAS_SHARED__"ficd extra/gcc-uClibc$BUILDCC $CFLAGS gcc-uClibc.c -o tc-uclibc-gcc%Installrm -rf $RPM_BUILD_ROOTif [ -n "$TOP" ]then    for i in gcc cc g++ c++    do        rm -f $TOP/bin/$i    done    cp extra/gcc-uClibc/tc-uclibc-gcc $TOP/bin/gcc    ln -s gcc $TOP/bin/cc    ln -s gcc $TOP/bin/g++    ln -s gcc $TOP/bin/c++fi%Postunif [ -n "$TOP" ]then    echo "removing $TOP/bin/{gcc,cc}"    rm -f $TOP/bin/{gcc,cc}fi%Cleanrm -rf $RPM_BUILD_ROOT#%Files#%defattr(-,root,root)

⌨️ 快捷键说明

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