wok-tiny view 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 source
1 # SliTaz package receipt.
3 PACKAGE="x86test"
4 VERSION="0.10a"
5 CATEGORY="base-system"
6 SHORT_DESC="CPU failures detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.slitaz.org/"
10 TARGET="i486"
12 BUILD_DEPENDS="xz"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $src && cd $src
18 cp $stuff/x86test $stuff/*.S $stuff/pack .
19 sed -i '/#define ONLY8086/d' unpack.S
20 for i in bootloader unpack ; do
21 cc -o $i.o -Wa,-a=$i.lst -c $i.S
22 objcopy -O binary $i.o $i.bin
23 done
24 sed -i "s/VERSION/$VERSION/" pack
25 ./pack --build bootloader.bin unpack.bin
26 ./pack x86test x86test.packed
27 dd if=bootloader.bin of=x86test conv=notrunc 2> /dev/null
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/boot
34 cp $src/x86test.packed $fs/boot/$PACKAGE
35 }
37 # Post install/remove commands for Tazpkg.
38 post_install()
39 {
40 grep -qs ^x86test $1/boot/bootmenu ||
41 echo "x86test X86test,cpu,x86 Check X86 CPU (may run under DOS if renamed to x86test.exe)" >> $1/boot/bootmenu
42 }