1
0

Config.in.endian 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_AARCH64 \
  19. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \
  20. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  21. || ADK_TARGET_SYSTEM_QEMU_MIPS \
  22. || ADK_TARGET_SYSTEM_QEMU_MIPS64 \
  23. || ADK_TARGET_SYSTEM_QEMU_SH \
  24. || ADK_TARGET_SYSTEM_QEMU_XTENSA
  25. config ADK_TARGET_WITH_LITTLE_ENDIAN
  26. bool "little"
  27. select ADK_TARGET_LITTLE_ENDIAN
  28. config ADK_TARGET_WITH_BIG_ENDIAN
  29. bool "big"
  30. select ADK_TARGET_BIG_ENDIAN
  31. endchoice
  32. config ADK_TARGET_LITTLE_ENDIAN
  33. bool
  34. config ADK_TARGET_BIG_ENDIAN
  35. bool
  36. config ADK_TARGET_ENDIAN_SUFFIX
  37. string
  38. default "le" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_PPC64)
  39. default "el" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_MIPS || ADK_TARGET_ARCH_MIPS64 || ADK_TARGET_ARCH_MICROBLAZE)
  40. default "be" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_AARCH64)
  41. default "eb" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_ARC || ADK_TARGET_ARM || ADK_TARGET_ARCH_SH)
  42. config ADK_TARGET_ENDIAN
  43. string
  44. default "little" if ADK_TARGET_LITTLE_ENDIAN
  45. default "big" if ADK_TARGET_BIG_ENDIAN
  46. config ADK_JFFS2_OPTS
  47. string
  48. default "-l" if ADK_TARGET_LITTLE_ENDIAN
  49. default "-b" if ADK_TARGET_BIG_ENDIAN