From: Max Filippov Date: Mon, 10 Dec 2012 21:26:25 +0000 (+0400) Subject: xtensa: provide endianness macro for sparse X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72100ed7efac290f24bd90a5e7c8bc9f231d167d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git xtensa: provide endianness macro for sparse Signed-off-by: Max Filippov Signed-off-by: Chris Zankel --- diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 7e0ae8fd4da8..4a8a6ffb68ba 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))