Kconfig 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. mainmenu "U-Boot $UBOOTVERSION Configuration"
  6. config UBOOTVERSION
  7. string
  8. option env="UBOOTVERSION"
  9. config KCONFIG_OBJDIR
  10. string
  11. option env="KCONFIG_OBJDIR"
  12. menu "General setup"
  13. config LOCALVERSION
  14. string "Local version - append to U-Boot release"
  15. depends on !SPL_BUILD
  16. help
  17. Append an extra string to the end of your U-Boot version.
  18. This will show up on your boot log, for example.
  19. The string you set here will be appended after the contents of
  20. any files with a filename matching localversion* in your
  21. object and source tree, in that order. Your total string can
  22. be a maximum of 64 characters.
  23. config LOCALVERSION_AUTO
  24. bool "Automatically append version information to the version string"
  25. depends on !SPL_BUILD
  26. default y
  27. help
  28. This will try to automatically determine if the current tree is a
  29. release tree by looking for git tags that belong to the current
  30. top of tree revision.
  31. A string of the format -gxxxxxxxx will be added to the localversion
  32. if a git-based tree is found. The string generated by this will be
  33. appended after any matching localversion* files, and after the value
  34. set in CONFIG_LOCALVERSION.
  35. (The actual string used here is the first eight characters produced
  36. by running the command:
  37. $ git rev-parse --verify HEAD
  38. which is done within the script "scripts/setlocalversion".)
  39. config CC_OPTIMIZE_FOR_SIZE
  40. bool "Optimize for size"
  41. depends on !SPL_BUILD
  42. default y
  43. help
  44. Enabling this option will pass "-Os" instead of "-O2" to gcc
  45. resulting in a smaller U-Boot image.
  46. This option is enabled by default for U-Boot.
  47. endmenu # General setup
  48. menu "Boot images"
  49. config SPL_BUILD
  50. bool
  51. depends on $KCONFIG_OBJDIR="spl" || $KCONFIG_OBJDIR="tpl"
  52. default y
  53. config TPL_BUILD
  54. bool
  55. depends on $KCONFIG_OBJDIR="tpl"
  56. default y
  57. config SPL
  58. bool
  59. prompt "Enable SPL" if !SPL_BUILD
  60. default y if SPL_BUILD
  61. help
  62. If you want to build SPL as well as the normal image, say Y.
  63. config TPL
  64. bool
  65. depends on SPL
  66. prompt "Enable TPL" if !SPL_BUILD
  67. default y if TPL_BUILD
  68. default n
  69. help
  70. If you want to build TPL as well as the normal image and SPL, say Y.
  71. config SYS_EXTRA_OPTIONS
  72. string "Extra Options (DEPRECATED)"
  73. depends on !SPL_BUILD
  74. help
  75. The old configuration infrastructure (= mkconfig + boards.cfg)
  76. provided the extra options field. If you have something like
  77. "HAS_BAR,BAZ=64", the optional options
  78. #define CONFIG_HAS
  79. #define CONFIG_BAZ 64
  80. will be defined in include/config.h.
  81. This option was prepared for the smooth migration from the old
  82. configuration to Kconfig. Since this option will be removed sometime,
  83. new boards should not use this option.
  84. endmenu # Boot images
  85. source "arch/Kconfig"
  86. source "common/Kconfig"
  87. source "dts/Kconfig"
  88. source "net/Kconfig"
  89. source "drivers/Kconfig"
  90. source "fs/Kconfig"
  91. source "lib/Kconfig"