Kconfig.build 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. #--------------------------------
  2. # Build options
  3. #--------------------------------
  4. menu "Build options"
  5. config BIN_FILENAME
  6. string "System BIN filename"
  7. default "S2TV.bin"
  8. config SUPPORT_NVM_PRELOAD
  9. bool
  10. prompt "Support nvm (user data) preload feature"
  11. default n
  12. help
  13. Stuffer user data with prescan chanel, default setting, etc.
  14. config RECOVER_BOOT_SHARE_DATA
  15. bool
  16. prompt "Recover boot share data"
  17. default n
  18. help
  19. Recover boot setting data when data lose.
  20. config SUPPORT_NVM_PQSETTING_PRELOAD
  21. bool
  22. depends on SUPPORT_NVM_PRELOAD
  23. prompt "Support nvm pq setting (user data) preload feature"
  24. default n
  25. help
  26. Stuffer user data with factory menu picture setting.
  27. config SUPPORT_USB_UPGRADE_RESERVENVM
  28. bool
  29. prompt "SUPPORT_USB_UPGRADE_RESERVENVM"
  30. default n
  31. help
  32. The tool will auto update version by MD5(data setting and data setting struct
  33. MD5 is 32byte, so we must modify app_data_setting.h; and add __attribute__((section(.DATASETTING))) in app_data_setting.c
  34. config DISABLE_PWM_SETTING_IN_PANELSET
  35. bool
  36. prompt "DISABLE PWM SETTING IN PANELSET"
  37. default n
  38. if(DISABLE_PWM_SETTING_IN_PANELSET)
  39. config BACKLIGHT_MAX_CURRENT
  40. int "MAX ELECTRICITY(mA)"
  41. default 900
  42. config BACKLIGHT_MIN_CURRENT
  43. int "Set the percentage of Max electricity for Min electricity (%)"
  44. default 15
  45. endif
  46. choice
  47. prompt "gcc debug level"
  48. default BR2_DEBUG_2
  49. help
  50. Set the debug level for gcc
  51. config BR2_DEBUG_1
  52. bool "debug level 1"
  53. help
  54. Debug level 1 produces minimal information, enough
  55. for making backtraces in parts of the program that
  56. you don't plan to debug. This includes descriptions
  57. of functions and external variables, but no information
  58. about local variables and no line numbers.
  59. config BR2_DEBUG_2
  60. bool "debug level 2"
  61. help
  62. The default gcc debug level is 2
  63. config BR2_DEBUG_3
  64. bool "debug level 3"
  65. help
  66. Level 3 includes extra information, such as all the
  67. macro definitions present in the program. Some debuggers
  68. support macro expansion when you use -g3.
  69. endchoice
  70. choice
  71. prompt "gcc optimization level"
  72. default BR2_OPTIMIZE_S
  73. help
  74. Set the optimization level for gcc
  75. config BR2_OPTIMIZE_0
  76. bool "optimization level 0"
  77. help
  78. Do not optimize. This is the default.
  79. config BR2_OPTIMIZE_1
  80. bool "optimization level 1"
  81. help
  82. Optimize. Optimizing compilation takes somewhat more time,
  83. and a lot more memory for a large function. With -O, the
  84. compiler tries to reduce code size and execution time,
  85. without performing any optimizations that take a great deal
  86. of compilation time. -O turns on the following optimization
  87. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  88. -fcprop-registers -floop-optimize -fif-conversion
  89. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  90. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  91. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  92. -O also turns on -fomit-frame-pointer on machines where doing
  93. so does not interfere with debugging.
  94. config BR2_OPTIMIZE_2
  95. bool "optimization level 2"
  96. help
  97. Optimize even more. GCC performs nearly all supported optimizations
  98. that do not involve a space-speed tradeoff. The compiler does not
  99. perform loop unrolling or function inlining when you specify -O2.
  100. As compared to -O, this option increases both compilation time and
  101. the performance of the generated code. -O2 turns on all optimization
  102. flags specified by -O. It also turns on the following optimization
  103. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  104. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  105. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  106. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  107. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  108. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  109. -freorder-functions -falign-functions -falign-jumps -falign-loops
  110. -falign-labels -ftree-vrp -ftree-pre
  111. Please note the warning under -fgcse about invoking -O2 on programs
  112. that use computed gotos.
  113. config BR2_OPTIMIZE_3
  114. bool "optimization level 3"
  115. help
  116. Optimize yet more. -O3 turns on all optimizations specified by -O2
  117. and also turns on the -finline-functions, -funswitch-loops and
  118. -fgcse-after-reload options.
  119. config BR2_OPTIMIZE_S
  120. bool "optimize for size"
  121. help
  122. Optimize for size. -Os enables all -O2 optimizations that do not
  123. typically increase code size. It also performs further optimizations
  124. designed to reduce code size. -Os disables the following optimization
  125. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  126. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  127. -ftree-vect-loop-version
  128. endchoice
  129. config USE_CCACHE
  130. bool
  131. prompt "Enable ccache support"
  132. default y
  133. help
  134. ccache is a compiler cache. It speeds up recompilation by caching
  135. previous compilations and detecting when the same compilation is
  136. being done again.
  137. config GCC473
  138. bool
  139. prompt "Toolchain gcc4.7.3"
  140. default n
  141. help
  142. use gcc 4.7.3
  143. config GCC540
  144. bool
  145. prompt "Toolchain gcc5.4.0"
  146. default n
  147. help
  148. use gcc 5.4.0
  149. menu "Debug Options"
  150. config SUPPORT_DEBUG_MESSAGE
  151. bool
  152. prompt "Support debug message"
  153. default n
  154. help
  155. debug message.
  156. Disabling this option saves lots of code size.
  157. config SUPPORT_DEBUG_BOOT
  158. bool
  159. prompt "Support doskey for boot"
  160. default n
  161. help
  162. Only work in booting menu.
  163. If unsure, say N
  164. config DEBUG_DRV_CEC_WRITE_EN
  165. bool
  166. prompt "Enable driver cec_write function"
  167. default n
  168. config DEBUG_DRV_HDMI_WRITE_EN
  169. bool
  170. prompt "Enable driver hdmi_write function"
  171. default n
  172. config SYSTEM_WATCHDOG_DISABLE
  173. bool "Disable system watchdog"
  174. default n
  175. help
  176. Enable system watchdog which triggers system reset while there is
  177. abnormal behavior in the sytem such as RISC exception.
  178. config DEBUG_UART_MODE_EN
  179. bool "Set Factory Setting: UART DEBUG = On"
  180. default n
  181. help
  182. Chip after 531 have to set this OFF to avoid PC EDID colliosion with UART.
  183. config FS2_ENABLE
  184. bool
  185. prompt "Enable FS2 debug"
  186. default n
  187. help
  188. If unsure, say N
  189. config UARTB_DEBUG
  190. bool
  191. prompt "UARTB as debug port"
  192. default n
  193. help
  194. Special method for debugging PC.
  195. If unsure, say N
  196. endmenu # "Debug Options"
  197. endmenu # Build options