2020-02-18 09:32:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# openfpgaloader
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-12-04 06:59:43 +01:00
|
|
|
OPENFPGALOADER_VERSION = 0.6.1
|
|
|
|
OPENFPGALOADER_SITE = $(call github,trabucayre,openFPGALoader,v$(OPENFPGALOADER_VERSION))
|
|
|
|
OPENFPGALOADER_LICENSE = Apache-2.0
|
2020-02-18 09:32:47 +01:00
|
|
|
OPENFPGALOADER_LICENSE_FILES = LICENSE
|
2021-12-04 06:59:43 +01:00
|
|
|
OPENFPGALOADER_DEPENDENCIES = libftdi1 zlib
|
2020-02-18 09:32:47 +01:00
|
|
|
|
2020-08-24 10:38:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
OPENFPGALOADER_DEPENDENCIES += udev
|
|
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=ON
|
|
|
|
else
|
|
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
2020-02-18 09:32:47 +01:00
|
|
|
endif
|
|
|
|
|
2021-12-09 15:14:10 +01:00
|
|
|
ifeq ($(BR2_PACAKGE_OPENFPGALOADER_CMSIS),y)
|
|
|
|
OPENFPGALOADER_DEPENDENCIES += hidapi
|
|
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=ON
|
|
|
|
else
|
|
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_CMSISDAP=OFF
|
|
|
|
endif
|
|
|
|
|
2020-02-18 09:32:47 +01:00
|
|
|
$(eval $(cmake-package))
|