#
# Copyright (c) [2020], MediaTek Inc. All rights reserved.
#
# This software/firmware and related documentation ("MediaTek Software") are
# protected under relevant copyright laws.
# The information contained herein is confidential and proprietary to
# MediaTek Inc. and/or its licensors.
# Except as otherwise provided in the applicable licensing terms with
# MediaTek Inc. and/or its licensors, any reproduction, modification, use or
# disclosure of MediaTek Software, and information contained herein, in whole
# or in part, shall be strictly prohibited.
#

KBUILD_CFLAGS += -D'DONT_USE_CMA' -D'MSOS_TYPE_NOS' -D'MCU_ARM_CA7' -D'UTOPIA_V2'

UBOOTINCLUDE += -I$(srctree)/Mediatek-internal/drivers/driver/msos/utopia_core/ \
				-I$(srctree)/Mediatek-internal/drivers/include/ \
                -I$(srctree)/Mediatek-internal/drivers/include/chip/ \
                -I$(srctree)/Mediatek-internal/drivers/include/tools/

ifeq ($(BOARD),mt5888)
obj-y += cpu/
obj-y += graphic/
obj-y += miu/
obj-y += msos/
obj-y += mvop/
obj-y += njpd/
obj-y += sem/
obj-y += sys/
obj-y += xc/
endif
obj-y += graphic/
obj-$(CONFIG_ENABLE_DEMURA) += demura/
obj-y += efuse/
obj-$(CONFIG_ENABLE_EEPROM) += eeprom/
