![Gwenhael Goavec-Merou](/assets/img/avatar_default.png)
- argp is no more used;
- UDEV dependency is now optional
Fix:
- http://autobuild.buildroot.org/results/f3f3cc216ae42bb8a8925b0df7c1a3cc79b027d7
/home/buildroot/autobuild/instance-1/output-1/build/openfpgaloader-849e5751e06d4d00f323205d5f02ee01f9f59a61/src/spiFlash.cpp:
In member function 'void SPIFlash::jtag_write_read(uint8_t, uint8_t*, uint8_t*, uint16_t)':
/home/buildroot/autobuild/instance-1/output-1/build/openfpgaloader-849e5751e06d4d00f323205d5f02ee01f9f59a61/src/spiFlash.cpp:92:43:
error: variable-sized object 'jtx' may not be initialized
uint8_t jtx[xfer_len] = {reverseByte(cmd)};
^
and
src/gowin.cpp:73:11: error: 'runtime_error' is not a member of 'std'
throw std::runtime_error("both write-flash and write-sram can't be set");
^
src/gowin.cpp:81:10: error: 'runtime_error' is not a member of 'std'
throw std::runtime_error("incompatible file format");
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
[yann.morin.1998@free.fr:
- don't add a sub-option for udev; directly rely on udev being avail
- fix conflict after 1ca0077d91
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
21 lines
649 B
Makefile
21 lines
649 B
Makefile
################################################################################
|
|
#
|
|
# openfpgaloader
|
|
#
|
|
################################################################################
|
|
|
|
OPENFPGALOADER_VERSION = 381c67de00a3102cf6e9bb20ca84030a71c7a0f2
|
|
OPENFPGALOADER_SITE = $(call github,trabucayre,openFPGALoader,$(OPENFPGALOADER_VERSION))
|
|
OPENFPGALOADER_LICENSE = AGPL-3.0
|
|
OPENFPGALOADER_LICENSE_FILES = LICENSE
|
|
OPENFPGALOADER_DEPENDENCIES = libftdi1
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
OPENFPGALOADER_DEPENDENCIES += udev
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=ON
|
|
else
|
|
OPENFPGALOADER_CONF_OPTS += -DENABLE_UDEV=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|