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

busybox/mdev: restore /sys layout
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 13 19:09:32 2017 +0200 (2017-04-13)
parents 14e714f8c808
children 1869a110d35f
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 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 export src=$WOK/$WANTED/source/linux-$VERSION
18 export _pkg=$WOK/$WANTED/install
19 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
20 mkdir -p $fs/$path $fs/sbin
21 ln -s /bin/busybox $fs/sbin/mdev
22 $src/slitaz/list_modules.sh drivers/usb/storage/usb-storage.ko | while read module; do
23 dir=$path/$(dirname $module)
24 [ -d $fs/$dir ] || mkdir -p $fs/$dir
25 cp -a $_pkg/$path/$module $fs/$dir
26 done
27 }
29 # Post install/remove commands for Tazpkg.
30 post_install()
31 {
32 for i in scsi_mod usbcore usb-storage ; do
33 grep -qs ^$i$ $1/modules || echo $i >> $1/modules
34 done
35 }
37 #scsi_mod.ko:
38 #parm=scsi_logging_level:a bit mask of logging levels
39 #parm=max_luns:last scsi LUN (should be between 1 and 2^32-1)
40 #parm=max_report_luns:REPORT LUNS maximum number of LUNS received (should be between 1 and 16384)
41 #parm=inq_timeout:Timeout (in seconds) waiting for devices to answer INQUIRY. Default is 5. Some non-compliant devices need more.
42 #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
43 #parm=default_dev_flags:scsi default device flag integer value
45 #usbcore.ko:
46 #parm=blinkenlights:true to cycle leds on hubs
47 #parm=old_scheme_first:start with the old device initialization scheme
48 #parm=use_both_schemes:try the other device initialization scheme if the first one fails
49 #parm=usbfs_snoop:true to log all usbfs traffic
51 #usb-storage.ko:
52 #parm=delay_use:seconds to delay before using a new device