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

Update custom-console
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 27 10:51:46 2016 +0100 (2016-02-27)
parents 981558572b0f
children 8af7d8943f03
line source
1 # SliTaz package receipt.
3 PACKAGE="module-serial"
4 VERSION="2.6.14"
5 CATEGORY="base-system"
6 GROUP="driver"
7 SHORT_DESC="Kernel module for the serial (RS232) port"
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/dev
21 $src/slitaz/list_modules.sh drivers/serial | while read module; do
22 dir=$path/$(dirname $module)
23 [ -d $fs/$dir ] || mkdir -p $fs/$dir
24 cp -a $_pkg/$path/$module $fs/$dir
25 done
26 for i in 0 1 2 3; do
27 mknod $fs/dev/ttyS$i c 4 $((64+$i))
28 done
29 }
31 # Post install/remove commands for Tazpkg.
32 post_install()
33 {
34 echo 8250_pci >> $1/modules
35 }