wok-next annotate memtest/receipt @ rev 19950
Add libegl-mesa
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 16 12:41:47 2017 +0200 (2017-10-16) |
parents | d726d0daa9a7 |
children | 59b28731c360 |
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" |
al@19601 | 9 WEB_SITE="http://www.memtest.org/" |
al@19601 | 10 |
pascal@1734 | 11 SOURCE="memtest86+" |
pascal@1734 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1734 | 13 WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL" |
pascal@524 | 14 |
pascal@14798 | 15 BUILD_DEPENDS="xz" |
al@19601 | 16 SPLIT="memtest-serial" |
pascal@13269 | 17 |
pascal@524 | 18 # Rules to configure and make the package. |
pascal@524 | 19 compile_rules() |
pascal@524 | 20 { |
pascal@19618 | 21 sed -i -e '/scp memtest.bin/d' \ |
pascal@19618 | 22 -e 's/no-stack-protector/& -fgnu89-inline/' Makefile |
pascal@19619 | 23 patch -p1 < $stuff/$SOURCE-$VERSION-array-size.patch |
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@17223 | 30 sed -i "s/VERSION/$VERSION/" pack |
pascal@15188 | 31 ./pack --build bootloader.bin unpack.bin |
pascal@13269 | 32 ./pack memtest.bin memtest.packed |
pascal@17227 | 33 mv memtest.bin memtest.bin.console |
pascal@14796 | 34 sed -i -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \ |
pascal@14796 | 35 -e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h |
pascal@14796 | 36 make clean |
pascal@14796 | 37 make |
pascal@14796 | 38 ./pack memtest.bin memtest.packed-115200 |
pascal@17227 | 39 mv memtest.bin memtest.bin.serial |
pascal@524 | 40 } |
pascal@524 | 41 |
pascal@524 | 42 |
pascal@524 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@524 | 44 genpkg_rules() |
pascal@524 | 45 { |
pascal@13269 | 46 mkdir -p $fs/boot |
pascal@15188 | 47 cp $src/memtest.packed $fs/boot/memtest |
pascal@524 | 48 } |