wok-next annotate 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 |
rev | line source |
---|---|
pascal@524 | 1 # SliTaz package receipt. |
pascal@524 | 2 |
pascal@524 | 3 PACKAGE="memtest" |
slaxemulator@8153 | 4 VERSION="4.20" |
pascal@524 | 5 CATEGORY="base-system" |
pascal@524 | 6 SHORT_DESC="Memory failures detection tool." |
pascal@524 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1734 | 8 SOURCE="memtest86+" |
pascal@1734 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@524 | 10 WEB_SITE="http://www.memtest.org/" |
pascal@1734 | 11 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL" |
pascal@524 | 12 |
pascal@13287 | 13 BUILD_DEPENDS="lzma" |
pascal@13269 | 14 |
pascal@524 | 15 # Rules to configure and make the package. |
pascal@524 | 16 compile_rules() |
pascal@524 | 17 { |
pascal@1734 | 18 cd $src |
pascal@1734 | 19 make |
pascal@13269 | 20 cp $stuff/*.S $stuff/pack . |
pascal@13269 | 21 cc -o unpack.o -Wa,-a=unpack.lst -c unpack.S |
pascal@13269 | 22 objcopy -O binary unpack.o unpack.bin |
pascal@13269 | 23 ./pack --build unpack.bin |
pascal@13269 | 24 ./pack memtest.bin memtest.packed |
pascal@14796 | 25 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \ |
pascal@14796 | 26 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h |
pascal@14796 | 27 make clean |
pascal@14796 | 28 make |
pascal@14796 | 29 ./pack memtest.bin memtest.packed-115200 |
pascal@524 | 30 } |
pascal@524 | 31 |
pascal@524 | 32 |
pascal@524 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@524 | 34 genpkg_rules() |
pascal@524 | 35 { |
pascal@13269 | 36 mkdir -p $fs/boot |
pascal@14797 | 37 cp $src/memtest.packed-115200 $fs/boot/memtest |
pascal@524 | 38 } |