SPECS: rr174x.spec - some hacks to get module

glen glen at pld-linux.org
Thu Dec 11 17:16:44 CET 2008


Author: glen                         Date: Thu Dec 11 16:16:44 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- some hacks to get module

---- Files affected:
SPECS:
   rr174x.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/rr174x.spec
diff -u SPECS/rr174x.spec:1.1 SPECS/rr174x.spec:1.2
--- SPECS/rr174x.spec:1.1	Thu Dec 11 16:54:46 2008
+++ SPECS/rr174x.spec	Thu Dec 11 17:16:38 2008
@@ -29,6 +29,7 @@
 Group:		Base/Kernel
 Source0:	http://www.highpoint-tech.com/BIOS_Driver/rr1740/Linux/%{pname}-linux-src-v%{basever}-%{_subver}-1311.tar.gz
 # Source0-md5:	12763d34c8b725ce0c25e3431745e1ce
+Patch0:		%{pname}-cflags.patch
 URL:		http://www.highpoint-tech.com/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
@@ -64,19 +65,26 @@
 
 %prep
 %setup -q -n %{pname}-linux-src-v%{basever}
-%{__sed} -i -e 's,\r$,,' README
+%{__sed} -i -e 's,\r$,,' README inc/linux/Makefile.def
+%patch0 -p1
 
 %build
 %if %{with kernel}
+pwd=$(pwd)
 cd product/rr1740pm/linux
-%build_kernel_modules -m rr174x
+# XXX: fool build macro
+touch rr174x.ko
+%build_kernel_modules -m rr174x KERNELDIR=$(pwd)/o KERNEL_VER=2.6 HPT_ROOT="$pwd"
+# XXX. it didn't build module with above...
+%{__make} KERNELDIR=$(pwd)/o
+mv -f rr174x{,-dist}.ko
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with kernel}
-%install_kernel_modules -m rr174x -d kernel/misc
+%install_kernel_modules -m product/rr1740pm/linux/rr174x -d kernel/misc
 %endif
 
 %clean
@@ -100,5 +108,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008/12/11 16:16:38  glen
+- some hacks to get module
+
 Revision 1.1  2008/12/11 15:54:46  glen
 - new, build fails
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/rr174x.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list