60621916c2
CMSIS-DAP support depends on hidapi, but this package has depends on udev so instead of adding this option by default, this let user decide. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> [Arnout: also propagate hidapi's NPTL dependency] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
28 lines
816 B
Makefile
28 lines
816 B
Makefile
################################################################################
|
|
#
|
|
# openfpgaloader
|
|
#
|
|
################################################################################
|
|
|
|
OPENFPGALOADER_VERSION = 0.6.1
|
|
OPENFPGALOADER_SITE = $(call github,trabucayre,openFPGALoader,v$(OPENFPGALOADER_VERSION))
|
|
OPENFPGALOADER_LICENSE = Apache-2.0
|
|
OPENFPGALOADER_LICENSE_FILES = LICENSE
|
|
OPENFPGALOADER_DEPENDENCIES = libftdi1 zlib
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
OPENFPGALOADER_DEPENDENCIES += udev
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=ON
|
|
else
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACAKGE_OPENFPGALOADER_CMSIS),y)
|
|
OPENFPGALOADER_DEPENDENCIES += hidapi
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=ON
|
|
else
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|