wok-current rev 16179
8086tiny: fix build for arm (no graphic dont build...)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 30 17:45:53 2014 +0200 (2014-03-30) |
parents | 7488364630bc |
children | 96ae8ed67efc |
files | 8086tiny/receipt |
line diff
1.1 --- a/8086tiny/receipt Sun Mar 30 16:34:03 2014 +0000 1.2 +++ b/8086tiny/receipt Sun Mar 30 17:45:53 2014 +0200 1.3 @@ -12,36 +12,43 @@ 1.4 HOST_ARCH="i486 arm" 1.5 1.6 DEPENDS="libsdl" 1.7 -BUILD_DEPENDS="nasm libsdl-dev" 1.8 +BUILD_DEPENDS="libsdl-dev nasm" 1.9 1.10 # Handle cross compilation. 1.11 case "$ARCH" in 1.12 - arm*) 1.13 - BUILD_DEPENDS="libsdl-dev" ;; 1.14 + arm*) BUILD_DEPENDS="libsdl-dev" ;; 1.15 esac 1.16 1.17 # Rules to configure and make the package. 1.18 compile_rules() 1.19 { 1.20 - make CC=gcc no_graphics && 1.21 - mv 8086tiny 8086tiny.nographics && 1.22 - make CC=gcc && 1.23 case "$ARCH" in 1.24 + i?86) 1.25 + make CC=gcc no_graphics && 1.26 + mv 8086tiny 8086tiny.nographics && 1.27 + make CC=gcc && 1.28 + nasm bios_source/bios.asm ;; 1.29 arm*) 1.30 - cp bios bios_source/ ;; 1.31 - *) 1.32 - nasm bios_source/bios.asm ;; 1.33 + make CC=${HOST_SYSTEM}-gcc 8086tiny_slowcpu 1.34 + nasm bios_source/bios.asm && 1.35 + echo "Skipping: strip: Unable to recognise the format" ;; 1.36 esac 1.37 } 1.38 1.39 +# SliTaz package testsuite 1.40 +testsuite() { 1.41 + readelf -Ah ${src}/8086tiny 1.42 +} 1.43 + 1.44 # Rules to gen a SliTaz package suitable for Tazpkg. 1.45 genpkg_rules() 1.46 { 1.47 mkdir -p $fs/usr/bin $fs/usr/share/8086tiny 1.48 cp -a $src/8086tiny $fs/usr/bin 1.49 - cp -a $src/8086tiny.nographics $fs/usr/bin 1.50 + [ -x "$src/8086tiny.nographics" ] && \ 1.51 + cp -a $src/8086tiny.nographics $fs/usr/bin 1.52 cp -a $src/bios_source/bios $fs/usr/share/8086tiny 1.53 - cat > $fs/usr/bin//8086tiny.sh <<EOT 1.54 + cat > $fs/usr/bin/8086tiny.sh <<EOT 1.55 #!/bin/sh 1.56 1.57 if [ ! -e "\$1" ]; then