tc-wrapper.spec

来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 84 行

SPEC
84
字号
%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 + =
减小字号Ctrl + -
显示快捷键?