mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/openfpgaloader: add cmsis-dap support option
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>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
ad32710f59
commit
60621916c2
@@ -10,6 +10,22 @@ config BR2_PACKAGE_OPENFPGALOADER
|
|||||||
|
|
||||||
https://github.com/trabucayre/openFPGALoader/
|
https://github.com/trabucayre/openFPGALoader/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_OPENFPGALOADER
|
||||||
|
|
||||||
|
config BR2_PACAKGE_OPENFPGALOADER_CMSIS
|
||||||
|
bool "CMSIS-DAP support"
|
||||||
|
depends on BR2_PACKAGE_HAS_UDEV # hidapi
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi -> libusb
|
||||||
|
select BR2_PACKAGE_HIDAPI
|
||||||
|
help
|
||||||
|
openfpgaloader CMSIS-DAP support
|
||||||
|
|
||||||
|
comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads"
|
||||||
|
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
comment "openfpgaloader needs a toolchain w/ threads, C++, gcc >= 4.9"
|
comment "openfpgaloader needs a toolchain w/ threads, C++, gcc >= 4.9"
|
||||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||||
!BR2_INSTALL_LIBSTDCPP || \
|
!BR2_INSTALL_LIBSTDCPP || \
|
||||||
|
|||||||
@@ -17,4 +17,11 @@ else
|
|||||||
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
||||||
endif
|
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))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user