Config.in.endian 1.9 KB

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