wok-current view memtest/receipt @ rev 14796
memtest: add serial version (115200 baud)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 12 23:37:19 2013 +0000 (2013-07-12) |
parents | 3fd2f1836a8c |
children | 8ee389d86c73 |
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 $fs/boot/memtest
38 cp $src/memtest.packed-115200 $fs/boot/memtest.115200
39 }