Config.sh 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/config-language.txt.
  4. #
  5. mainmenu "uClibc C Library Configuration"
  6. menu "Target Architecture Features and Options"
  7. config HAVE_ELF
  8. bool
  9. default y
  10. config C_SYMBOL_PREFIX
  11. string
  12. default ""
  13. config ARCH_CFLAGS
  14. string
  15. default ""
  16. config ARCH_LDFLAGS
  17. string
  18. default ""
  19. config LIBGCC_CFLAGS
  20. string
  21. default ""
  22. config HAVE_DOT_HIDDEN
  23. bool
  24. default y
  25. choice
  26. prompt "Target Processor Type"
  27. default CONFIG_SH4
  28. help
  29. This is the processor type of your CPU. This information is used for
  30. optimizing purposes, as well as to determine if your CPU has an MMU,
  31. an FPU, etc. If you pick the wrong CPU type, there is no guarantee
  32. that uClibc will work at all....
  33. Here are the available choices:
  34. - "SH2" Hitachi SH2
  35. - "SH3" Hitachi SH3
  36. - "SH4" Hitachi SH4
  37. - "SH5" Hitachi SH5
  38. config CONFIG_SH2
  39. bool "SH2"
  40. config CONFIG_SH3
  41. bool "SH3"
  42. config CONFIG_SH4
  43. bool "SH4"
  44. config CONFIG_SH5
  45. bool "SH5"
  46. endchoice
  47. choice
  48. prompt "Target Processor Endianness"
  49. default ARCH_LITTLE_ENDIAN
  50. help
  51. This is the endianness you wish to build use. Choose either Big
  52. Endian, or Little Endian.
  53. config ARCH_LITTLE_ENDIAN
  54. bool "Little Endian"
  55. config ARCH_BIG_ENDIAN
  56. bool "Big Endian"
  57. endchoice
  58. config ARCH_HAS_NO_MMU
  59. bool
  60. default y if CONFIG_SH2 || CONFIG_SH3
  61. config CPU_CFLAGS
  62. string
  63. default "-DHIOS -ml -m2" if CONFIG_SH2 && ARCH_LITTLE_ENDIAN
  64. default "-DHIOS -mb -m2" if CONFIG_SH2 && ARCH_BIG_ENDIAN
  65. default "-DHIOS -ml -m3" if CONFIG_SH3 && ARCH_LITTLE_ENDIAN
  66. default "-DHIOS -mb -m3" if CONFIG_SH3 && ARCH_BIG_ENDIAN
  67. default "-DHIOS -ml -m4" if CONFIG_SH4 && ARCH_LITTLE_ENDIAN
  68. default "-DHIOS -mb -m4" if CONFIG_SH4 && ARCH_BIG_ENDIAN
  69. default "-DHIOS -ml -m5" if CONFIG_SH5 && ARCH_LITTLE_ENDIAN
  70. default "-DHIOS -mb -m5" if CONFIG_SH5 && ARCH_BIG_ENDIAN
  71. source "extra/Configs/Config.in.arch"
  72. endmenu
  73. source "extra/Configs/Config.in"