diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-02-29 23:00:59 (GMT) |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2016-03-11 08:53:31 (GMT) |
commit | 4611bf7eb52599cb7549eed10f1ab609cbcdfa4b (patch) | |
tree | f3ef529fb4055d152dc99b02dd0e50a8951f5e8e | |
parent | a67cc9aa2dfc6e66addf240bbd79e16e01565e81 (diff) | |
download | linux-4611bf7eb52599cb7549eed10f1ab609cbcdfa4b.tar.xz |
xtensa: define CONFIG_CPU_{BIG,LITTLE}_ENDIAN
Query compiler for the CPU endianness and add corresponding definition
to KBUILD_CPPFLAGS. This allows using 'native-endian' property in DTS.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r-- | arch/xtensa/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 709b574..e541894 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -53,9 +53,11 @@ endif ifeq ($(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1) CHECKFLAGS += -D__XTENSA_EB__ +KBUILD_CPPFLAGS += -DCONFIG_CPU_BIG_ENDIAN endif ifeq ($(shell echo __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1) CHECKFLAGS += -D__XTENSA_EL__ +KBUILD_CPPFLAGS += -DCONFIG_CPU_LITTLE_ENDIAN endif vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) |