wok-6.x rev 24068

linld: add cpu detection (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 18:07:57 2021 +0000 (2021-07-05)
parents 06547d8cf241
children 7e911016a644
files e2fsprogs/receipt kmod/receipt linld/stuff/src/COMMON.H linld/stuff/src/XMM.ASM
line diff
     1.1 --- a/e2fsprogs/receipt	Mon Jul 05 15:05:16 2021 +0000
     1.2 +++ b/e2fsprogs/receipt	Mon Jul 05 18:07:57 2021 +0000
     1.3 @@ -22,6 +22,12 @@
     1.4  	arm) BUILD_DEPENDS="" ;;
     1.5  esac
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git 2>/dev/null | \
    1.10 +	sed '1,/Download/d;s|.*h=v||;s|.>.*||;q'
    1.11 +}
    1.12 +
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
     2.1 --- a/kmod/receipt	Mon Jul 05 15:05:16 2021 +0000
     2.2 +++ b/kmod/receipt	Mon Jul 05 18:07:57 2021 +0000
     2.3 @@ -20,6 +20,12 @@
     2.4  	arm) BUILD_DEPENDS="wget zlib-dev liblzma-dev" ;;
     2.5  esac
     2.6  
     2.7 +current_version()
     2.8 +{
     2.9 +	wget -O - $WEB_SITE 2>/dev/null | \
    2.10 +	sed '/tar.xz/!d;s|.*>kmod-||;s|.tar.*||' X | sort -n -r | sed q
    2.11 +}
    2.12 +
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
     3.1 --- a/linld/stuff/src/COMMON.H	Mon Jul 05 15:05:16 2021 +0000
     3.2 +++ b/linld/stuff/src/COMMON.H	Mon Jul 05 18:07:57 2021 +0000
     3.3 @@ -110,8 +110,8 @@
     3.4  #define topmem		(cmdnum[2])
     3.5  #define base_himem	(cmdnum[3])
     3.6  #ifdef CPUTYPE
     3.7 +#define mincpu		(* (short *) &cmdnum[4])
     3.8  #define	skip_alloc	(* (char *) &cmdnum[5])
     3.9 -#define mincpu		(* (short *) &cmdnum[6])
    3.10  extern unsigned cputype;
    3.11  #else
    3.12  #define	skip_alloc	(* (char *) &cmdnum[4])
     4.1 --- a/linld/stuff/src/XMM.ASM	Mon Jul 05 15:05:16 2021 +0000
     4.2 +++ b/linld/stuff/src/XMM.ASM	Mon Jul 05 18:07:57 2021 +0000
     4.3 @@ -63,7 +63,11 @@
     4.4          proc    @xmm_alloc$qp11image_himem near
     4.5  
     4.6  		extrn	_cmdnum:dword
     4.7 +	ifdef	CPUTYPE
     4.8 +skip_alloc	=	(byte _cmdnum+20)
     4.9 +	else
    4.10  skip_alloc	=	(byte _cmdnum+16)
    4.11 +	endif
    4.12  LARGE_XMM_ALLOC	=	1
    4.13  		ifdef	LARGE_XMM_ALLOC
    4.14                  mov     ch,89h          ;allocate blk of EDX kilobytes