1
0

Config.in.endian 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_C6X \
  9. || ADK_TARGET_ARCH_MICROBLAZE \
  10. || ADK_TARGET_ARCH_MIPS \
  11. || ADK_TARGET_ARCH_MIPS64 \
  12. || ADK_TARGET_ARCH_NDS32 \
  13. || ADK_TARGET_ARCH_PPC64 \
  14. || ADK_TARGET_ARCH_SH \
  15. || ADK_TARGET_ARCH_XTENSA
  16. config ADK_TARGET_LITTLE_ENDIAN
  17. bool "little"
  18. config ADK_TARGET_BIG_ENDIAN
  19. bool "big"
  20. endchoice
  21. config ADK_TARGET_ENDIAN_SUFFIX
  22. string
  23. default "le" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_PPC64)
  24. default "el" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_MIPS || ADK_TARGET_ARCH_MIPS64 || ADK_TARGET_ARCH_MICROBLAZE)
  25. default "be" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_AARCH64)
  26. default "eb" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_ARC || ADK_TARGET_ARM || ADK_TARGET_ARCH_SH)
  27. config ADK_TARGET_ENDIAN
  28. string
  29. default "little" if ADK_TARGET_LITTLE_ENDIAN
  30. default "big" if ADK_TARGET_BIG_ENDIAN
  31. config ADK_JFFS2_OPTS
  32. string
  33. default "-l" if ADK_TARGET_LITTLE_ENDIAN
  34. default "-b" if ADK_TARGET_BIG_ENDIAN