wok-6.x rev 13729
Add gputils
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 22 16:41:33 2012 +0100 (2012-12-22) |
parents | 6341d02298ae |
children | c4289b5fcf5d |
files | gputils/receipt syslinux/stuff/iso2exe/bootiso.S |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gputils/receipt Sat Dec 22 16:41:33 2012 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gputils" 1.7 +VERSION="0.14.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Tools for the Microchip (TM) PIC microcontrollers." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://gputils.sourceforge.net/" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.14 + 1.15 +DEPENDS="" 1.16 +BUILD_DEPENDS="" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && 1.23 + make && make DESTDIR=$DESTDIR install 1.24 +} 1.25 + 1.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.27 +genpkg_rules() 1.28 +{ 1.29 + cp -a $install/* $fs 1.30 +}
2.1 --- a/syslinux/stuff/iso2exe/bootiso.S Fri Dec 21 22:07:01 2012 +0100 2.2 +++ b/syslinux/stuff/iso2exe/bootiso.S Sat Dec 22 16:41:33 2012 +0100 2.3 @@ -19,7 +19,7 @@ 2.4 .word 0xFFF0 // Initial (relative) SS value 2.5 .word 0xFFFE // Initial SP value 2.6 .word 0 // Checksum 2.7 - .word EXEADRS(fixseg) // Initial IP value 2.8 + .word EXEADRS(exestart) // Initial IP value 2.9 .word 0xFFF0 // Initial (relative) CS value 2.10 .word 0x001C // File address of relocation table 2.11 .word 0 // Overlay number 2.12 @@ -104,8 +104,8 @@ 2.13 ////////////////////////////// DOS EXE code /////////////////////////////////// 2.14 2.15 help: 2.16 - .ascii "SliTaz GNU/Linux" 2.17 - .byte EXESTR(loader) 2.18 + .ascii "SliTaz GNU/L" // SliTaz GNU/Linux boot loader 2.19 + .byte EXESTR(iloader) 2.20 no386: 2.21 .ascii "No 386" // No 386+ 2.22 .byte EXESTR(plus) 2.23 @@ -122,16 +122,16 @@ 2.24 .ascii "Invalid: paging + " // Invalid: paging + real mode. 2.25 realmodemsg: 2.26 .ascii "real" // real mode. 2.27 -// ------------------------------------------------------------------- 2.28 +// --------------- Must be in 00A0 011F range ------------------------ 2.29 mode: 2.30 .ascii " mod" 2.31 eeol: 2.32 .ascii "e" 2.33 .byte EXESTR(eol) 2.34 noloader: 2.35 - .ascii "No" 2.36 -loader: 2.37 - .ascii " boot loader" 2.38 + .ascii "No isol" // No isolinux boot loader 2.39 +iloader: 2.40 + .ascii "inux boot loader" 2.41 eol: 2.42 .ascii "." 2.43 eol2: 2.44 @@ -143,52 +143,41 @@ 2.45 plus: 2.46 .ascii "+" 2.47 .byte EXESTR(eol2) 2.48 +// ------------------------------------------------------------------- 2.49 2.50 -fixseg: 2.51 +exestart: 2.52 cld 2.53 movw $0x100, %si 2.54 movw -127(%si), %ax 2.55 - cwd 2.56 + cwd // clear dx 2.57 pushw %dx // dos exit 2.58 cmpw $0x2F20, %ax 2.59 - movb $EXESTR(help), %al 2.60 + movw $0x1000+EXESTR(help), %ax 2.61 je abort 2.62 + pushfw // save flags 2.63 + // bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 2.64 + // flags 0 NT IOPL OF DF IF TF SF ZF 0 AF 0 PF 1 CF 2.65 + // movb $0x10, %ah 2.66 + pushw %ax 2.67 + popfw // < 286 : flags[12..15] are forced 1 2.68 + pushfw // = 286 : flags[12..15] are forced 0 2.69 + popw %cx // > 286 : only flags[15] is forced 0 2.70 + popfw // restore flags 2.71 + addb %ah, %ch // test F0 and 00 cases 2.72 + cmpb %ah, %ch 2.73 + movb $EXESTR(no386), %al 2.74 + jbe abort // C=8086/80186, Z=80286 2.75 +#if 1 2.76 movw (%si), %cx 2.77 - jcxz skip 2.78 + jcxz is386 2.79 +#endif 2.80 movw $0x7FE0/2, %cx 2.81 chklp: 2.82 lodsw 2.83 addw %ax, %dx 2.84 loop chklp 2.85 - orw %dx, %dx 2.86 movb $EXESTR(chkerr), %al 2.87 - jne abort 2.88 -skip: 2.89 - pushfw // save flags 2.90 - // bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 2.91 - // flags 0 NT IOPL OF DF IF TF SF ZF 0 AF 0 PF 1 CF 2.92 - movb $0x70, %ah 2.93 - pushw %ax 2.94 - popfw // < 286 : flags[12..15] are forced 1 2.95 - pushfw // = 286 : flags[12..15] are forced 0 2.96 - popw %ax // > 286 : only flags[15] is forced 0 2.97 - popfw // restore flags 2.98 - addb $0x10, %ah // test F0 and 00 cases 2.99 - cmpb $0x10, %ah 2.100 - ja is386 // C=8086/80186, Z=80286 2.101 -#if 0 2.102 - jz is286 2.103 - xorw %bx, %bx 2.104 - movb (%bx), %dh 2.105 - decw %bx 2.106 - xorw %bx, (%bx) // 80186 write bytes at FFFF and 10000 2.107 - movw (%bx), %ax 2.108 - xorw %bx, (%bx) // 8086 write bytes at FFFF and 0000 2.109 - cmpw %ah, %dh 2.110 - jnz is186 2.111 -#endif 2.112 -NotSupported: 2.113 - movb $EXESTR(no386), %al 2.114 + je is386 // dx == 0 ? 2.115 abort: 2.116 puts: 2.117 movb $1, %ah