Skip to contentSkip to conversation

package/flashrom: fix cli with BR2_SHARED_LIBS

PATCH Superseded James Hilliard 2 participants 5 messages Aug 19, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/flashrom/flashrom.mk | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/flashrom/flashrom.mk +3 -4
index 1e7d332dae..030f6816a0 100644
@@ -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))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello,

Quoted 6 lines · On Sun, 18 Aug 2024 22:02:13 -0600 James Hilliard <[email protected]>…

Flashrom requires --default-library=both for the cli when building with BR2_SHARED_LIBS.

As such set --default-library=both instead of disabling it.

Thanks for the patch!

Is this fixing a build issue? If so, which one, which defconfig? Or perhaps an autobuilder failure reference?

When was this problem introduced?

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · On Sun, 18 Aug 2024 22:02:13 -0600 James Hilliard <[email protected]>…

Flashrom requires --default-library=both for the cli when building with BR2_SHARED_LIBS.

Quoted 9 lines
Quoted 3 lines

As such set --default-library=both instead of disabling it.

Thanks for the patch!

Is this fixing a build issue? If so, which one, which defconfig? Or perhaps an autobuilder failure reference?

It fixes an issue where the flashlib cli was not being built at all, only the library was for BR2_SHARED_LIBS systems.

Quoted 3 lines

When was this problem introduced?

When bumping flashrom to version 1.4.0-rc2:
https://github.com/buildroot/buildroot/commit/8637884057ddc3c1aeb9f0dd285fc6fcf378c26b

Quoted 9 lines

Thanks!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Hello James,

Quoted 5 lines · On Mon, 19 Aug 2024 02:31:02 -0600 James Hilliard <[email protected]>…
Quoted 2 lines

Is this fixing a build issue? If so, which one, which defconfig? Or perhaps an autobuilder failure reference?

It fixes an issue where the flashlib cli was not being built at all, only the library was for BR2_SHARED_LIBS systems.

So there is no build issue, but parts that are expect to be built are not built?

Quoted 4 lines
Quoted 1 line

When was this problem introduced?

When bumping flashrom to version 1.4.0-rc2:
https://github.com/buildroot/buildroot/commit/8637884057ddc3c1aeb9f0dd285fc6fcf378c26b

Thanks. Could you clarify both aspects in the commit log?

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 5 lines · Thomas Petazzoni

Hello James,

On Mon, 19 Aug 2024 02:31:02 -0600
James Hilliard <[email protected]> wrote:

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Is this fixing a build issue? If so, which one, which defconfig? Or perhaps an autobuilder failure reference?

It fixes an issue where the flashlib cli was not being built at all, only the library was for BR2_SHARED_LIBS systems.

So there is no build issue, but parts that are expect to be built are not built?

This fixes the bug which was the reason the cli was originally disabled.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

When was this problem introduced?

When bumping flashrom to version 1.4.0-rc2:

https://github.com/buildroot/buildroot/commit/8637884057ddc3c1aeb9f0dd285fc6fcf378c26b

Thanks. Could you clarify both aspects in the commit log?

Added some more details in v2:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Quoted 9 lines

Thanks!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot