1
0

Config.in.endian 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. choice ADK_TARGET_ENDIAN_MODE
  4. prompt "Endianess"
  5. depends on ADK_TARGET_ARCH_ARC \
  6. || ADK_TARGET_ARCH_AARCH64 \
  7. || ADK_TARGET_ARCH_ARM \
  8. || ADK_TARGET_ARCH_CSKY \
  9. || ADK_TARGET_ARCH_C6X \
  10. || ADK_TARGET_ARCH_MICROBLAZE \
  11. || ADK_TARGET_ARCH_MIPS \
  12. || ADK_TARGET_ARCH_MIPS64 \
  13. || ADK_TARGET_ARCH_NDS32 \
  14. || ADK_TARGET_ARCH_PPC64 \
  15. || ADK_TARGET_ARCH_SH \
  16. || ADK_TARGET_ARCH_XTENSA
  17. config ADK_TARGET_LITTLE_ENDIAN
  18. bool "little"
  19. config ADK_TARGET_BIG_ENDIAN
  20. bool "big"
  21. endchoice
  22. config ADK_TARGET_ENDIAN_SUFFIX
  23. string
  24. default "le" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_PPC64)
  25. default "el" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_MIPS || ADK_TARGET_ARCH_MIPS64 || ADK_TARGET_ARCH_MICROBLAZE)
  26. default "be" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_AARCH64)
  27. default "eb" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_ARC || ADK_TARGET_ARM || ADK_TARGET_ARCH_SH)
  28. config ADK_TARGET_ENDIAN
  29. string
  30. default "little" if ADK_TARGET_LITTLE_ENDIAN
  31. default "big" if ADK_TARGET_BIG_ENDIAN
  32. config ADK_JFFS2_OPTS
  33. string
  34. default "-l" if ADK_TARGET_LITTLE_ENDIAN
  35. default "-b" if ADK_TARGET_BIG_ENDIAN