1
0

Config.in.abi 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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
  4. prompt "ABI"
  5. depends on ADK_TARGET_ARCH_MIPS64
  6. config ADK_TARGET_ABI_N32
  7. bool "N32 ABI"
  8. config ADK_TARGET_ABI_N64
  9. bool "N64 ABI"
  10. config ADK_TARGET_ABI_O32
  11. bool "O32 ABI"
  12. endchoice
  13. choice
  14. prompt "ABI"
  15. depends on ADK_TARGET_ARCH_X86_64 && \
  16. (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_MUSL)
  17. config ADK_TARGET_ABI_64
  18. bool "64 Bit ABI"
  19. config ADK_TARGET_ABI_X32
  20. bool "x32 ABI"
  21. endchoice
  22. config ADK_TARGET_ABI
  23. string
  24. default "o32" if ADK_TARGET_ABI_O32
  25. default "n32" if ADK_TARGET_ABI_N32
  26. default "n64" if ADK_TARGET_ABI_N64
  27. default "32" if ADK_TARGET_ABI_32
  28. default "x32" if ADK_TARGET_ABI_X32
  29. default "eabihf" if ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  30. default "eabi" if ADK_TARGET_ARCH_ARM
  31. config ADK_TARGET_MIPS_ABI
  32. depends on ADK_TARGET_ARCH_MIPS64
  33. string
  34. default "32" if ADK_TARGET_ABI_O32
  35. default "n32" if ADK_TARGET_ABI_N32
  36. default "64" if ADK_TARGET_ABI_N64
  37. config ADK_TARGET_LIBC_PATH
  38. string
  39. default "lib32" if ADK_TARGET_ABI_N32
  40. default "libx32" if ADK_TARGET_ABI_X32
  41. default "lib64" if ADK_TARGET_ABI_64 || ADK_TARGET_ABI_N64 \
  42. || ADK_TARGET_ARCH_AARCH64 \
  43. || ADK_TARGET_ARCH_SPARC64 \
  44. || ADK_TARGET_ARCH_PPC64 \
  45. || ADK_TARGET_ARCH_X86_64
  46. default "lib"
  47. config ADK_TARGET_ABI_CFLAGS
  48. string
  49. default "-mabi=32" if ADK_TARGET_ABI_O32
  50. default "-mabi=n32" if ADK_TARGET_ABI_N32
  51. default "-mabi=64" if ADK_TARGET_ABI_N64
  52. default "-m32" if ADK_TARGET_ABI_32
  53. default "-mx32" if ADK_TARGET_ABI_X32
  54. default "-m64" if ADK_TARGET_ABI_64