################################################################################
#
# ti-sgx-km_CV
#
################################################################################

# TI-GIT-Webinterface: https://git.ti.com/cgit/graphics/omap5-sgx-ddk-linux
# download: git clone https://git.ti.com/cgit/graphics/omap5-sgx-ddk-linux.git
# cd omap5-sgx-ddk-linux
# git branch -a --contains cf7f48cb30abfd5df7a60c9bf4bbb1dde0d496d9
# git show 62f31de3ceed156bff32abb3dd03693a02df117e
# we use branch ti-img-sgx/1.17.4948957/k5.10

# This corresponds to SDK 06.01.00.08
# TI_SGX_KM_CV_VERSION = cf7f48cb30abfd5df7a60c9bf4bbb1dde0d496d9
# TI_SGX_KM_CV_VERSION = 62f31de3ceed156bff32abb3dd03693a02df117e
TI_SGX_KM_CV_VERSION = eda7780bfd5277e16913c9bc0b0e6892b4e79063
TI_SGX_KM_CV_SITE = http://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git
TI_SGX_KM_CV_SITE_METHOD = git
TI_SGX_KM_CV_LICENSE = GPL-2.0
TI_SGX_KM_CV_LICENSE_FILES = eurasia_km/GPL-COPYING

TI_SGX_KM_CV_DEPENDENCIES = linux

TI_SGX_KM_CV_MAKE_OPTS = \
	$(LINUX_MAKE_FLAGS) \
	KERNELDIR=$(LINUX_DIR) \
	TARGET_PRODUCT=$(TI_SGX_KM_CV_PLATFORM_NAME)

TI_SGX_KM_CV_PLATFORM_NAME = ti335x

TI_SGX_KM_CV_SUBDIR = eurasia_km/eurasiacon/build/linux2/omap_linux

define TI_SGX_KM_CV_BUILD_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) $(TI_SGX_KM_CV_MAKE_OPTS) \
		-C $(@D)/$(TI_SGX_KM_CV_SUBDIR)
endef

define TI_SGX_KM_CV_INSTALL_TARGET_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) $(TI_SGX_KM_CV_MAKE_OPTS) \
		DISCIMAGE=$(TARGET_DIR) \
		kbuild_install -C $(@D)/$(TI_SGX_KM_CV_SUBDIR)
endef

$(eval $(generic-package))
