#################################################
# 	CONFIG  generate > hal/hal_product_config.h 	#
#################################################

export MOD_SENSOR=GC2053
export MOD_WIFI=atbm6441
export MOD_SDCARD=1
export MOD_AUDIO=t40
export MOD_VIDEO=t40
export MOD_BATTERY=atbm6441
export MOD_IRCUT=t40
export MOD_LIGHTSENSOR=t40
export MOD_KEYPAD=atbm6441
export MOD_GPIO=t40
export MOD_IRLED=t40
export MOD_WATCHDOG=atbm6441
export MOD_FLASH=linux #linux_nor
export MOD_STORAGE_PATH='STORAGE_PATH=\"/home/share/primary/fusion\"'

export GPIO_IRCUT_ENB=10
export GPIO_IRCUT_FBC=11
export GPIO_IRLED=13

include $(HAL_DIR)/hal_env/config.mk

#################################################
#          		 	   MOD      		        #
#################################################

ifdef MOD_AUDIO
include $(HAL_DIR)/hal_audio/config.mk
CFLAGS += -DMOD_AUDIO
endif

ifdef MOD_VIDEO
include $(HAL_DIR)/hal_video/config.mk
CFLAGS += -DMOD_VIDEO
endif

ifdef MOD_BATTERY
include $(HAL_DIR)/hal_battery/config.mk
CFLAGS += -DMOD_BATTERY
endif

ifdef MOD_IRCUT
#include $(APP_DIR)/app_ircut/config.mk
include $(HAL_DIR)/hal_ircut/config.mk
CFLAGS += -DMOD_IRCUT
endif

ifdef MOD_LIGHTSENSOR
include $(HAL_DIR)/hal_lightsensor/config.mk
CFLAGS += -DMOD_LIGHTSENSOR
endif

ifdef MOD_KEYPAD
include $(HAL_DIR)/hal_keypad/config.mk
CFLAGS += -DMOD_KEYPAD
endif

ifdef MOD_GPIO
include $(HAL_DIR)/hal_gpio/config.mk
CFLAGS += -DMOD_GPIO
endif

ifdef MOD_IRLED
include $(HAL_DIR)/hal_irled/config.mk
CFLAGS += -DMOD_IRLED
endif

ifdef MOD_WATCHDOG
include $(HAL_DIR)/hal_watchdog/config.mk
CFLAGS += -DMOD_WATCHDOG
endif

ifdef MOD_FLASH
include $(HAL_DIR)/hal_flash/config.mk
CFLAGS += -DMOD_FLASH
endif

ifdef MOD_WIFI
include $(HAL_DIR)/hal_wifi/config.mk
CFLAGS += -DMOD_WIFI
endif


ifdef MOD_MCU
include $(HAL_DIR)/hal_mcu/config.mk
CFLAGS += -DMOD_MCU
endif

include $(APP_DIR)/config.mk

ifdef MOD_MCU
include $(PROJECT_DIR)/unittest/config.mk
CFLAGS += -DMOD_MCU
endif


HEADERS +=	$(PROJECT_DIR)/*.h

SRCDIRS += $(PROJECT_DIR)


LIBHV_HEADERS += $(HEADERS)
CORE_SRCDIRS  += $(SRCDIRS)


#################################################
#    auto generate > hal_product_config.h       #
#################################################