Pytanie: czy przejdzie takie cos jak: %{__make} module \ CC=%{kgcc} \ INCLUDES="%{rpmcflags} -I. -I%{_kernelsrcdir}/include"
na rpm z Ra, gcc < 3.x ?
Moglby ktos używajacy kernela 2.{2,4}.x sprawdzic czy sie buduje kernel-video-nvidia? src.rpm tutaj http://www.ghnet.pl/~halab/pliki/srpms/kernel-video-nvidia-1.0.4620-1.src.rpm
Sprawdzone tylko na 2.6.
PS Dawno tak sam ze soba nie "gadalem" ;> -- Robert Halabowski - http://www.ghnet.pl/~halab laudamus veteres, sed nostris utimus annis - Ovidius (chwalimy dawne lata, lecz żyjemy w naszych) z /dev/dsp wydobywa się: REM_-_New_Adventures_In_Hi-Fi_-_leave_-_06
--- kernel-video-nvidia.spec.old 2003-12-15 12:22:31.601267368 +0100 +++ kernel-video-nvidia.spec 2003-12-15 15:07:21.429784904 +0100 @@ -7,8 +7,8 @@ # %define _nv_name NVIDIA_kernel %define _nv_ver 1.0 -%define _nv_rel 4496 -%define _nv_pkg pkg2 +%define _nv_rel 4620 +%define _nv_pkg pkg1 Summary: nVidia kernel module for nVidia Architecture support Summary(de): Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung @@ -20,12 +20,12 @@ License: nVidia Vendor: nVidia Corp. Group: Base/Kernel -Source0: http://download.nvidia.com/XFree86/Linux-x86/%{_nv_ver}-%{_nv_rel}/NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-%{_nv_pkg}.run -# Source0-md5: 34543e7bf271ff90e1a536aacd32efbd +Source0: http://public.pny.com/quadro/FX3000g/Linux/NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-%{_nv_pkg}.run +# Source0-md5: b0050e58d5cb94dbfd0a96713bd1bfe9 Patch0: %{_nv_name}-Makefile.patch -# http://www.minion.de/files/%{_nv_name}-%{_nv_ver}-%{_nv_rel}-2.5.diff -Patch1: %{_nv_name}-%{_nv_ver}-%{_nv_rel}-2.5.diff -Patch2: %{_nv_name}-test5.patch +# http://www.minion.de/files/%{_nv_name}-%{_nv_ver}-%{_nv_rel}-2.6.diff +Patch1: %{_nv_name}-%{_nv_ver}-%{_nv_rel}-2.6.diff +#Patch2: %{_nv_name}-test5.patch URL: http://www.nvidia.com/object/linux.html %{!?_without_dist_kernel:BuildRequires: kernel-headers >= 2.2.0 } BuildRequires: %{kgcc_package} @@ -41,6 +41,7 @@ ExclusiveArch: %{ix86} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + %description nVidia Architecture support for Linux kernel. @@ -85,21 +86,25 @@ rm -rf NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-%{_nv_pkg} /bin/sh %{SOURCE0} --extract-only %setup -q -DT -n NVIDIA-Linux-x86-%{_nv_ver}-%{_nv_rel}-%{_nv_pkg} +%if %{?_with_kernel_2_6:1}0 +cd usr/src/nv/ +%patch1 -p1 +%else %patch0 -p1 -%{?_with_kernel_2_6:%patch1 -p1} -%{?_with_kernel_2_6:%patch2 -p0} +%endif %build IGNORE_CC_MISMATCH=ignore; export IGNORE_CC_MISMATCH cd usr/src/nv/ +ln -s Makefile.kbuild Makefile %if %{?_without_smp:0}%{!?_without_smp:1} -%{__make} nvidia.o \ - CC=%{kgcc} \ +%{__make} module \ + CC=%{kgcc} \ INCLUDES="%{rpmcflags} -I. -D__KERNEL_SMP=1 -D__SMP__ -I%{_kernelsrcdir}/include" mv -f nvidia.%{_modext} nvidia-smp.%{_modext} %{__make} clean %endif -%{__make} nvidia.o \ +%{__make} module \ CC=%{kgcc} \ INCLUDES="%{rpmcflags} -I. -I%{_kernelsrcdir}/include"
_________________________________________ http://pld-linux.org/ = faq, howto, newsy dostales tutaj odpowiedz na swoje pytanie? podziel sie z innymi i dopisz do FAQ! http://pld-linux.org/FAQ/