]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: move CONFIG_CPU_*_ENDIAN defines to Kconfig
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 13 Mar 2021 12:23:41 +0000 (21:23 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 4 Apr 2021 22:39:02 +0000 (15:39 -0700)
commit7979d091659f23213dc2f016b3ae0a97f2d31bc2
tree2fbbc7d8c1a718c1b6e5efa53b154aaa135fdb42
parente700b25a597e39647a4a380b5e8511389f617b2d
xtensa: move CONFIG_CPU_*_ENDIAN defines to Kconfig

Move the definition of CONFIG_CPU_*_ENDIAN to Kconfig, the best place
for CONFIG options.

I slightly simplified the test code. You can use the -P option to suppress
linemarker generation. The grep command is unneeded.

  $ echo __XTENSA_EB__ | xtensa-linux-gcc -E -
  # 1 "<stdin>"
  # 1 "<built-in>"
  # 1 "<command-line>"
  # 1 "<stdin>"
  1

  $ echo __XTENSA_EB__ | xtensa-linux-gcc -E -P -
  1

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Message-Id: <20210313122342.69995-1-masahiroy@kernel.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/Makefile
arch/xtensa/boot/Makefile
arch/xtensa/boot/boot-elf/Makefile
arch/xtensa/boot/boot-redboot/Makefile