Config.in.endian 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_SYSTEM_GENERIC_ARC \
  6. || ADK_TARGET_SYSTEM_GENERIC_AARCH64 \
  7. || ADK_TARGET_SYSTEM_GENERIC_ARM \
  8. || ADK_TARGET_SYSTEM_GENERIC_CSKY \
  9. || ADK_TARGET_SYSTEM_GENERIC_C6X \
  10. || ADK_TARGET_SYSTEM_GENERIC_MICROBLAZE \
  11. || ADK_TARGET_SYSTEM_GENERIC_MIPS \
  12. || ADK_TARGET_SYSTEM_GENERIC_MIPS64 \
  13. || ADK_TARGET_SYSTEM_GENERIC_NDS32 \
  14. || ADK_TARGET_SYSTEM_GENERIC_PPC64 \
  15. || ADK_TARGET_SYSTEM_GENERIC_SH \
  16. || ADK_TARGET_SYSTEM_GENERIC_XTENSA \
  17. || ADK_TARGET_SYSTEM_SYNOPSYS_NSIM \
  18. || ADK_TARGET_SYSTEM_QEMU_ARC \
  19. || ADK_TARGET_SYSTEM_QEMU_AARCH64 \
  20. || ADK_TARGET_SYSTEM_QEMU_CSKY \
  21. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \
  22. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  23. || ADK_TARGET_SYSTEM_QEMU_MIPS \
  24. || ADK_TARGET_SYSTEM_QEMU_MIPS64 \
  25. || ADK_TARGET_SYSTEM_QEMU_PPC64 \
  26. || ADK_TARGET_SYSTEM_QEMU_SH \
  27. || ADK_TARGET_SYSTEM_QEMU_XTENSA
  28. config ADK_TARGET_WITH_LITTLE_ENDIAN
  29. bool "little"
  30. select ADK_TARGET_LITTLE_ENDIAN
  31. config ADK_TARGET_WITH_BIG_ENDIAN
  32. bool "big"
  33. select ADK_TARGET_BIG_ENDIAN
  34. endchoice
  35. config ADK_TARGET_LITTLE_ENDIAN
  36. bool
  37. config ADK_TARGET_BIG_ENDIAN
  38. bool
  39. config ADK_TARGET_ENDIAN_SUFFIX
  40. string
  41. default "le" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_PPC64)
  42. default "el" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_MIPS || ADK_TARGET_ARCH_MIPS64 || ADK_TARGET_ARCH_MICROBLAZE)
  43. default "be" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_AARCH64)
  44. default "eb" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_ARC || ADK_TARGET_ARM || ADK_TARGET_ARCH_SH)
  45. config ADK_TARGET_ENDIAN
  46. string
  47. default "little" if ADK_TARGET_LITTLE_ENDIAN
  48. default "big" if ADK_TARGET_BIG_ENDIAN
  49. config ADK_JFFS2_OPTS
  50. string
  51. default "-l" if ADK_TARGET_LITTLE_ENDIAN
  52. default "-b" if ADK_TARGET_BIG_ENDIAN