mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-29 21:41:43 -09:00
package/flashrom: fix cli with BR2_SHARED_LIBS
Flashrom requires --default-library=both for the cli when building
with BR2_SHARED_LIBS.
As such set --default-library=both instead of disabling it.
The cli was disabled in 8637884057 to
work around a cli build issue which this fixes.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
ce3dedc26b
commit
a7fe8c88d1
@@ -10,6 +10,7 @@ FLASHROM_LICENSE = GPL-2.0+
|
||||
FLASHROM_LICENSE_FILES = COPYING
|
||||
FLASHROM_INSTALL_STAGING = YES
|
||||
FLASHROM_CONF_OPTS = \
|
||||
-Dclassic_cli=enabled \
|
||||
-Dclassic_cli_print_wiki=disabled \
|
||||
-Dich_descriptors_tool=enabled \
|
||||
-Dtests=disabled \
|
||||
@@ -78,10 +79,8 @@ endif
|
||||
|
||||
FLASHROM_CONF_OPTS += -Dprogrammer=$(subst $(space),$(comma),$(strip $(FLASHROM_PROGRAMMERS)))
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),)
|
||||
FLASHROM_CONF_OPTS += -Dclassic_cli=enabled
|
||||
else
|
||||
FLASHROM_CONF_OPTS += -Dclassic_cli=disabled
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
FLASHROM_CONF_OPTS += --default-library=both
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
|
||||
Reference in New Issue
Block a user