wok-tiny view module-serial/receipt @ rev 103

Load suggested modules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 06 13:13:00 2016 +0100 (2016-01-06)
parents c9e797b1bf36
children 0d8ef9102fc0
line source
1 # SliTaz package receipt.
3 PACKAGE="module-serial"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel module for the serial (RS232) port"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tiny.slitaz.org/"
10 WANTED="linux"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local path
16 export src=$WOK/$WANTED/source/linux-$VERSION
17 export _pkg=$WOK/$WANTED/install
18 path=lib/modules/$(ls $_pkg/lib/modules)/kernel
19 mkdir -p $fs/$path $fs/dev
20 $src/slitaz/list_modules.sh drivers/serial | while read module; do
21 dir=$path/$(dirname $module)
22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
23 cp -a $_pkg/$path/$module $fs/$dir
24 done
25 for i in 0 1 2 3; do
26 mknod $fs/dev/ttyS$i c 4 $((64+$i))
27 done
28 }
30 # Post install/remove commands for Tazpkg.
31 post_install()
32 {
33 echo 8250_pci >> $1/modules
34 }