wok-next view memtest/receipt @ rev 14948

Up: eeze-dev (1.7.8)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:15:53 2013 +0200 (2013-08-08)
parents 8ee389d86c73
children b0e9e83532e2
line source
1 # SliTaz package receipt.
3 PACKAGE="memtest"
4 VERSION="4.20"
5 CATEGORY="base-system"
6 SHORT_DESC="Memory failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="memtest86+"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.memtest.org/"
12 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
14 BUILD_DEPENDS="xz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 make
21 cp $stuff/*.S $stuff/pack .
22 cc -o unpack.o -Wa,-a=unpack.lst -c unpack.S
23 objcopy -O binary unpack.o unpack.bin
24 ./pack --build unpack.bin
25 ./pack memtest.bin memtest.packed
26 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
27 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
28 make clean
29 make
30 ./pack memtest.bin memtest.packed-115200
31 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/boot
38 cp $src/memtest.packed-115200 $fs/boot/memtest
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 cat <<EOT
45 Output to vga and serial port. Default kernel cmdline: console=ttyS0,115200e8
46 EOT
47 }