Author: charles                      Date: Sat Feb 11 13:01:31 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new way of building modules

---- Files affected:
SPECS:
   VMware-workstation.spec (1.77 -> 1.78) 

---- Diffs:

================================================================
Index: SPECS/VMware-workstation.spec
diff -u SPECS/VMware-workstation.spec:1.77 SPECS/VMware-workstation.spec:1.78
--- SPECS/VMware-workstation.spec:1.77  Tue Jan 31 15:49:54 2006
+++ SPECS/VMware-workstation.spec       Sat Feb 11 14:01:26 2006
@@ -315,19 +315,21 @@
                rm -rf $mod-only
                cp -a $mod-only.clean $mod-only
                cd $mod-only
-               install -d include/{linux,config}
-               touch include/config/MARKER
-               ln -sf %{_kernelsrcdir}/config-$cfg .config
-               ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h 
include/linux/autoconf.h
-               ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} 
include/asm
-               ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} 
include/asm-%{_target_base_arch}
-               ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
-       %if %{without dist_kernel}
-                ln -sf %{_kernelsrcdir}/scripts
+               install -d o/include/linux
+               ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+               ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+               ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h 
o/include/linux/autoconf.h
+       %if %{with dist_kernel}
+               %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+       %else
+               install -d o/include/config
+               touch o/include/config/MARKER
+               ln -sf %{_kernelsrcdir}/scripts o/scripts
         %endif
                %{__make} -C %{_kernelsrcdir} modules \
                        VMWARE_VER=VME_V5 \
-                       M=$PWD O=$PWD \
+                       SRCROOT=$PWD \
+                       M=$PWD O=$PWD/o \
                        VM_KBUILD=26 \
                        %{?with_verbose:V=1} \
                        VM_CCVER=%{_ccver}
@@ -646,6 +648,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.78  2006/02/11 13:01:26  charles
+- new way of building modules
+
 Revision 1.77  2006/01/31 14:49:54  charles
 - ln %{_kernelsrcdir}/scripts for without dist_kernel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/VMware-workstation.spec?r1=1.77&r2=1.78&f=u

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

Reply via email to