wok-6.x view memtest/receipt @ rev 17223
memtest: fix bootloader EXE case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 14 22:40:53 2014 +0200 (2014-10-14) |
parents | 8ac80fe62efb |
children | d0ddd1e74d41 |
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 sed -i "s/VERSION/$VERSION/" pack
28 ./pack --build bootloader.bin unpack.bin
29 ./pack memtest.bin memtest.packed
30 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
31 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
32 make clean
33 make
34 ./pack memtest.bin memtest.packed-115200
35 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/boot
42 cp $src/memtest.packed $fs/boot/memtest
43 }