diff options
Diffstat (limited to 'arch/xtensa')
-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 7e0ae8fd4da8..4a8a6ffb68ba 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -54,6 +54,13 @@ ifneq ($(CONFIG_LD_NO_RELAX),) | |||
54 | LDFLAGS := --no-relax | 54 | LDFLAGS := --no-relax |
55 | endif | 55 | endif |
56 | 56 | ||
57 | ifeq ($(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1) | ||
58 | CHECKFLAGS += -D__XTENSA_EB__ | ||
59 | endif | ||
60 | ifeq ($(shell echo -e __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1) | ||
61 | CHECKFLAGS += -D__XTENSA_EL__ | ||
62 | endif | ||
63 | |||
57 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) | 64 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) |
58 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) | 65 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) |
59 | 66 | ||