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:
James Hilliard
2024-08-19 02:43:52 -06:00
committed by Thomas Petazzoni
parent ce3dedc26b
commit a7fe8c88d1

View File

@@ -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))