wok view memtest/receipt @ rev 16597
ARM: Add python-pifacecommon python-pifacedigitalio (let play with PiFace)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 14:57:33 2014 +0200 (2014-05-07) |
parents | b0e9e83532e2 |
children | 99c5dab1a371 |
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="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 sed -i '/scp memtest.bin/d' Makefile
21 make
22 cp $stuff/*.S $stuff/pack .
23 for i in bootloader unpack ; do
24 cc -o $i.o -Wa,-a=$i.lst -c $i.S
25 objcopy -O binary $i.o $i.bin
26 done
27 ./pack --build bootloader.bin unpack.bin
28 ./pack memtest.bin memtest.packed
29 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
30 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
31 make clean
32 make
33 ./pack memtest.bin memtest.packed-115200
34 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/boot
41 cp $src/memtest.packed $fs/boot/memtest
42 }