#
# Copyright (C) 2021. Hisilicon Technologies Co., Ltd.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
# only version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

ifeq ($(HVGR_FEATURE_HTS), 1)
ifneq ($(HVGR_USE_PCIE), 1)
ifeq ($(CONFIG_FFRT_HTS), y)
DEFINES += -DHVGR_FEATURE_HTS=$(HVGR_FEATURE_HTS)
include $(HVGR_PATH)/ffrt/hts/Kbuild
endif
ifeq ($(CONFIG_FFRT_HTS_OHOS), y)
DEFINES += -DHVGR_FEATURE_HTS=$(HVGR_FEATURE_HTS)
include $(HVGR_PATH)/ffrt/hts/Kbuild
endif
endif
endif

DEFINES += -DHVGR_FE_FFTS=$(HVGR_FE_FFTS)

ifeq ($(HVGR_FE_FFTS), 1)
	include $(HVGR_PATH)/ffrt/ffts/Kbuild
endif
