Config.in.abi.default 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. config ADK_TARGET_ABI
  4. string
  5. default "o32" if ADK_TARGET_ABI_O32
  6. default "n32" if ADK_TARGET_ABI_N32
  7. default "n64" if ADK_TARGET_ABI_N64
  8. default "32" if ADK_TARGET_ABI_32
  9. default "x32" if ADK_TARGET_ABI_X32
  10. default "eabihf" if ADK_TARGET_ARCH_ARM && ADK_TARGET_HARD_FLOAT
  11. default "eabi" if ADK_TARGET_ARCH_ARM
  12. config ADK_TARGET_MIPS_ABI
  13. depends on ADK_TARGET_ARCH_MIPS64
  14. string
  15. default "32" if ADK_TARGET_ABI_O32
  16. default "n32" if ADK_TARGET_ABI_N32
  17. default "64" if ADK_TARGET_ABI_N64
  18. config ADK_TARGET_LIBC_PATH
  19. string
  20. default "lib32" if ADK_TARGET_ABI_N32
  21. default "libx32" if ADK_TARGET_ABI_X32
  22. default "lib64" if ADK_TARGET_ABI_64 || ADK_TARGET_ABI_N64 \
  23. || ADK_TARGET_ARCH_AARCH64 \
  24. || ADK_TARGET_ARCH_SPARC64 \
  25. || ADK_TARGET_ARCH_PPC64 \
  26. || ADK_TARGET_ARCH_X86_64
  27. default "lib"
  28. config ADK_TARGET_ABI_CFLAGS
  29. string
  30. default "-mabi=32" if ADK_TARGET_ABI_O32
  31. default "-mabi=n32" if ADK_TARGET_ABI_N32
  32. default "-mabi=64" if ADK_TARGET_ABI_N64
  33. default "-m32" if ADK_TARGET_ABI_32
  34. default "-mx32" if ADK_TARGET_ABI_X32
  35. default "-m64" if ADK_TARGET_ABI_64