diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-12-11 01:26:25 +0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-12-18 21:10:25 -0800 |
commit | 72100ed7efac290f24bd90a5e7c8bc9f231d167d (patch) | |
tree | e58121cc67a8d4a44d95238cfc3ee233bebbcd97 /arch/xtensa/Makefile | |
parent | ec747b21c7c709a712e5eee0b4d4326d755d58b5 (diff) | |
download | op-kernel-dev-72100ed7efac290f24bd90a5e7c8bc9f231d167d.zip op-kernel-dev-72100ed7efac290f24bd90a5e7c8bc9f231d167d.tar.gz |
xtensa: provide endianness macro for sparse
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r-- | arch/xtensa/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 7e0ae8f..4a8a6ff 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -54,6 +54,13 @@ ifneq ($(CONFIG_LD_NO_RELAX),) LDFLAGS := --no-relax endif +ifeq ($(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1) +CHECKFLAGS += -D__XTENSA_EB__ +endif +ifeq ($(shell echo -e __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1) +CHECKFLAGS += -D__XTENSA_EL__ +endif + vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) |