Since the bump of libftdi1 to version v1.5-48-g22b4667a8 in commit
d8173e084e, the libftdi1.pc file is
installed in $(STAGING_DIR)/pkgconfig/libftdi1.pc instead of
$(STAGING_DIR)/lib/pkgconfig/libftdi1.pc, making it "invisible" to
pkg-config. This is turn causes flashrom to not find libftdi1 and
failing to build when libftdi1 is needed.
This issue is cause by CMAKE_INSTALL_LIBDIR being empty in libftdi1's
CMakeLists.txt, which in turn is due to include(GNUInstallDirs) being
missing. This has been fixed upstream a few commits later, so rather
than backporting a patch, let's just update to the commit containing
the fix, 5e67403c4fb5536a2effe2e91181dd73a2cff91b. The list of changes
upstream is:
5e67403c4fb5536a2effe2e91181dd73a2cff91b cmake: fix building static lib on windows/msvc
2e714eec137f86ca1950457d8226d8cb9b71c495 msvc: quiet uninteresting warnings
d96dbea887373f26755e9873b4ab020f922b7c3b fix unit var warning if ftdi_read_eeprom_location returned error, data would not be initialized
d31e3d5697eacbe87cd310b5bce615f3d8426cc0 cmake: fix elseif statement
c2b7c25e1272222c1719daea5761093fbc9c3010 msvc: fix shadowed variable warning
c4962c38a1ab470fbdc835c231567bd582eb5a5a msvc: fix warnings by using all enum values in case statements
2a992306c0acf938b29fa0cd5fbc160e24424209 Add SHAREDLIBS option
18499a2fa496c20e5e35590bb89eb701fa9fdfea Ignore VSCode temp folder
7676fb59ecd9fac9e5ea39439905c923ee7ee8c9 python/CMakeLists.txt: rework policy CMP0078
cfaec73e0a5ad9d05d62f1f5c393ab1c59ba771b C++ wrapper: get rid of the Boost dependency
12a8de0daba0816227c7010fc1b84d0abf70a500 .editorconfig: fix insert_final_newline option
3d7293651483130af9e8c5fe685d28b226baa99b Ignore clangd specific files
72e0e1e40126a2a9498fb249ca26a727bd670139 examples/async.c: remove unused includes
bfcdea286df81660b980a3bc91902b5970ff6347 examples/async.c: fix sometimes-uninitialized warning
(Yes the commit containing the fix is titled "cmake: fix building
static lib on windows/msvc", but because it adds
include(GNUInstallDirs), it also fixes our problem).
Fixes:
https://autobuild.buildroot.net/results/3600a9b7f323b4610ac67feb7171c0e10b6383d7/
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libftdi1
|
|
#
|
|
################################################################################
|
|
|
|
LIBFTDI1_VERSION = v1.5-62-g5e67403c4fb5536a2effe2e91181dd73a2cff91b
|
|
LIBFTDI1_SITE = git://developer.intra2net.com/libftdi
|
|
LIBFTDI1_INSTALL_STAGING = YES
|
|
LIBFTDI1_DEPENDENCIES = host-pkgconf libusb
|
|
LIBFTDI1_LICENSE = LGPL-2.1 (libftdi1), MIT (libftdi1)
|
|
LIBFTDI1_LICENSE_FILES = LICENSE COPYING.LIB
|
|
LIBFTDI1_CONFIG_SCRIPTS = libftdi1-config
|
|
LIBFTDI1_CONF_OPTS = -DDOCUMENTATION=OFF -DEXAMPLES=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1),y)
|
|
LIBFTDI1_LICENSE += , GPL-2.0 with exception (libftdipp1)
|
|
LIBFTDI1_LICENSE_FILES += COPYING.GPL
|
|
LIBFTDI1_DEPENDENCIES += boost
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS),y)
|
|
LIBFTDI1_DEPENDENCIES += python3 host-swig
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM),y)
|
|
# ftdi_eeprom optionally depends on libintl
|
|
LIBFTDI1_LICENSE += , GPL-2.0 (ftdi_eeprom)
|
|
LIBFTDI1_LICENSE_FILES += COPYING.GPL
|
|
LIBFTDI1_DEPENDENCIES += libconfuse $(TARGET_NLS_DEPENDENCIES)
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=ON
|
|
else
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|