appconfig.mak
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:29k
- # ------------------------------------------------
- #
- # File name: appconfig.mak
- # Description: Config build parameters for Singappl project.
- #
- # COPYRIGHT (C) 2004 STMicroelectronics
- #
- # In an effort to consolidate all relevant build
- # settings into one file...HERE IT IS.
- #
- # IMPORTANT NOTE:
- # This file should be placed in the <root>configplatform dir.
- # The proper way to use this is to include this file
- # in the generic.mak file which is found in every
- # STAPI-tree under the <root>make directory.
- # Example entry in the generic.mak:
- # # SINGAPPL, include app configuration
- # include $(DVD_TARGET_PATH)/appconfig.mak
- #
- # # Determine the build environment
- # include $(DVD_MAKE)/environment.mak
- #
- # # Include default DVD platform configuration
- # include $(DVD_MAKE)/sysconf.mak
- # ...
- #
- # When changing values of variables, MAKE SURE
- # that you DON'T ADD ANYTHING ELSE INCLUDING
- # TRAILING SPACES after
- # the value that was set.
- # Example:
- # (WRONG!)
- # DVD_PLATFORM := mb390 #comment
- #
- # (RIGHT, nothing comes after "mb390", not even SPACES)
- # DVD_PLATFORM := mb390
- # ------------------------------------------------
- ##---------- G E N E R A L - O P T I O N S -----------
- ## Options that will more likely to be changed
- ##Enable debug info to be generated: 0(none) or 1(enable)
- ##For NON-DEBUG builds, COMMENT OUT the following line
- DEBUG_APP := 1
- ##The reference platform to use: mb400 (5105) mb390 (if 5100 is used) DTT5107 (if 5107 is used)
- DVD_PLATFORM := mb400
- ##The board HW used: MB390MB or TYLKO3 or MB400MB or MALY3 or DTT5107
- DVD_HARDWARE := MALY3
- ##Use only for 5118 SDRAM, 5105 SDRAM to use STVMIX_COMPOSITOR_FIELD_COMBINED_422
- #Enable SELECT_DEVICE_STB5118 for SDRAM to set CFG_VIDIC
- SELECT_DEVICE_STB5118 := 0
- ##---------- TMTM Options --------------
- ##TMTM DVD_HARDWARE instead of DVD_PLATFORM
- ## ONLY for MALY3!!!
- ifeq "$(DVD_HARDWARE)" "MALY3"
- DVD_CONFIG_PLATFORM := $(DVD_HARDWARE)
- SPECIAL_CONFIG_FILE := $(DVD_HARDWARE).cfg
- endif
- ##This project uses only DVB
- DVD_SERVICE := DVB
- ##Where to output STTBX debug messages: DCU, UART, or DEBUG
- ##UART is default (Louie 25Feb05: DCU mode in 5100 currently does not work properly with STBLIT)
- DVD_IO := UART
- ##Needed by the test application to re-direct STTBX print msgs to the UART
- ENABLE_TRACE := 1
- ##Use which component to draw UI Graphics: STBLIT, STOSD, etc...
- ##STBLIT is the only component supported in ALPHA
- DVD_OSD := STBLIT
- ##The default (initial) display system (PAL is default)
- DVD_DISPLAY := PAL
- ##Which driver to use for Transport Stream handling? pti or stpti?
- ##This release only supports stpti
- DVD_TRANSPORT := stpti
- ##TV Display aspect ratio to use, fixed to 4:3
- DVD_TV_OUTPUT:= RATIO_4TO3
- ##Where to store and get dbase? flash or eeprom?
- ##flash is default
- DBASE_STORAGE_DEV:= flash
- ## Flash part number: M28W640FS(DTT5107 8MB)/M29W800DB(MALY3_1MB)/M29W160DB(MALY3_2MB)/M29W320DB(MALY3_4MB)/M58LW064D(MBXXX)
- ifeq "$(DVD_HARDWARE)" "DTT5107"
- FLASH_TYPE := M28W640FS
- else
- FLASH_TYPE := M29W320DB
- endif
- ##Using a front panel keyboard/display? 0 (only RC, default) or 1 (using front panel)
- ##Front panel is not supported in BETA (default to 0)
- USE_FRONT_PANEL := 0
- ##Allows the tuner to be controlled externally by PC: 0 (default) or 1
- TUNER_CONTROL_BY_PC := 0
- ## DCT7042/7043 - Parallel on CAB5105 reference board
- ##TS transfer mode from frontend to BE: 0 (parallel, default) or 1 (serial)
- TS_MODE_SERIAL := 1
- ##Graphics Library to use: 0 (use ST_GFX drivers) or 1 (use PEG toolkit)
- ##For ALPHA release, this must be set to 1 (no STGFX-based UI available)
- USING_PEG := 1
- ## Noida - Non Peg -> Note; if ths is 1, USING_PEG := 0 and vice versa
- USING_NonPEG_UI := 0
- ##Digital Video Recorder (DVR) Feature:
- ## set to 0 (no DVR, default) or 1 (enable DVR features)
- ENABLE_DVR_FEATURE := 0
- ##USB Feature
- ## set to 0 (no USB, default) or 1 (enable USB features)
- ENABLE_USB_FEATURE := 0
- ##USB Feature
- ## set to 0 (no USB, default) or 1 (enable USB features)
- USING_JPEG_MP3_UI := 0
- ##JPEG Feature:
- ## set to 0 (no JPEG, default) or 1 (enable JPEG features)
- ENABLE_JPEG_FEATURE := 0
- ##MP3 Feature:
- ## set to 0 (disable MP3, default) or 1 (enable MP3 features)
- ENABLE_MP3_PLAYBACK := 0
- ##File System To Use for DVR
- ##Choose between STAVFS or OSPLUS (only OSPLUS is supported for ALPHA REL)
- DVR_FILE_SYSTEM := OSPLUS
- ##Enable/Disable the PictureInPicture (PIP) FEATURE
- ## set to 0 (no PIP) or 1 (PIP enabled, default)
- ##NOTE!: if maly3s (SDR) board is used, don't enable PIP
- PIP_FEATURE_ON := 0
- ##Enable/Disable the Electronic Program Guide (EPG) FEATURE
- ## set to 0 (no EPG) or 1 (EPG enabled, default)
- EPG_FEATURE_ON := 1
- ##Enable/Disable SUBTITLE
- SUBTITLE_FEATURE_ON := 0
- ##NOTE!: PIP and SUBTITLE can be selected only when TELETEXT is OFF. Otherwise, they will be overwritten in here.
- INTEGRATE_TELETEXT:= 0
- ifeq "$(INTEGRATE_TELETEXT)" "1"
- PIP_FEATURE_ON := 0
- SUBTITLE_FEATURE_ON := 0
- endif
- ## To enable MOSAIC, these 2 switches must be enabled together !
- ## MOSAIC_FEATURE_ON
- ## +CHENG_ENABLE_STILL_LAYER
- ##Enable/Disable the MOSAIC PREVIEW FEATURE
- ## set to 0 (no MOSAIC) or 1 (MOSAIC enabled, default)
- MOSAIC_FEATURE_ON := 1
- CHENG_ENABLE_STILL_LAYER:=1
- CHENG_ENABLE_STILL_VIEWPORT:=0
- ##NOTE: PIP should only be enabled if MOSAIC is OFF, and vice versa
- ifeq "$(PIP_FEATURE_ON)" "1"
- MOSAIC_FEATURE_ON := 0
- CHENG_ENABLE_STILL_LAYER:=0
- CHENG_ENABLE_STILL_VIEWPORT:=0
- endif
- ##NOTE!: AC3 can be selected when SUBTITLE is OFF, and vice-versa. If AC3 is 'on', SUBTITLE will be set to 'off' in here.
- ##Enable/Disable AC3
- ENABLE_AC3 := 1
- ifeq "$(ENABLE_AC3)" "1"
- SUBTITLE_FEATURE_ON := 0
- endif
- ##Reset aspect ratio after booting up --- Julia
- RESET_ASPECTRATIO_4TO3:= 0
- ##Reset aspect ratio after booting up --- Julia
- RESET_DISPLAYMODE_PAL:= 0
- ##Enable/Disable Channel Sorting
- ENABLE_CH_SORT:= 1
- ##Enable/Disable IFRAME
- ENABLE_IFRAME:= 1
- ##Enable/Disable DEBUG MSGS in avcontrol /* kc-060803pm */
- ENABLE_KC_DEBUG_AVCONTROL:= 0
- ## Change NVM Struct to hardcode it to be enabled for 2K programs stored in mem */
- ## set to zero if we define less than 2K programs in "sr_dbase.h"
- NVM_2K_PROG:=1
- ## Modify UI Colors
- ENABLE_UI_COLOR_CHANGE :=1
- ## Enable/Disable Anti flicker
- ENABLE_ANTI_FLICKER :=0
- ## Cut2.0: No Overwrite mode
- ## Cut3.0: Overwrite mode is enabled by VMIX_DEVICE_TYPE
- SELECT_DEVICE_CUT3_0 :=0
- ## Please remember to select the appropriate hw_maly3_8MB.cfg/hw_maly3_8MB_cut_3_0.cfg/hw_maly3_16MB.cfg
- ##---------- T U N E R - O P T I O N S ---------------
- ## Options to set tuner type/behavior
- ## Select only ONE from the list of tuners supported below:
- ## The rest MUST be commented out
- ##SATELLITE TUNERS: STEM0299/BD0399/STB6000_299/STB6000_288/STEM288
- ##CABLE TUNERS: DCF8720/DCT7042/DCT7043
- ##TERRESTRIAL TUNERS: STV0360NIM/STV0361NIM/STV0362NIM
- ##-------------------------------------------------------------------------------------------
- ## MALY3 Tested Settings - DDR
- ## -------------------------------------------------------------------------------------------
- ## Tuner ENABLE_
- ## TUNER_NONSTAPI TS_MODE_SERIAL CAB5107 SAT5107 TER5107 Maly3
- ## -------------------------------------------------------------------------------------------
- ## (SAT)
- ## STB6000_299 0 1 NA NA NA Not tested
- ## STB6000_299 1 1 NA NA OK OK
- ## STB6000_288 1 1 NA YES OK OK
- ## -------------------------------------------------------------------------------------------
- ## (TER)
- ## STV0360NIM 1 1 NA NA NA OK
- ## STV0361NIM 1 1 NA NA NA OK
- ## STV0362NIM* 1 1 NA NA OK OK with h/w mod.
- ## -------------------------------------------------------------------------------------------
- ## (CAB)
- ## DCF8720 0 1 OK NA NA Not tested
- ## DCT7042/7043** 0 0 Not tested NA NA Not tested
- ##--------------------------------------------------------------------------------------------
- ## * => STV0362NIM requires Maly3 rework
- ## * => Need to choose between "Thomson_DTT7300X" & "TER_TUNER_TDQD3" in "miniter.c" for STV0362
- ## ** => DCT7042/7043 tested to work on CAB5105 reference board (TS_MODE_SERIAL = 0 =>PARALLEL) and NOT Maly3!!!
- ## ** => Autoscan not implemented
- ## SAT5107 flag: Please enable this flag when compiling for STB6000_299 and STB6000_288, otherwise disable it
- ## CAB5107 flag: Please enable this flag when compiling for DCF8720, otherwise disable it
- ##STB_TUNER_USED:= STB6000_299
- ##CFLAGS += -DSAT5107
- ##STB_TUNER_USED:= STB6000_288
- ##CFLAGS += -DSAT5107
- ##STB_TUNER_USED:= STV0360NIM
- ##STB_TUNER_USED:= STV0361NIM
- ##STB_TUNER_USED:= STV0362NIM
- STB_TUNER_USED:= DCF8720
- CFLAGS += -DCAB5107
- ##LYNN added for non-stapi support; There's NO non-stapi support for CAB5105/5107 in this release.
- ENABLE_TUNER_NONSTAPI := 0
- ## DUAL TUNER OPTION
- ## Applicable only if TWO-TUNERS of THE SAME TYPE are used
- ## set to 0 (single tuner) or 1 (DUAL TUNER, default)
- DUAL_TUNER_CONFIG := 0
- ## SATCR FEATURE OPTION
- ## For DEMO purposes: set to 0 (default, disabled) or 1 (enabled)
- SATCR_FEATURE_ON := 0
- ##TMTM added for mini tuner support; tested ONLY for 5105 8MB support
- MINI_TUNER_ON := 0
- ##TMTM remove -DSTRESS_TEST
- CFLAGS += -DENABLE_MOVE2D_WA -Dmaly3
- ##-DENABLE_MEMORY_CONFIG_8MB
- TMTMCHK_ENABLE_MEMORY_CONFIG_8MB := 0
- ifeq "$(TMTMCHK_ENABLE_MEMORY_CONFIG_8MB)" "1"
- CFLAGS += -DTMTMCHK_ENABLE_MEMORY_CONFIG_8MB
- endif
- ##CHENG test still layer-06/02/2006
- ifeq "$(CHENG_ENABLE_STILL_LAYER)" "1"
- CFLAGS += -DCHENG_ENABLE_STILL_LAYER
- endif
- ##CHENG test still viewport on osd layer-06/13/2006
- ifeq "$(CHENG_ENABLE_STILL_VIEWPORT)" "1"
- CFLAGS += -DCHENG_ENABLE_STILL_VIEWPORT
- endif
- ##Lynn Modified new UI Color scheme
- ifeq "$(ENABLE_UI_COLOR_CHANGE)" "1"
- CFLAGS += -DUI_CHANGE
- endif
- ##Based on the Tuner-demod selected, configure tuner build
- DVD_TUNER := NO_TUNER
- ifeq "$(STB_TUNER_USED)" "STB6000_299"
- CFLAGS += -DBUILD_FOR_DVBS
- ##CFLAGS += -DLNBH_21
- LNBH_21 := NO ##TMTM YES
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STV0299
- SAT_TUNER_TYPE := 2996K
- STTUNER_USE := SAT
- endif
- ## kc-060612pm - STB6000_288
- ## 2996k and 2886k use the same STTUNER_TUNER_STB6000
- ifeq "$(STB_TUNER_USED)" "STB6000_288"
- CFLAGS += -DBUILD_FOR_DVBS
- ifeq "$(DVD_HARDWARE)" "DTT5107"
- LNBH_21 := YES
- else
- LNBH_21 := NO
- endif
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STX0288
- SAT_TUNER_TYPE := 2886K
- STTUNER_USE := SAT
- endif
- ## kc-060525am - this is done in STTUNER but not tested
- ifeq "$(STB_TUNER_USED)" "STEM288"
- CFLAGS += -DBUILD_FOR_DVBS
- ##CFLAGS += -DLNBH_21
- LNBH_21 := NO ##TMTM YES
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STEM288
- ## kc-060517pm -test STV0288
- SAT_TUNER_TYPE := 2996K
- STTUNER_USE := SAT
- endif
- ##ifeq "$(STB_TUNER_USED)" "STB6000_288"
- ## CFLAGS += -DBUILD_FOR_DVBS
- ##CFLAGS += -DLNBH_21
- ## LNBH_21 := NO ##TMTM YES
- ## TUNER_SERVICE :=SATELLITE
- ## DVD_TUNER := STEM288
- ## kc-060525am -test STV0288
- ##SAT_TUNER_TYPE := 2886K
- ## SAT_TUNER_TYPE := 2996K
- ## STTUNER_USE := SAT
- ##endif
- ifeq "$(STB_TUNER_USED)" "STV0399NIM"
- CFLAGS += -DBUILD_FOR_DVBS
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STV0399
- STTUNER_USE := SAT
- endif
- ifeq "$(STB_TUNER_USED)" "BD0399"
- CFLAGS += -DBUILD_FOR_DVBS
- CFLAGS += -DLNBH_21
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STV0399
- SAT_TUNER_TYPE := 399E
- STTUNER_USE := SAT
- endif
- ifeq "$(STB_TUNER_USED)" "DSF8910"
- CFLAGS += -DBUILD_FOR_DVBS
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STV0299
- STTUNER_USE := SAT
- endif
- ifeq "$(STB_TUNER_USED)" "STEM0299"
- CFLAGS += -DBUILD_FOR_DVBS
- TUNER_SERVICE :=SATELLITE
- DVD_TUNER := STV0299
- SAT_TUNER_TYPE := 299STEM
- STTUNER_USE := SAT
- endif
- ifeq "$(STB_TUNER_USED)" "MT2050"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297J
- CAB_TUNER_TYPE := 297J
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "MT2060"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "DCT7042"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "DCT7043"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "DCF8720"
- CFLAGS += -DBUILD_FOR_DVBC -DSTTUNER_DRV_CAB_TUN_DCF8720 -DSTTUNER_DRV_CAB_EXTTUNERS
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "STV0297"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "STV0297ENIM"
- CFLAGS += -DBUILD_FOR_DVBC
- TUNER_SERVICE :=CABLE
- DVD_TUNER := STV0297
- CAB_TUNER_TYPE := 297
- STTUNER_USE := CAB
- endif
- ifeq "$(STB_TUNER_USED)" "DTF8570"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0360
- STTUNER_USE := TER
- endif
- ifeq "$(STB_TUNER_USED)" "DTT7576"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0360
- TERR_TUNER_TYPE := 360
- STTUNER_USE := TER
- endif
- ifeq "$(STB_TUNER_USED)" "DTT7578"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0360
- TERR_TUNER_TYPE := 360
- STTUNER_USE := TER
- endif
- ##ifeq "$(STB_TUNER_USED)" "STV0360NIM"
- ifeq "$(STB_TUNER_USED)" "STV0360NIM"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0360
- TERR_TUNER_TYPE:=360
- STTUNER_USE := TER
- endif
- ##ifeq "$(STB_TUNER_USED)" "STV0361NIM"
- ifeq "$(STB_TUNER_USED)" "STV0361NIM"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0361
- TERR_TUNER_TYPE := 361
- STTUNER_USE := TER
- endif
- ifeq "$(STB_TUNER_USED)" "STV0362NIM"
- CFLAGS += -DBUILD_FOR_DVBT
- TUNER_SERVICE :=TERRESTRIAL
- DVD_TUNER := STV0362
- TERR_TUNER_TYPE := 362
- STTUNER_USE := TER
- endif
- ##Make sure that the tuner is supported
- ifeq "$(DVD_TUNER)" "NO_TUNER"
- $(error The STB_TUNER_USED specified is currently not supported)
- else
- CFLAGS += -DTUNER_$(STB_TUNER_USED) -DSTTUNER_USE_$(STTUNER_USE)
- endif
- ##TMTM check mini tuner
- ifeq "$(MINI_TUNER_ON)" "1"
- CFLAGS += -DMINI_TUNER -DSTTUNER_MINIDRIVER
- endif
- ##LYNN check non-stapi tuner
- ifeq "$(ENABLE_TUNER_NONSTAPI)" "1"
- CFLAGS += -DTUNER_NONSTAPI
- endif
- ##If tuner control is not done externally (by PC GUI SW)
- ## ...integrate with app
- ifneq "$(TUNER_CONTROL_BY_PC)" "1"
- CFLAGS += -DINTEGRATE_TUNER_MODULE
- endif
- ##TS Data transfer mode from FE to BE
- ifeq "$(DVD_HARDWARE)" "MB436MB"
- TS_MODE_SERIAL := 0
- ifeq "$(LNBH_21)" "YES"
- CFLAGS += -DLNBH_21
- endif
- endif
- ##TS Data transfer mode from FE to BE
- ifeq "$(DVD_HARDWARE)" "MB400MB"
- TS_MODE_SERIAL := 0
- ifeq "$(LNBH_21)" "YES"
- CFLAGS += -DLNBH_21
- endif
- endif
- ifeq "$(TS_MODE_SERIAL)" "1"
- CFLAGS += -DTS_MODE_SERIAL
- endif
- ##Using STTUNER driver?
- ##ifeq "$(USE_STTUNER)" "1"
- CFLAGS += -DUSE_STTUNER
- ##endif
- ## SATCR Feature enabling
- ifeq "$(SATCR_FEATURE_ON)" "1"
- CFLAGS += -DSATCR_FEATURE_ON -DSTTUNER_DRV_SAT_SCR
- DVD_STTUNER_DRV_SAT_SCR := YES
- DVD_STTUNER_DRV_SAT_SCR_LOOPTHROUGH := YES
- endif
- ##---------- M I S C E L L A N E O U S ---------------
- ##Other build settings are done here
- ifeq "$(SELECT_DEVICE_STB5118)" "1"
- CFLAGS += -DSELECT_DEVICE_STB5118 -DENABLE_MEMORY_CONFIG_8MB
- else
- CFLAGS += -USELECT_DEVICE_STB5118
- endif
- ##Check if a front panel is used
- ifeq "$(USE_FRONT_PANEL)" "1"
- CFLAGS += -DINTEGRATE_FRONT_PANEL_KEYBOARD
- endif
- ##If flash is used for dbase
- ifeq "$(DBASE_STORAGE_DEV)" "flash"
- CFLAGS += -DPROGRAM_INFO_IN_FLASH -D$(FLASH_TYPE)
- else
- ifneq "$(DBASE_STORAGE_DEV)" "eeprom"
- $(error INVALID STORAGE DEVICE USED!!!)
- endif
- endif
- ##Hardware-specific option settings
- #ifeq "$(UNIFIED_MEMORY_CFG)" "1"
- # export SPECIAL_CONFIG_FILE := alliref_t_um.cfg
- #else
- # export SPECIAL_CONFIG_FILE := alliref_t.cfg
- #endif
- ifneq (,$(findstring singapplstburner,$(shell cd)))
- export SPECIAL_CONFIG_FILE := burner_maly3.cfg
- endif
- CFLAGS += -D$(DVD_HARDWARE) -D$(DVD_DISPLAY)
- ifeq "$(DVD_HARDWARE)" "MB390MB"
- ##Put BOARD specific options HERE
- STSCART_HARDWARE := 6413
- endif
- ##Check type of DVD_HARDWARE Lynn 190105
- ##ifeq "$(DVD_HARDWARE)" "MB400MB"
- ## CFLAGS += -DMB400MB
- ##endif
- ifeq "$(DVD_HARDWARE)" "TYLKO3"
- ##Put BOARD specific options HERE
- STSCART_HARDWARE := 6412
- endif
- ##
- ##Check if USB feature is enabled
- ##
- ifeq "$(ENABLE_USB_FEATURE)" "1"
- CFLAGS += -DENABLE_USB_FEATURE
- endif
- ##
- ##Check if JPEG MP3 UI feature is enabled
- ##
- ifeq "$(USING_JPEG_MP3_UI)" "1"
- CFLAGS += -DUSING_JPEG_MP3_UI
- endif
- ##Check if DVR feature is enabled
- ifeq "$(ENABLE_DVR_FEATURE)" "1"
- CFLAGS += -DENABLE_DVR_FEATURE
- CFLAGS += -DDUAL_DVR -DDUAL_REC_SINGLE_PLAY
- ifeq "$(DVR_FILE_SYSTEM)" "OSPLUS"
- OSPLUS_ROOT := C:/STM/OSPLUS_R0_4
- endif
- endif
- ##Check if JPEG feature is enabled
- ifeq "$(ENABLE_JPEG_FEATURE)" "1"
- CFLAGS += -DENABLE_JPEG_FEATURE
- endif
- ##
- ## MP3 playback option
- ##
- ifeq "$(ENABLE_MP3_PLAYBACK)" "1"
- CFLAGS += -DENABLE_MP3_PLAYBACK
- endif
- ## Check the graphics library used
- ifeq "$(USING_PEG)" "1"
- ##If PEG source cannot be included in source tree and libs are only
- ## provided, set the var below to 1. Else 0 if peg source files are included.
- ## default is 1
- USE_PEG_IN_LIB_FORM:=0
- CFLAGS += -DUSING_PEG
- else
- CFLAGS += -DUSING_GFX
- endif
- ## Check the which graphics library to be used
- ifeq "$(USING_NonPEG_UI)" "1"
- CFLAGS += -DUSING_NonPEG_UI
- CFLAGS += -DUSING_COLORTYPE_CLUT8 -DDIRECT_OSD_MEM_WRITE
- endif
- ## Use RC5-Remote controller OR force_rc
- # USE_FORCERC or USE_RC5_REMOTE (default)
- CFLAGS += -DUSE_RC5_REMOTE
- ##CFLAGS += -DUSE_NEC_REMOTE
- ## If using USE_RC5_REMOTE remocon, specify which RC layout to use
- # RC5_MHP_REMOCON or RC5_DVR_REMOCON (default)
- CFLAGS += -DRC5_DVR_REMOCON
- ##Check if PIP is enabled
- CFLAGS += -DTSIN0_NORMAL
- ifeq "$(PIP_FEATURE_ON)" "1"
- CFLAGS += -DPIP_SUPPORT
- endif
- ##Check if MOSAIC is enabled
- ifeq "$(MOSAIC_FEATURE_ON)" "1"
- CFLAGS += -DMOSAIC_FEATURE_ON
- endif
- ##cheng test mosaic on still layer-05/24/2006
- ifeq "$(MOSAIC_FEATURE_ON_WITH_STILL)" "1"
- CFLAGS += -DMOSAIC_FEATURE_ON_WITH_STILL
- endif
- ##Check if SUBTITLE is enabled
- ifeq "$(SUBTITLE_FEATURE_ON)" "1"
- ##CFLAGS += -DINTEGRATE_SUBTITLE
- ##cheng add
- CFLAGS += -DINTEGRATE_SUBTITLE -DSUBT_SUPPORT
- CFLAGS += -DSTSUBT_OSD_SUPPORT
- STSUBT_OSD_SUPPORT := 1
- endif
- ## Check if AC3 is enabled
- ifeq "$(ENABLE_AC3)" "1"
- CFLAGS += -DENABLE_AC3
- endif
- ## Check if IFRAME is enabled
- ifeq "$(ENABLE_IFRAME)" "1"
- CFLAGS += -DENABLE_IFRAME
- ## CFLAGS += -DIFRAME_DEBUG
- endif
- ## Check if Anti flicker is enabled
- ifeq "$(ENABLE_ANTI_FLICKER)" "1"
- CFLAGS += -DENABLE_ANTI_FLICKER
- endif
- ## Check if Cut3.0 is enabled
- ifeq "$(SELECT_DEVICE_CUT3_0)" "1"
- CFLAGS += -DSELECT_DEVICE_CUT3_0
- endif
- ##Check if DUAL tuner configuration is used
- ifeq "$(DUAL_TUNER_CONFIG)" "1"
- CFLAGS += -DDUAL_TUNER
- else
- CFLAGS += -DSAME_TSIN
- endif
- ##Check if EPG is enabled
- ifeq "$(EPG_FEATURE_ON)" "1"
- CFLAGS += -DEPG_FEATURE_ON
- endif
- ##Check if Channel Sorting is enabled
- ifeq "$(ENABLE_CH_SORT)" "1"
- CFLAGS += -DENABLE_CH_SORT
- endif
- ##TMTM added
- ifeq "$(ENABLE_TRACE)" "1"
- CFLAGS += -DENABLE_TRACE
- endif
- ## Check if AC3 is enabled
- ifeq "$(ENABLE_KC_DEBUG_AVCONTROL)" "1"
- CFLAGS += -DENABLE_KC_DEBUG_AVCONTROL
- endif
- ifeq "$(NVM_2K_PROG)" "1"
- CFLAGS += -DNVM_2K_PROG
- endif
- ##Option to enable/disable Reset Aspect Ratio
- ## 1 = Enable (default); 0 = Disable
- ifeq "$(RESET_ASPECTRATIO_4TO3)" "1"
- CFLAGS += -DRESET_ASPECTRATIO_4TO3
- endif
- ##Option to enable/disable Reset Aspect Ratio
- ## 1 = Enable (default); 0 = Disable
- ifeq "$(RESET_DISPLAYMODE_PAL)" "1"
- CFLAGS += -DRESET_DISPLAYMODE_PAL
- endif
- ##KCY 060825
- CFLAGS += -DAUTOSEARCH_NEW_UI ##kc-060815pm - enable Lynn's new autosearch UI
- CFLAGS += -DCY_WA_FOR_MENU_OSD_FLICKER ##KCY 060822
- ##==================================================================
- ##---------- D E B U G - O P T I O N S ---------------
- ##This is where modules are enabled for debug info output
- ##You can enable options like STTBX_PRINT, STTBX_REPORT
- ## by setting ENABLE_DBGOUT to 1. To enable it by module,
- ## use the condition:
- ## ifneq (,$(findstring <unique_mod_identifier>,$(shell cd)))
- ## ...specifying the module dir name
- ##
- ##You can also include the enabling of other debugging features here which
- ## you want to be disabled automatically when
- ## you do a non-debug build. (DEBUG = 0)
- ifneq (,$(findstring singappl,$(shell cd)))
- ## SINGAPPL Debug compilation option: comment out to build optimized code
- #DEBUG_APP:=1
-
- ##TMTM USE_DEBUG_KERNEL:=1
-
- ## Option to FORCE the NVM (DBASE) to be CLEARED, NEED to enable when first time running
- ##CFLAGS += -DFORCE_NVM_CLEAR
-
- ## JJL Option to FORCE the NVM Test, need option FORCE_NVM_CLEAR at the same time
- ##CFLAGS += -DJJL_NVM_RWTest
- ##Simulation of RC key input, for testing
- ## see keysimtst.c for more details
- ##KEYSTIM_ENABLED :=1
- ##CFLAGS += -DSIMULATE_KEY_INPUT
- ## Perform STACK Usage Checking
- ###CFLAGS += -mstack-check
-
- ## Set search paths for gmake to check for dependencies
- vpath %.h $(STiDevROOT)/singappl
- vpath %.h $(STiDevROOT)/singappl/srinclude
- vpath %.h $(STiDevROOT)/singappl/shared/ST_$(DVD_FRONTEND)
- vpath %.h $(ST20ROOT)/include
- vpath %.h $(ST20ROOT)/include/sys
- vpath %.h $(DVD_EXPORTS)
- ifeq "$(DVD_PLATFORM)" "mb390"
- vpath %.h $(STiDevROOT)/singappl/shared/ST_$(DVD_FRONTEND)/$(DVD_FRONTEND)
- endif
- ifeq "$(DVD_PLATFORM)" "mb400"
- vpath %.h $(STiDevROOT)/singappl/shared/ST_$(DVD_FRONTEND)/$(DVD_FRONTEND)
- endif
- ifeq "$(DVD_PLATFORM)" "mb436"
- vpath %.h $(STiDevROOT)/singappl/shared/ST_$(DVD_FRONTEND)/$(DVD_FRONTEND)
- endif
- ##Option to enable/disable TELETEXT SUPPORT
- # 1 = Enable (default); 0 = Disable
- ifeq "$(INTEGRATE_TELETEXT)" "1"
- CFLAGS += -DINTEGRATE_TELETEXT
- else
- CFLAGS += -UINTEGRATE_TELETEXT
- endif
- endif
- ##The following options will be used only if DEBUG_APP=1
- ifeq "$(DEBUG_APP)" "1"
- ENABLE_DBGOUT :=0
- ##Enable Adjustment Feature for ClkRv Calibration
- ## Louie: One more thing needs to be done, enable the
- ## CLKRV_TESTING=1 flag in the STCLKRV driver options
- ## below
- #CFLAGS += -DCLKRV_CALIBRATION
- ##STAUD DEBUG
- ifneq (,$(findstring stvid,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STAUD DEBUG
- ifneq (,$(findstring staudlt,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STPTI
- ifneq (,$(findstring stpti,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##TMTM STPTI4LT
- ifneq (,$(findstring stpti4lt,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STDVR
- ifneq (,$(findstring stdvr,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STAVFS
- ifneq (,$(findstring stavfs,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STATAPI
- ifneq (,$(findstring statapi,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##STTUNER
- ifneq (,$(findstring sttuner,$(shell cd)))
- ENABLE_DBGOUT :=0
- ifeq "$(MINI_TUNER_ON)" "1"
- DVD_STTUNER_MINIDRIVER := YES
- endif
- #CFLAGS += -DSTTUNER_DEBUG_MODULE_SATDRV_TUNSDRV -DSTTUNER_DEBUG_MODULE_SATDRV_D0299 -DSTTUNER_DEBUG_MODULE_SATDRV_SCR
- endif
- ##STCLKRV
- ifneq (,$(findstring stclkrv,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##Singappl related modules
- ##AVCONTROL
- ifneq (,$(findstring singapplavcontrol,$(shell cd)))
- ENABLE_DBGOUT :=1
- CFLAGS += -DAVC_DEBUG
- endif
- ##SECTION FILTERING / DBASE
- ifneq (,$(findstring singappldbase,$(shell cd)))
- ENABLE_DBGOUT :=0
- #CFLAGS += -DSECTION_DEBUG
- #CFLAGS += -DDATABASE_DEBUG
- #CFLAGS += -DSTTBX_PRINT
- #CFLAGS += -DJJL_DBASE_DEBUG
- endif
- ##USIF
- ifneq (,$(findstring singapplusif,$(shell cd)))
- ENABLE_DBGOUT :=1
- endif
- ifneq (,$(findstring singapplmenu,$(shell cd)))
- ENABLE_DBGOUT :=1
- ##TMTM 0
- endif
- ifneq (,$(findstring singapplosal,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##DVR
- ifneq (,$(findstring singappldvr,$(shell cd)))
- ENABLE_DBGOUT :=0
- endif
- ##TUNER INTERFACE
- # Louie: Keep this to 1 coz' it makes sure that the last channel viewed is shown upon startup
- ifneq (,$(findstring singappltuner,$(shell cd)))
- ENABLE_DBGOUT :=1
- endif
- ##SINGAPPL ROOT/MAIN
- ifneq (,$(findstring singapplobjs,$(shell cd)))
- ENABLE_DBGOUT :=1 ##TMTM 0
- endif
- ##Check if STTBX needs to be enabled
- ifneq "$(ENABLE_DBGOUT)" "0"
- CFLAGS += -DSTTBX_PRINT -DSTTBX_REPORT
- endif
- endif ##if DEBUG_APP:=1
- ##---------- S A N I T Y - C H E C K S ---------------
- ## Making sure that the env vars are properly set
- ifeq "$(STiDevROOT))" ""
- ## The env var was not set and MUST be set
- $(error The environment variable STiDevROOT must be set)
- endif
- ##---------- S T B O O T - Driver Options --------------
- ifneq (,$(findstring stboot,$(shell cd)))
- ##TMTM CFLAGS += -DSTBOOT_LMI_TOP_REGION_ICACHE_ENABLE
- endif
- ##---------- S T V I D - Driver Options --------------
- ifneq (,$(findstring stvid,$(shell cd)))
- ###STVID_DEBUG_GET_STATISTICS :=1 ##TMTM dummy value
- ###ST_display :=1 ##TMTM
- endif
- ##---------- S T E V T - Driver Options --------------
- ifneq (,$(findstring stevt,$(shell cd)))
- ##Louie: Prevent the STEVT driver from being compiled with optimization enabled
- ## Video decode does not work when STEVT is optimized
- ## See GNBvd31267
- #DEBUG_APP:=1
- endif
- ##---------- S T P T I - Driver Options --------------
- ##Louie: Do not optimize the STPTI driver for non-debug builds...at the moment
- ## Workaround for section filtering problem in 5517FTACI
- ## Alpha release version
- ifneq (,$(findstring stpti,$(shell cd)))
- #DEBUG_APP:=1
- #CFLAGS += -DSTTBX_PRINT
- endif
- ##---------- S T C L K R V - Driver Options --------------
- ifneq (,$(findstring stclkrv,$(shell cd)))
- ## Louie: enable the test flag below to reduce jerky video...only for alpha release
- ## root cause to be studied before next release
- ## export CLKRV_TESTING=1
- endif
- ##---------- S T A U D - Driver Options --------------
- ifneq (,$(findstring staudlt,$(shell cd)))
- ##DEBUG := 0
- endif
- ##---------- S T S U B T - Driver Options --------------
- ifneq (,$(findstring stsubt,$(shell cd)))
- ## DEBUG := 1
- ##Check if SUBTITLE is enabled
- ifeq "$(SUBTITLE_FEATURE_ON)" "1"
- CFLAGS += -DINTEGRATE_SUBTITLE
- CFLAGS += -DSUBT_SUPPORT
- CFLAGS += -DSTSUBT_OSD_SUPPORT
- endif
- endif
- ##---------- other than S T B L A S T - Driver Options --------------
- ifneq (,$(findstring stblast,$(shell cd)))
- ## DEBUG := 1
- endif
- ##---------- other than S T U A R T - Driver Options --------------
- ifneq (,$(findstring stuart,$(shell cd)))
- ## DEBUG := 1
- endif
- ##---------- other than S T B L I T - Driver Options --------------
- ifneq (,$(findstring stblit,$(shell cd)))
- ## Louie: STBLIT must be compiled without the DEBUG option in order to work in ST20R2.0.5 toolset
- ## DEBUG := 1
- DEBUG := 0
- CFLAGS += -DSTBLIT_EMULATOR
- else
- endif
- ##---------- other than S T D I S P - Driver Options --------------
- ifneq (,$(findstring stdisp,$(shell cd)))
- ## DEBUG := 1
- endif
- ##---------- other than C O M P O - Driver Options --------------
- ifneq (,$(findstring compo,$(shell cd)))
- ## DEBUG := 1
- ## See GNBvd31267
- ##WA_BLITTER_LUMA_CHROMA_DELAY=FALSE
- ##COMPO_DEBUG_CHECK_ERROR=FALSE
- ##TMTM for check only COMPO_BLITTER_BENCHMARK=TRUE
- ##TMTM CFLAGS += -DCOMPO_ENABLE_TRACE_UART
- ###=TRUE
- endif
- ##---------- other than S T A V M E M - Driver Options --------------
- ifneq (,$(findstring stavmem,$(shell cd)))
- ## DEBUG := 1
- CFLAGS += -DSTAVMEM_MEM_ACCESS_FDMA
- endif
- ##---------- T E S T A P P - Options --------------
- ifneq (,$(findstring testapp,$(shell cd)))
- CFLAGS += -DC_BAND_TESTING
- ##for testapp15
- CFLAGS += -DDVR_APPLICATION
- ##for testapp1 AC3 test
- CFLAGS += -DAC3_DECODE
- ##JJL add option for 8MSDRAM support in testapps
- ifeq "$(SELECT_DEVICE_STB5118)" "1"
- CFLAGS += -DMEMORYCONFIG_8MB
- endif
- STBLIT_SOFTWARE := TRUE
- ENABLE_OSD := 1
- DVR_FS := E2FS
- endif
- ##TMTM
- include $(DVD_MAKE_PATH)/mb400.mak
- include $(DVD_MAKE_PATH)/syspriority.mak
- ##================= End of File ==============================