Author: pluto                        Date: Wed Sep 27 00:24:10 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- better arch. selection.

---- Files affected:
SPECS:
   madwifi-ng.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/madwifi-ng.spec
diff -u SPECS/madwifi-ng.spec:1.13 SPECS/madwifi-ng.spec:1.14
--- SPECS/madwifi-ng.spec:1.13  Tue Sep 26 23:25:40 2006
+++ SPECS/madwifi-ng.spec       Wed Sep 27 02:24:05 2006
@@ -14,14 +14,13 @@
 %define                snap_day        15
 %define                snap    %{snap_year}%{snap_month}%{snap_day}
 %define                snapdate        %{snap_year}-%{snap_month}-%{snap_day}
-%define                _rel    0.%{snap}.1
+%define                _rel    0.%{snap}.2
 %define                trunk   r1686
 Summary:       Atheros WiFi card driver
 Summary(pl):   Sterownik karty radiowej Atheros
 Name:          madwifi-ng
 Version:       0
 Release:       %{_rel}
-Epoch:         0
 License:       GPL/BSD (partial source)
 Group:         Base/Kernel
 Provides:      madwifi
@@ -37,7 +36,7 @@
 BuildRequires: rpmbuild(macros) >= 1.153
 BuildRequires: sharutils
 %endif
-ExclusiveArch: %{x8664} arm %{ix86} mips ppc xscale
+ExclusiveArch: alpha arm %{ix86} %{x8664} mips powerpc ppc sparc sparcv9 
sparc64 xscale
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -119,6 +118,17 @@
 
 %if %{with kernel}
 # kernel module(s)
+
+%ifarch alpha %{ix86} %{x8664}
+target=%{_target_base_arch}-elf
+%endif
+%ifarch sparc sparcv9 sparc64
+target=%{_target_base_arch}-be-elf
+%endif
+%ifarch powerpc ppc
+target=powerpc-be-elf
+%endif
+
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} 
up}%{!?with_dist_kernel:nondist}; do
        if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
                exit 1
@@ -136,20 +146,17 @@
        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} o/include/asm
 %endif
 
-#
-#      patching/creating makefile(s) (optional)
-#
        %{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
        ln -sf ../Makefile.inc o/Makefile.inc
        %{__make} -C %{_kernelsrcdir} clean \
-               TARGET="%{_target_base_arch}-elf" \
+               TARGET=$target \
                KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
                RCS_FIND_IGNORE="-name '*.ko' -o" \
                M=$PWD O=$PWD/o \
                KERNELPATH="%{_kernelsrcdir}" \
                %{?with_verbose:V=1}
        %{__make} \
-               TARGET="%{_target_base_arch}-elf" \
+               TARGET=$target \
                KERNELPATH="%{_kernelsrcdir}" \
                KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
                TOOLPREFIX= \
@@ -264,6 +271,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2006/09/27 00:24:05  pluto
+- better arch. selection.
+
 Revision 1.13  2006/09/26 21:25:40  pluto
 - gcc4 fix.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/madwifi-ng.spec?r1=1.13&r2=1.14&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to