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

📄 wangw.spec

📁 coldfire MCF5445X基于unix平台的BSP
💻 SPEC
字号:
%define base %(echo %{_prefix} | sed -e s,/usr.*$,,)%define pfx /opt/freescale/rootfs/%{_target_cpu}%define __os_install_post %{nil}Summary         : Wan Gateway Kernel ModuleName            : wangwVersion         : 1.0.4Release         : 1License         : Freescale Internal Use OnlyVendor          : FreescalePackager        : Lee NipperGroup           : System Environment/KernelSource          : %{name}-%{version}.tar.gzPatch0          : wangw-1.0.4-toolchain.patchBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}%Description%{summary}This package contains the kernel module for theWang Gateway Interworking and Termination Driverdeveloped by Freescale Romania.Notes:You need to have a built unpacked kernel source tree availablevia $RPM_BUILD_DIR/linux.We build spoofed, so gcc == the cross compiler%Prep%setup%patch0 -p1%Buildif [ ! -f $RPM_BUILD_DIR/linux/Makefile ]then    cat <<TXTYou need a built unpacked kernel source tree in:$RPM_BUILD_DIR/linux/Makefileto build kernel modulesTXT    exit 1fiTOPDIR=`pwd`/NetCommSw/build/linux_2.6_836x_gcc_buildTOPLINUX=$RPM_BUILD_DIR/linux(cd $TOPDIR; make wangw.ko COMPILER=  CROSS_COMPILE=  TOPDIR=$TOPDIR TOPLINUX=$TOPLINUX)%Installrm -rf $RPM_BUILD_ROOTKVER="`perl -e '$/ = ""; $_ = <>; m,VERSION\s*=\s*(\d)\s*PATCHLEVEL\s*=\s*(\d+)\s*SUBLEVEL\s*=\s*(\d+)\s*,ms; print  "$1.$2.$3$4"' $RPM_BUILD_DIR/linux/Makefile`"mkdir -p $RPM_BUILD_ROOT/%{pfx}/%{base}/lib/modules/$KVER/swang/TOPDIR=`pwd`/NetCommSw/build/linux_2.6_836x_gcc_buildcp $TOPDIR/*.ko $RPM_BUILD_ROOT/%{pfx}/%{base}/lib/modules/$KVER/swang/%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

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