wok-6.x diff linux-video/receipt @ rev 6292

Up: gpodder to 2.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Sep 15 20:18:09 2010 +0000 (2010-09-15)
parents 63937e3b2979
children 5b6e682d7c62
line diff
     1.1 --- a/linux-video/receipt	Fri May 28 21:08:44 2010 +0200
     1.2 +++ b/linux-video/receipt	Wed Sep 15 20:18:09 2010 +0000
     1.3 @@ -9,21 +9,23 @@
     1.4  WANTED="linux"
     1.5  WEB_SITE="http://www.kernel.org/"
     1.6  
     1.7 +# Modules paths and list
     1.8 +MOD_PATH="/lib/modules/$VERSION-slitaz/kernel"
     1.9 +MODULES="drivers/video/output.ko.gz
    1.10 +drivers/video/backlight/lcd.ko.gz
    1.11 +drivers/video/backlight/generic_bl.ko.gz
    1.12 +drivers/gpio/bt8xxgpio.ko.gz"
    1.13 +
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
    1.17 -    local path
    1.18 -    path=lib/modules/$VERSION-slitaz/kernel
    1.19 -    mkdir -p $fs/$path
    1.20 -    export src
    1.21 -    export _pkg
    1.22 -    $src/slitaz/list_modules.sh drivers/video/output.ko.gz \
    1.23 -	drivers/gpio/bt8xxgpio.ko.gz | \
    1.24 -    while read module; do
    1.25 -    	dir=$path/$(dirname $module)
    1.26 -    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.27 -        cp -a $_pkg/$path/$module $fs/$dir
    1.28 -    done
    1.29 +	mkdir -p ${fs}${MOD_PATH}
    1.30 +	for module in $MODULES
    1.31 +	do
    1.32 +		dir=$MOD_PATH/$(dirname $module)
    1.33 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.34 +		cp -a $_pkg/$MOD_PATH/$module $fs/$dir
    1.35 +	done
    1.36  }
    1.37  
    1.38  # Post install/remove commands for Tazpkg.