123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- #--------------------------------
- # Build options
- #--------------------------------
- menu "Build options"
- config BIN_FILENAME
- string "System BIN filename"
- default "S2TV.bin"
-
- config SUPPORT_NVM_PRELOAD
- bool
- prompt "Support nvm (user data) preload feature"
- default n
- help
- Stuffer user data with prescan chanel, default setting, etc.
- config RECOVER_BOOT_SHARE_DATA
- bool
- prompt "Recover boot share data"
- default n
- help
- Recover boot setting data when data lose.
-
- config SUPPORT_NVM_PQSETTING_PRELOAD
- bool
- depends on SUPPORT_NVM_PRELOAD
- prompt "Support nvm pq setting (user data) preload feature"
- default n
- help
- Stuffer user data with factory menu picture setting.
- config SUPPORT_USB_UPGRADE_RESERVENVM
- bool
- prompt "SUPPORT_USB_UPGRADE_RESERVENVM"
- default n
- help
- The tool will auto update version by MD5(data setting and data setting struct
- MD5 is 32byte, so we must modify app_data_setting.h; and add __attribute__((section(.DATASETTING))) in app_data_setting.c
-
- config DISABLE_PWM_SETTING_IN_PANELSET
- bool
- prompt "DISABLE PWM SETTING IN PANELSET"
- default n
- if(DISABLE_PWM_SETTING_IN_PANELSET)
- config BACKLIGHT_MAX_CURRENT
- int "MAX ELECTRICITY(mA)"
- default 900
- config BACKLIGHT_MIN_CURRENT
- int "Set the percentage of Max electricity for Min electricity (%)"
- default 15
- endif
- choice
- prompt "gcc debug level"
- default BR2_DEBUG_2
- help
- Set the debug level for gcc
- config BR2_DEBUG_1
- bool "debug level 1"
- help
- Debug level 1 produces minimal information, enough
- for making backtraces in parts of the program that
- you don't plan to debug. This includes descriptions
- of functions and external variables, but no information
- about local variables and no line numbers.
- config BR2_DEBUG_2
- bool "debug level 2"
- help
- The default gcc debug level is 2
- config BR2_DEBUG_3
- bool "debug level 3"
- help
- Level 3 includes extra information, such as all the
- macro definitions present in the program. Some debuggers
- support macro expansion when you use -g3.
- endchoice
- choice
- prompt "gcc optimization level"
- default BR2_OPTIMIZE_S
- help
- Set the optimization level for gcc
- config BR2_OPTIMIZE_0
- bool "optimization level 0"
- help
- Do not optimize. This is the default.
- config BR2_OPTIMIZE_1
- bool "optimization level 1"
- help
- Optimize. Optimizing compilation takes somewhat more time,
- and a lot more memory for a large function. With -O, the
- compiler tries to reduce code size and execution time,
- without performing any optimizations that take a great deal
- of compilation time. -O turns on the following optimization
- flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
- -fcprop-registers -floop-optimize -fif-conversion
- -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
- -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
- -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
- -O also turns on -fomit-frame-pointer on machines where doing
- so does not interfere with debugging.
- config BR2_OPTIMIZE_2
- bool "optimization level 2"
- help
- Optimize even more. GCC performs nearly all supported optimizations
- that do not involve a space-speed tradeoff. The compiler does not
- perform loop unrolling or function inlining when you specify -O2.
- As compared to -O, this option increases both compilation time and
- the performance of the generated code. -O2 turns on all optimization
- flags specified by -O. It also turns on the following optimization
- flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
- -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
- -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
- -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
- -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
- -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
- -freorder-functions -falign-functions -falign-jumps -falign-loops
- -falign-labels -ftree-vrp -ftree-pre
- Please note the warning under -fgcse about invoking -O2 on programs
- that use computed gotos.
- config BR2_OPTIMIZE_3
- bool "optimization level 3"
- help
- Optimize yet more. -O3 turns on all optimizations specified by -O2
- and also turns on the -finline-functions, -funswitch-loops and
- -fgcse-after-reload options.
- config BR2_OPTIMIZE_S
- bool "optimize for size"
- help
- Optimize for size. -Os enables all -O2 optimizations that do not
- typically increase code size. It also performs further optimizations
- designed to reduce code size. -Os disables the following optimization
- flags: -falign-functions -falign-jumps -falign-loops -falign-labels
- -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
- -ftree-vect-loop-version
- endchoice
- config USE_CCACHE
- bool
- prompt "Enable ccache support"
- default y
- help
- ccache is a compiler cache. It speeds up recompilation by caching
- previous compilations and detecting when the same compilation is
- being done again.
-
- config GCC473
- bool
- prompt "Toolchain gcc4.7.3"
- default n
- help
- use gcc 4.7.3
-
- config GCC540
- bool
- prompt "Toolchain gcc5.4.0"
- default n
- help
- use gcc 5.4.0
-
- menu "Debug Options"
- config SUPPORT_DEBUG_MESSAGE
- bool
- prompt "Support debug message"
- default n
- help
- debug message.
- Disabling this option saves lots of code size.
-
- config SUPPORT_DEBUG_BOOT
- bool
- prompt "Support doskey for boot"
- default n
- help
- Only work in booting menu.
- If unsure, say N
-
- config DEBUG_DRV_CEC_WRITE_EN
- bool
- prompt "Enable driver cec_write function"
- default n
-
- config DEBUG_DRV_HDMI_WRITE_EN
- bool
- prompt "Enable driver hdmi_write function"
- default n
- config SYSTEM_WATCHDOG_DISABLE
- bool "Disable system watchdog"
- default n
- help
- Enable system watchdog which triggers system reset while there is
- abnormal behavior in the sytem such as RISC exception.
-
- config DEBUG_UART_MODE_EN
- bool "Set Factory Setting: UART DEBUG = On"
- default n
- help
- Chip after 531 have to set this OFF to avoid PC EDID colliosion with UART.
-
- config FS2_ENABLE
- bool
- prompt "Enable FS2 debug"
- default n
- help
- If unsure, say N
-
- config UARTB_DEBUG
- bool
- prompt "UARTB as debug port"
- default n
- help
- Special method for debugging PC.
- If unsure, say N
-
- endmenu # "Debug Options"
- endmenu # Build options
|