Config.i386 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. choice
  8. prompt "Target Processor Type"
  9. default CONFIG_386
  10. help
  11. This is the processor type of your CPU. This information is used for
  12. optimizing purposes. To build a library that will run on all x86 CPU
  13. types (albeit not optimally fast), you can specify "386" here. If
  14. you pick anything other than "386", there is no guarantee that uClibc
  15. will even run on anything other than the selected processor type.
  16. Here are the settings recommended for greatest speed:
  17. - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI
  18. 486DLC/DLC2, UMC 486SX-S and NexGen Nx586. Only "386" kernels
  19. will run on a 386 class machine.
  20. - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or
  21. SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
  22. - "586" for Intel Pentium and other generic Pentium CPUs
  23. - "Pentium-MMX" for the Intel Pentium MMX.
  24. - "Pentium-Pro" for the Intel Pentium Pro/Celeron/Pentium II.
  25. - "Pentium-III" for the Intel Pentium III
  26. and Celerons based on the Coppermine core.
  27. - "Pentium-4" for the Intel Pentium 4.
  28. - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).
  29. - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).
  30. - "Crusoe" for the Transmeta Crusoe series.
  31. - "Winchip-C6" for original IDT Winchip.
  32. - "Winchip-2" for IDT Winchip 2.
  33. - "Winchip-2A" for IDT Winchips with 3dNow! capabilities.
  34. - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
  35. If you don't know what to do, choose "386".
  36. config CONFIG_386
  37. bool "386"
  38. config CONFIG_486
  39. bool "486"
  40. config CONFIG_586
  41. bool "Pentium/586/K5/5x86/6x86/6x86MX/Winchip-2A/Winchip-3"
  42. config CONFIG_586MMX
  43. bool "Pentium-MMX"
  44. config CONFIG_686
  45. bool "Pentium-Pro/Celeron/Pentium-II"
  46. config CONFIG_PENTIUMIII
  47. bool "Pentium-III/Celeron(Coppermine)"
  48. config CONFIG_PENTIUM4
  49. bool "Pentium-4"
  50. config CONFIG_K6
  51. bool "K6/K6-II/K6-III"
  52. config CONFIG_K7
  53. bool "Athlon/Duron/K7"
  54. config CONFIG_CRUSOE
  55. bool "Crusoe"
  56. config CONFIG_WINCHIPC6
  57. bool "Winchip-C6"
  58. config CONFIG_WINCHIP2
  59. bool "Winchip-2"
  60. config CONFIG_CYRIXIII
  61. bool "CyrixIII/VIA-C3"
  62. endchoice
  63. config CPU_CFLAGS
  64. string
  65. default "-march=i386" if CONFIG_386
  66. default "-march=i486" if CONFIG_486
  67. default "-march=i586" if CONFIG_586
  68. default "$(call check_gcc,-march=pentium-mmx,-march=i586)" if CONFIG_586MMX
  69. default "-march=i686" if CONFIG_686
  70. default "$(call check_gcc,-march=pentium3,-march=i686)" if CONFIG_PENTIUMIII
  71. default "$(call check_gcc,-march=pentium4,-march=i686)" if CONFIG_PENTIUM4
  72. default "$(call check_gcc,-march=k6,-march=i586)" if CONFIG_K6
  73. default "$(call check_gcc,-march=athlon,-march=i686 -malign-functions=4)" if CONFIG_K7
  74. default "-march=i686 -malign-functions=0 -malign-jumps=0 -malign-loops=0" if CONFIG_CRUSOE
  75. default "$(call check_gcc,-march=winchip-c6,-march=i586)" if CONFIG_WINCHIPC6
  76. default "$(call check_gcc,-march=winchip2,-march=i586)" if CONFIG_WINCHIP2
  77. default "$(call check_gcc,-march=c3,-march=i586)" if CONFIG_CYRIXIII
  78. source "extra/Configs/Config.in.arch"
  79. endmenu
  80. source "extra/Configs/Config.in"