wok view memtest/receipt @ rev 14797

memtest: both vga and serial output
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 13 10:07:17 2013 +0200 (2013-07-13)
parents c6501cfa8ced
children 8d9ce0de31e0
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 SOURCE="memtest86+"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.memtest.org/"
11 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
13 BUILD_DEPENDS="lzma"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 make
20 cp $stuff/*.S $stuff/pack .
21 cc -o unpack.o -Wa,-a=unpack.lst -c unpack.S
22 objcopy -O binary unpack.o unpack.bin
23 ./pack --build unpack.bin
24 ./pack memtest.bin memtest.packed
25 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
26 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
27 make clean
28 make
29 ./pack memtest.bin memtest.packed-115200
30 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/boot
37 cp $src/memtest.packed-115200 $fs/boot/memtest
38 }