#!/bin/sh

# set HAS_STANDBY=y as default
# use NABLE_MEMSYSINIT=n if want to use old shmoo and AVS
# use BUILD_UCOS=y to build uCOS library
# use BUILD_LIBFCC=y to build FCC library
# use TUNER_TEST=y to enable some features that test tuner code along with BBS
# use SCREENSAVER=n to disable SCREENSAVER 
#make APP_TYPE=ntia CFG_PROFILE=1 HAS_VSB=y USERIO_ID=5 NXP_TDA182I4=y AOV_SDRAM_1G=y DEBUG=n

# CFG_PROFILE=1 (533), =2 (800), =3 (933) =4(400) =5(667)
# USERIO_ID=5 (RCA remote), =10 (MA-35K remote), = 4 (ARC-00x remote), =15 (DST IR remote)

# for Tuner team debug
#make USERIO_ID=4 TUNER_DEBUG=y

# 1GB DDR, CPU frequency=633 MHz, NO AVS circuity in this board
#make CFG_PROFILE=5 USERIO_ID=15 AOV_SDRAM_1G=y AOV_MODEL=613 ENABLE_AVS=n
# VSB, ACB615, enable AVS
#make CFG_PROGILE=5 USERIO_ID=15 ACB615=y

# for no screen saver related features 
#make USERIO_ID=4 SCREENSAVER=n

# for normal debug build
#make USERIO_ID=5 SCREENSAVER=n
# for normal release build
#make USERIO_ID=5 DEBUG=n

# VSB, ACB615, enable AVS
#make USERIO_ID=5 ACB615=y

# for TOM's 1GB board with TUNER debug features
#make USERIO_ID=5 TUNER_DEBUG=y AOV_SDRAM_1G=y DEBUG=n

# for Sanmina 1GB board 
#make USERIO_ID=4 TUNER_DEBUG=y AOV_SDRAM_1G=y DEBUG=n

# AOV_SDRAM_1G=y for 1GBit DDR, Aonvision/Sanmina
#make USERIO_ID=5 AOV_SDRAM_1G=y DEBUG=n
#make USERIO_ID=5 AOV_SDRAM_1G=y

# AOV_SDRAM_1G=y for 1GBit DDR Change Hong
#make USERIO_ID=10 AOV_SDRAM_1G=y DEBUG=n

make APP_TYPE=ntia HAS_VSB=y USERIO_ID=15 HAS_STANDBY=y NXP_TDA182I4=y AOV_SDRAM_1G=y AOV_MODEL=613 DEBUG=n

#
# ISDB-T
# just one ISDB frequency 545.142 MHz instead
#
#make HAS_ISDBT=y HAS_VSB=n USERIO_ID=4 ACB615=y ISDB_MY_FREQ=y TUNER_TEST=y


if [ -f ../src/jflu/jflu.bin ]; then
	echo "build jflu.bin"
	cat ../src/jflu/jflu.bin flash97574.gz > flash97574_jflu.bin
else
	echo "no jflu.bin"
fi
