Endianness in Makefile?

Is there a way to find out endianness in a Makefile? I need to differentiate between little and big.

ifeq ($(CONFIG_BIG_ENDIAN),y)

or

ifneq ($(CONFIG_BIG_ENDIAN),y)

etc

1 Like

Thanks! That is a much better way than I wanted to do this. xD

1 Like