wok-next view memtest/receipt @ rev 17890

Up xfw (1.40)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 02 17:19:45 2015 +0200 (2015-04-02)
parents d0ddd1e74d41
children 882e8f79c200
line source
1 # SliTaz package receipt.
3 PACKAGE="memtest"
4 VERSION="5.01"
5 CATEGORY="base-system"
6 SHORT_DESC="Memory failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
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 sed -i '/scp memtest.bin/d' Makefile
21 for i in array-size io ; do
22 patch -p1 < $stuff/$SOURCE-$VERSION-$i.patch
23 done
24 make
25 cp $stuff/*.S $stuff/pack .
26 for i in bootloader unpack ; do
27 cc -o $i.o -Wa,-a=$i.lst -c $i.S
28 objcopy -O binary $i.o $i.bin
29 done
30 sed -i "s/VERSION/$VERSION/" pack
31 ./pack --build bootloader.bin unpack.bin
32 ./pack memtest.bin memtest.packed
33 mv memtest.bin memtest.bin.console
34 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
35 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
36 make clean
37 make
38 ./pack memtest.bin memtest.packed-115200
39 mv memtest.bin memtest.bin.serial
40 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/boot
47 cp $src/memtest.packed $fs/boot/memtest
48 }