coldfire MCF5445X基于unix平台的BSP

源代码在线查看: gdb-6.4.spec

软件大小: 22692 K
上传用户: hanyuangu
关键词: coldfire 5445X 5445 unix
下载地址: 免注册下载 普通下载 VIP

相关代码

				%define pfx /opt/freescale/rootfs/%{_target_cpu}								Summary         : Gdb - GNU Source level debugger for C, C++				Name            : gdb				Version         : 6.4				Release         : 0				License         : GPL				Vendor          : Freescale				Packager        : Ross Wille				Group           : Development/Debuggers				Source          : gdb-6.4.tar.gz				BuildRoot       : %{_tmppath}/%{name}				Prefix          : %{pfx}								%Description				%{summary}								%Prep				%setup								%Build				ORIG_PATH=$PATH				# This is the optimised host type.  Needed to prevent infering a native build				OPT_CFGHOST=`echo ${TOOLCHAIN_PREFIX} | perl -n -e 's,-$,,;print'`								# do something (the least costly)				if [ -z "$PKG_GDB_CROSS_WANT_ED$PKG_GDB_SERVER_WANT_ED$PKG_GDB_NATIVE_WANT_ED" ]				then				    PKG_GDB_SERVER_WANT_ED=y				fi								# cross gdb to run on the build machine				if [ -n "$PKG_GDB_CROSS_WANT_ED" ]				then				    BD=cross-gdb				    rm -rf $BD				    mkdir -p $BD				    cd $BD				    export PATH=$UNSPOOF_PATH				    export ac_cv_header_stdc=yes bash_cv_have_mbstate_t=yes \				           ac_cv_header_nlist_h=no				    ../configure --prefix=%{_prefix} --target=$CFGHOST --mandir=%{_mandir}				    make				    cp gdb/gdb $TOP/bin/gdb				    cd -				fi								# from now build stuff to go into the rpm package				export PATH=$ORIG_PATH								# gdbserver to run on the target				if [ -n "$PKG_GDB_SERVER_WANT_ED" ]				then				    cd gdb/gdbserver				    sh ./configure --prefix=%{_prefix} --host=$OPT_CFGHOST --mandir=%{_mandir} --enable-threads --enable-shared				    make				    cd -				fi								# full gdb to run on the target				if [ -n "$PKG_GDB_NATIVE_WANT_ED" ]				then				    export CPP="$BUILDCPP"				    export CC_FOR_BUILD="$BUILDCC"				    export ac_cv_header_stdc=yes bash_cv_have_mbstate_t=yes \				           ac_cv_header_nlist_h=no ac_cv_header_sys_reg_h=no				    export noconfigdirs=gdbserver				    CC=gcc AR=ar \				    ./configure --prefix=%{_prefix} --host=$OPT_CFGHOST --build=%{_build} --mandir=%{_mandir} --enable-threads --enable-shared				    make				fi								%Install				if [ -z "$PKG_GDB_CROSS_WANT_ED$PKG_GDB_SERVER_WANT_ED$PKG_GDB_NATIVE_WANT_ED" ]				then				    PKG_GDB_SERVER_WANT_ED=y				fi								rm -rf $RPM_BUILD_ROOT				if [ -n "$PKG_GDB_SERVER_WANT_ED" ]				then				    cd gdb/gdbserver				    make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}				    cd -				fi				if [ -n "$PKG_GDB_NATIVE_WANT_ED" ]				then				    make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}				    # remove standards.info which conflicts with autoconf				    rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/info/standards.info				fi								%Clean				rm -rf $RPM_BUILD_ROOT												%Files				%defattr(-,root,root)				%{pfx}/*							

相关资源