wok rev 18396

open-vm-tools: only build modules
author Nathan Neulinger <nneul@neulinger.org>
date Sat Sep 19 02:27:00 2015 +0000 (2015-09-19)
parents 0ffd89c64ef5
children ab0bb7303eff
files linux64-open-vm-tools-kernel/receipt open-vm-tools-kernel/receipt
line diff
     1.1 --- a/linux64-open-vm-tools-kernel/receipt	Sat Sep 19 01:56:55 2015 +0000
     1.2 +++ b/linux64-open-vm-tools-kernel/receipt	Sat Sep 19 02:27:00 2015 +0000
     1.3 @@ -15,13 +15,13 @@
     1.4  PROVIDE="open-vm-tools-kernel:linux64"
     1.5  
     1.6  DEPENDS="shutdown glib libffi libmspack open-vm-tools linux64"
     1.7 -BUILD_DEPENDS="autoconf automake libtool linux-source linux64-module-headers glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain"
     1.8 +BUILD_DEPENDS="autoconf automake libtool linux-source linux-module-headers linux64-module-headers glib-dev libffi-dev libdnet-dev libmspack-dev slitaz-toolchain uclibc-cross-compiler-x86_64"
     1.9  
    1.10  
    1.11  # Rules to configure and make the package.
    1.12  compile_rules()
    1.13  {
    1.14 -	[ -d /lib/modules/$(uname -r)/source ] || get-linux-source
    1.15 +	[ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source
    1.16  
    1.17  	cd open-vm-tools
    1.18  	sed -i -e "s/-Werror//" configure.ac
    1.19 @@ -34,8 +34,11 @@
    1.20  		--without-gtkmm \
    1.21  		--without-xmlsecurity \
    1.22  		--without-xerces \
    1.23 -                $CONFIGURE_ARGS &&
    1.24 -        make && make DESTDIR=$install install
    1.25 +                $CONFIGURE_ARGS && \
    1.26 +        make LINUXINCLUDE=/usr/src/linux-3.2.71-slitaz64/build/include && \
    1.27 +	make LINUXINCLUDE=/usr/src/linux-3.2.71-slitaz64/build/include DESTDIR=$install install
    1.28 +
    1.29 +		#--with-linuxdir=/usr/src/linux-${kvers}-slitaz64 \
    1.30  }
    1.31  
    1.32  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/open-vm-tools-kernel/receipt	Sat Sep 19 01:56:55 2015 +0000
     2.2 +++ b/open-vm-tools-kernel/receipt	Sat Sep 19 02:27:00 2015 +0000
     2.3 @@ -19,7 +19,7 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 -	[ -d /lib/modules/$(uname -r)/source ] || get-linux-source
     2.8 +	[ -d /lib/modules/${kvers}-slitaz/source ] || get-linux-source
     2.9  
    2.10  	cd open-vm-tools
    2.11  	sed -i -e "s/-Werror//" configure.ac
    2.12 @@ -32,7 +32,7 @@
    2.13  		--without-gtkmm \
    2.14  		--without-xmlsecurity \
    2.15  		--without-xerces \
    2.16 -                $CONFIGURE_ARGS &&
    2.17 +                $CONFIGURE_ARGS && cd modules && \
    2.18          make && make DESTDIR=$install install
    2.19  }
    2.20