Config.in.binfmt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 "Binary format"
  5. depends on ADK_TARGET_OS_LINUX && !ADK_TARGET_CHOOSE_ARCH
  6. config ADK_TARGET_BINFMT_ELF
  7. bool "ELF"
  8. select ADK_TARGET_USE_STATIC_LIBS_ONLY if !ADK_TARGET_WITH_MMU
  9. depends on ADK_TARGET_WITH_MMU || ADK_TARGET_ARCH_ARM || \
  10. ADK_TARGET_ARCH_M68K || ADK_TARGET_ARCH_RISCV32 || ADK_TARGET_ARCH_RISCV64
  11. config ADK_TARGET_BINFMT_FLAT
  12. bool "FLAT"
  13. select BUSYBOX_NOMMU
  14. select ADK_TARGET_UCLINUX if ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_ARM
  15. depends on ADK_TARGET_LIB_UCLIBC_NG
  16. depends on !ADK_TARGET_WITH_MMU
  17. depends on ADK_TARGET_ARCH_ARM || ADK_TARGET_ARCH_M68K || ADK_TARGET_ARCH_SH || ADK_TARGET_ARCH_XTENSA \
  18. || ADK_TARGET_ARCH_H8300 || ADK_TARGET_ARCH_LM32 || ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_RISCV64 \
  19. || ADK_TARGET_ARCH_RISCV32
  20. config ADK_TARGET_BINFMT_FDPIC
  21. bool "FDPIC"
  22. select BUSYBOX_NOMMU
  23. depends on ADK_TARGET_ARCH_ARM || ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_FRV || ADK_TARGET_ARCH_SH \
  24. || ADK_TARGET_ARCH_XTENSA
  25. depends on !ADK_TARGET_WITH_MMU
  26. config ADK_TARGET_BINFMT_DSBT
  27. bool "DSBT"
  28. select BUSYBOX_NOMMU
  29. depends on ADK_TARGET_ARCH_C6X
  30. endchoice
  31. # Set up flat binary type
  32. choice
  33. prompt "FLAT Binary type"
  34. depends on ADK_TARGET_BINFMT_FLAT && (ADK_TARGET_ARCH_M68K || ADK_TARGET_ARCH_BFIN)
  35. default ADK_TARGET_BINFMT_FLAT_ONE
  36. config ADK_TARGET_BINFMT_FLAT_ONE
  37. bool "One memory region"
  38. depends on ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_M68K
  39. help
  40. All segments are linked into one memory region.
  41. config ADK_TARGET_BINFMT_FLAT_SEP_DATA
  42. bool "Separate data and code region"
  43. depends on ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_M68K
  44. help
  45. Allow for the data and text segments to be separated and placed in
  46. different regions of memory.
  47. endchoice
  48. source "target/config/Config.in.elf2flt"
  49. config ADK_TARGET_BINFMT
  50. string
  51. depends on !ADK_TARGET_WITH_MMU
  52. default "elf" if ADK_TARGET_BINFMT_ELF
  53. default "flat" if ADK_TARGET_BINFMT_FLAT
  54. default "fdpic" if ADK_TARGET_BINFMT_FDPIC