wok-tiny view module-usb-storage/receipt @ rev 172

Add x86test & tfttest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 08 17:23:19 2021 +0000 (2021-05-08)
parents 8af7d8943f03
children 2c80994c5e30
line source
1 # SliTaz package receipt.
3 PACKAGE="module-usb-storage"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver,usb"
7 SHORT_DESC="Kernel module for the USB storage devices"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://tiny.slitaz.org/"
11 WANTED="linux"
13 DEPENDS="module-sd_mod"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 local path
19 export src=$WOK/$WANTED/source/linux-$VERSION
20 export _pkg=$WOK/$WANTED/install
21 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
22 mkdir -p $fs/$path $fs/sbin
23 ln -s /bin/busybox $fs/sbin/mdev
24 $src/slitaz/list_modules.sh drivers/usb/storage/usb-storage.ko | while read module; do
25 dir=$path/$(dirname $module)
26 [ -d $fs/$dir ] || mkdir -p $fs/$dir
27 cp -a $_pkg/$path/$module $fs/$dir
28 done
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 for i in scsi_mod usbcore usb-storage ; do
35 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
36 done
37 }
39 #scsi_mod.ko:
40 #parm=scsi_logging_level:a bit mask of logging levels
41 #parm=max_luns:last scsi LUN (should be between 1 and 2^32-1)
42 #parm=max_report_luns:REPORT LUNS maximum number of LUNS received (should be between 1 and 16384)
43 #parm=inq_timeout:Timeout (in seconds) waiting for devices to answer INQUIRY. Default is 5. Some non-compliant devices need more.
44 #parm=dev_flags:Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white list entries for vendor and model with an integer value of flags to the scsi device info list
45 #parm=default_dev_flags:scsi default device flag integer value
47 #usbcore.ko:
48 #parm=blinkenlights:true to cycle leds on hubs
49 #parm=old_scheme_first:start with the old device initialization scheme
50 #parm=use_both_schemes:try the other device initialization scheme if the first one fails
51 #parm=usbfs_snoop:true to log all usbfs traffic
53 #usb-storage.ko:
54 #parm=delay_use:seconds to delay before using a new device