* [Buildroot] [PATCH v2 1/1] package/flashrom: fix cli with BR2_SHARED_LIBS
@ 2024-08-19 8:43 James Hilliard
2024-08-19 10:48 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2024-08-19 8:43 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Thomas Petazzoni
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 8637884057ddc3c1aeb9f0dd285fc6fcf378c26b to
work around a cli build issue which this fixes.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
Changes v1 -> v2:
- add some additional details
---
package/flashrom/flashrom.mk | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/package/flashrom/flashrom.mk b/package/flashrom/flashrom.mk
index 1e7d332dae..030f6816a0 100644
--- a/package/flashrom/flashrom.mk
+++ b/package/flashrom/flashrom.mk
@@ -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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/flashrom: fix cli with BR2_SHARED_LIBS
2024-08-19 8:43 [Buildroot] [PATCH v2 1/1] package/flashrom: fix cli with BR2_SHARED_LIBS James Hilliard
@ 2024-08-19 10:48 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-19 10:48 UTC (permalink / raw)
To: James Hilliard; +Cc: buildroot
On Mon, 19 Aug 2024 02:43:52 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:
> 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 8637884057ddc3c1aeb9f0dd285fc6fcf378c26b to
> work around a cli build issue which this fixes.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> Changes v1 -> v2:
> - add some additional details
> ---
> package/flashrom/flashrom.mk | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-19 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 8:43 [Buildroot] [PATCH v2 1/1] package/flashrom: fix cli with BR2_SHARED_LIBS James Hilliard
2024-08-19 10:48 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox