wok-current rev 5653
linux-vide: add lcd module + up linux-eeepc-wmi receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 29 21:33:21 2010 +0200 (2010-05-29) |
parents | bef996a0bab2 |
children | ec092698f6e1 a2ee97f1c132 |
files | linux-eeepc-wmi/receipt linux-video/receipt |
line diff
1.1 --- a/linux-eeepc-wmi/receipt Sat May 29 19:35:09 2010 +0000 1.2 +++ b/linux-eeepc-wmi/receipt Sat May 29 21:33:21 2010 +0200 1.3 @@ -9,18 +9,19 @@ 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/platform/x86/eeepc-wmi.ko.gz" 1.10 1.11 # Rules to gen a SliTaz package suitable for Tazpkg. 1.12 genpkg_rules() 1.13 { 1.14 - path=lib/modules/$VERSION-slitaz/kernel 1.15 - mkdir -p $fs/$path 1.16 + mkdir -p ${fs}${MOD_PATH} 1.17 for module in $MODULES 1.18 do 1.19 - dir=$path/$(dirname $module) 1.20 + dir=$MOD_PATH/$(dirname $module) 1.21 [ -d $fs/$dir ] || mkdir -p $fs/$dir 1.22 - cp -a $_pkg/$path/$module $fs/$dir 1.23 + cp -a $_pkg/$MOD_PATH/$module $fs/$dir 1.24 done 1.25 } 1.26
2.1 --- a/linux-video/receipt Sat May 29 19:35:09 2010 +0000 2.2 +++ b/linux-video/receipt Sat May 29 21:33:21 2010 +0200 2.3 @@ -9,21 +9,23 @@ 2.4 WANTED="linux" 2.5 WEB_SITE="http://www.kernel.org/" 2.6 2.7 +# Modules paths and list 2.8 +MOD_PATH="/lib/modules/$VERSION-slitaz/kernel" 2.9 +MODULES="drivers/video/output.ko.gz 2.10 +drivers/video/backlight/lcd.ko.gz 2.11 +drivers/video/backlight/generic_bl.ko.gz 2.12 +drivers/gpio/bt8xxgpio.ko.gz" 2.13 + 2.14 # Rules to gen a SliTaz package suitable for Tazpkg. 2.15 genpkg_rules() 2.16 { 2.17 - local path 2.18 - path=lib/modules/$VERSION-slitaz/kernel 2.19 - mkdir -p $fs/$path 2.20 - export src 2.21 - export _pkg 2.22 - $src/slitaz/list_modules.sh drivers/video/output.ko.gz \ 2.23 - drivers/gpio/bt8xxgpio.ko.gz | \ 2.24 - while read module; do 2.25 - dir=$path/$(dirname $module) 2.26 - [ -d $fs/$dir ] || mkdir -p $fs/$dir 2.27 - cp -a $_pkg/$path/$module $fs/$dir 2.28 - done 2.29 + mkdir -p ${fs}${MOD_PATH} 2.30 + for module in $MODULES 2.31 + do 2.32 + dir=$MOD_PATH/$(dirname $module) 2.33 + [ -d $fs/$dir ] || mkdir -p $fs/$dir 2.34 + cp -a $_pkg/$MOD_PATH/$module $fs/$dir 2.35 + done 2.36 } 2.37 2.38 # Post install/remove commands for Tazpkg.