On Sun, 30 Mar 2014 13:13:29 +0100
Ian Campbell <i...@hellion.org.uk> wrote:

> On Fri, 2014-03-28 at 12:42 +0200, Siarhei Siamashka wrote:
> >     https://github.com/ssvb/lima-memtester
> 
> I needed the following to get it to build on my Debian rootfs.

Thanks for the fix, pushed to github.

> (and it turns out I can't run it anyway since I'm running a mainline
> kernel and haven't figured out mali.ko yet, for another time I think)

Yes, right now it needs sunxi-3.4 kernel, which is a bit more feature
complete at the moment. That's a good point, appears that readme.txt
also needs to be improved for more clarity.

In the mainline kernel we first need a display driver (sunxi-kms?),
which would provide emulation of the linux framebuffer interface among
other things. And then, I guess, the mali400 kernel driver could
be used with a bit of adaptation.

> ---------8<---------------
> 
> From 72624b5d665e576057a3a869117014ae6a998578 Mon Sep 17 00:00:00 2001
> From: Ian Campbell <i...@hellion.org.uk>
> Date: Sun, 30 Mar 2014 13:09:55 +0100
> Subject: [PATCH] Remove bashisms from scripts
> 
> [ "a" == "b" ] is a bashism, the portable alternative is [ "a" = "b" ].
> 
> Fixes the following issue on Debian where /bin/sh == dash:
> 
>     # ./build-lima-memtester-static-binary.sh
>     ./build-lima-memtester-static-binary.sh: 3: [: x: unexpected operator
>     ./build-lima-memtester-static-binary.sh: 11: 
> ./build-lima-memtester-static-binary.sh: -DHAVE_NO_LIBMALI_BLOB: not found
> 
> The alternative would be to explicitly use #!/bin/bash in the script but since
> the fix is trivial we might as well make it.
> 
> Signed-off-by: Ian Campbell <i...@hellion.org.uk>
> ---
>  build-lima-memtester-static-binary.sh | 2 +-
>  build-textured-cube-static-binary.sh  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/build-lima-memtester-static-binary.sh 
> b/build-lima-memtester-static-binary.sh
> index e84e51b..d253cbb 100755
> --- a/build-lima-memtester-static-binary.sh
> +++ b/build-lima-memtester-static-binary.sh
> @@ -1,6 +1,6 @@
>  #!/bin/sh
>  
> -if [ x$CC == "x" ]
> +if [ x$CC = "x" ]
>  then
>      echo Note: using 'gcc' as a compiler. But it is possible to do something
>      echo like \'export CC=foobar\' to override this.
> diff --git a/build-textured-cube-static-binary.sh 
> b/build-textured-cube-static-binary.sh
> index 61f3e95..cc9f5d0 100755
> --- a/build-textured-cube-static-binary.sh
> +++ b/build-textured-cube-static-binary.sh
> @@ -1,6 +1,6 @@
>  #!/bin/sh
>  
> -if [ x$CC == "x" ]
> +if [ x$CC = "x" ]
>  then
>      echo Note: using 'gcc' as a compiler. But it is possible to do something
>      echo like \'export CC=foobar\' to override this.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to