]> git.pld-linux.org Git - packages/eagle-usb.git/commitdiff
- fixed build outside x86 and ppc (wrong gcc options assumption) auto/ac/eagle-usb-1_0_4-8
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 19 Jan 2004 22:45:43 +0000 (22:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed SMP build (there is no OPT parameter)
- release 8

Changed files:
    eagle-usb.spec -> 1.17

eagle-usb.spec

index 09c48b546c1270a678e1b55436eacf241cf479cb..48824eae324dec009193a49a7d0456d4acdf91ec 100644 (file)
@@ -10,7 +10,7 @@ Summary:      Linux driver for the Eagle 8051 Analog (sagem f@st 800...) modems
 Summary(pl):   Sterownik dla Linuksa do modemów Eagle 8051 Analog (sagem f@st 800...)
 Name:          eagle-usb
 Version:       1.0.4
-%define        _rel    7
+%define        _rel    8
 Release:       %{_rel}
 License:       GPL
 Group:         Base/Kernel
@@ -30,7 +30,6 @@ Requires:     ppp >= 2.4.1
 Obsoletes:     eagle-utils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-
 %description
 Linux driver for the Eagle 8051 Analog (sagem f@st 800...) modems.
 
@@ -75,6 +74,12 @@ Sterownik dla Linuksa SMP do modem
 %patch1 -p1
 %patch2 -p1
 
+%ifnarch %{ix86}
+# invalid not only for ppc
+sed -e 's/-mpreferred-stack-boundary=2//' driver/Makefile > m.tmp
+mv -f m.tmp driver/Makefile
+%endif
+
 %build
 %if %{with kernel}
 install -d kernel-{up,smp}
@@ -83,9 +88,6 @@ install -d kernel-{up,smp}
 %{__make} clean
 %{__make} -C driver \
        CC=%{kgcc} \
-%ifarch %{ix86} 
-       OPT="-I/usr/src/linux/include/asm-i386/mach-default" \
-%endif
        KERNELSRC="%{_kernelsrcdir}"
 install driver/adiusbadsl.o kernel-up
 
@@ -94,11 +96,7 @@ CONFIG_SMP=y; export CONFIG_SMP
 %{__make} -C driver clean
 %{__make} -C driver \
        CC=%{kgcc} \
-%ifarch %{ix86} 
-       OPT="-I/usr/src/linux/include/asm-i386/mach-default -DSMP -D__SMP__" \
-%else
-       OPT="-D__SMP__ -DSMP" \
-%endif
+       CONFIG_SMP=1 \
        KERNELSRC="%{_kernelsrcdir}"
 install driver/adiusbadsl.o kernel-smp
 %endif
This page took 0.085359 seconds and 4 git commands to generate.