wok-tiny diff x86test/receipt @ rev 172
Add x86test & tfttest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 08 17:23:19 2021 +0000 (2021-05-08) |
parents | |
children | eb617e43dc08 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/x86test/receipt Sat May 08 17:23:19 2021 +0000 1.3 @@ -0,0 +1,42 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="x86test" 1.7 +VERSION="0.10a" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="CPU failures detection tool." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="http://www.slitaz.org/" 1.13 +TARGET="i486" 1.14 + 1.15 +BUILD_DEPENDS="xz" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + mkdir -p $src && cd $src 1.21 + cp $stuff/x86test $stuff/*.S $stuff/pack . 1.22 + sed -i '/#define ONLY8086/d' unpack.S 1.23 + for i in bootloader unpack ; do 1.24 + cc -o $i.o -Wa,-a=$i.lst -c $i.S 1.25 + objcopy -O binary $i.o $i.bin 1.26 + done 1.27 + sed -i "s/VERSION/$VERSION/" pack 1.28 + ./pack --build bootloader.bin unpack.bin 1.29 + ./pack x86test x86test.packed 1.30 + dd if=bootloader.bin of=x86test conv=notrunc 2> /dev/null 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/boot 1.37 + cp $src/x86test.packed $fs/boot/$PACKAGE 1.38 +} 1.39 + 1.40 +# Post install/remove commands for Tazpkg. 1.41 +post_install() 1.42 +{ 1.43 + grep -qs ^x86test $1/boot/bootmenu || 1.44 + echo "x86test X86test,cpu,x86 Check X86 CPU (may run under DOS if renamed to x86test.exe)" >> $1/boot/bootmenu 1.45 +}