Re: [PATCH 11/23] sim/erc32: use AC_C_BIGENDIAN to probe for host endian.

Mike Frysinger
2015-02-17T09:19:34Z

[-- Attachment #1: Type: text/plain, Size: 960 bytes --]

On 17 Feb 2015 08:44, Jiri Gaisler wrote:
> Use AC_C_BIGENDIAN to probe for host endian during build, rather

the sim tree provides SIM_AC_OPTION_HOSTENDIAN which you should use instead.
then you can use WITH_HOST_BYTE_ORDER in the source and compare it to
LITTLE_ENDIAN or BIG_ENDIAN. just include <sim-config.h> for it.

> --- a/sim/erc32/Makefile.in
> +++ b/sim/erc32/Makefile.in
>
> # Circumvent Sun Make bug with VPATH.
> -erc32.o: erc32.c sis.h end.h
> -exec.o: exec.c sis.h end.h
> -float.o: float.c sis.h end.h
> -func.o: func.c sis.h end.h
> -help.o: help.c sis.h end.h
> -interf.o: interf.c sis.h end.h
> -sis.o: sis.c sis.h end.h
> +erc32.o: erc32.c sis.h
> +exec.o: exec.c sis.h
> +float.o: float.c sis.h
> +func.o: func.c sis.h
> +help.o: help.c sis.h
> +interf.o: interf.c sis.h
> +sis.o: sis.c sis.h

you should be able to delete all this stuff. the build system will generate the
deps for you now.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]