wok-6.x annotate memtest/receipt @ rev 19933
fix symlinks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 28 08:52:32 2017 +0200 (2017-04-28) |
parents | 882e8f79c200 |
children | 9e463ebef079 |
rev | line source |
---|---|
pascal@524 | 1 # SliTaz package receipt. |
pascal@524 | 2 |
pascal@524 | 3 PACKAGE="memtest" |
pascal@15468 | 4 VERSION="5.01" |
pascal@524 | 5 CATEGORY="base-system" |
pascal@524 | 6 SHORT_DESC="Memory failures detection tool." |
pascal@524 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17225 | 8 LICENSE="GPL2" |
pascal@1734 | 9 SOURCE="memtest86+" |
pascal@1734 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@524 | 11 WEB_SITE="http://www.memtest.org/" |
pascal@1734 | 12 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL" |
pascal@524 | 13 |
pascal@14798 | 14 BUILD_DEPENDS="xz" |
pascal@13269 | 15 |
pascal@524 | 16 # Rules to configure and make the package. |
pascal@524 | 17 compile_rules() |
pascal@524 | 18 { |
pascal@1734 | 19 cd $src |
pascal@15468 | 20 sed -i '/scp memtest.bin/d' Makefile |
pascal@19171 | 21 for i in array-size io setup ; do |
pascal@17225 | 22 patch -p1 < $stuff/$SOURCE-$VERSION-$i.patch |
pascal@17225 | 23 done |
pascal@1734 | 24 make |
pascal@13269 | 25 cp $stuff/*.S $stuff/pack . |
pascal@15188 | 26 for i in bootloader unpack ; do |
pascal@15188 | 27 cc -o $i.o -Wa,-a=$i.lst -c $i.S |
pascal@15188 | 28 objcopy -O binary $i.o $i.bin |
pascal@15188 | 29 done |
pascal@19921 | 30 for n in pm_code gdt_abs pagebuf ; do |
pascal@19921 | 31 for f in bootloader unpack ; do |
pascal@19921 | 32 printf "%-20s" $f |
pascal@19921 | 33 sed "/:[0-9a-f]* $n\$/!d;s/.*://" $f.lst |
pascal@19921 | 34 done |
pascal@19921 | 35 done |
pascal@17223 | 36 sed -i "s/VERSION/$VERSION/" pack |
pascal@15188 | 37 ./pack --build bootloader.bin unpack.bin |
pascal@13269 | 38 ./pack memtest.bin memtest.packed |
pascal@17227 | 39 mv memtest.bin memtest.bin.console |
pascal@14796 | 40 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \ |
pascal@14796 | 41 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h |
pascal@14796 | 42 make clean |
pascal@14796 | 43 make |
pascal@14796 | 44 ./pack memtest.bin memtest.packed-115200 |
pascal@17227 | 45 mv memtest.bin memtest.bin.serial |
pascal@524 | 46 } |
pascal@524 | 47 |
pascal@524 | 48 |
pascal@524 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@524 | 50 genpkg_rules() |
pascal@524 | 51 { |
pascal@13269 | 52 mkdir -p $fs/boot |
pascal@15188 | 53 cp $src/memtest.packed $fs/boot/memtest |
pascal@524 | 54 } |