lightning: Require a BR toolchain for disassembler support
PATCH 1/1 lightning: Require a BR toolchain for disassembler support
Disassembler support in Lightning requires libopcodes to be installed. We cannot assume that an external toolchain will provide it. As such, we now require a Buildroot toolchain for this option to be enabled.
This fixes the following build issue:
http://autobuild.buildroot.net/results/ed7/ed7abf07f5f870ac332ed909f3cd1d92a2b8d75c/
--- package/lightning/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
package/lightning/Config.in +4 -0
@@ -14,6 +14,7 @@ config BR2_PACKAGE_LIGHTNING_DISASSEMBLER bool "enable disassembler" select BR2_PACKAGE_BINUTILS select BR2_PACKAGE_ZLIB + depends on BR2_TOOLCHAIN_BUILDROOT depends on !BR2_aarch64 && !BR2_nios2 # binutils depends on BR2_USE_WCHAR # binutils help
@@ -23,4 +24,7 @@ comment "lightning disassembler needs a toolchain w/ wchar" depends on !BR2_aarch64 && !BR2_nios2 depends on !BR2_USE_WCHAR +comment "lightning disassembler requires a buildroot toolchain" + depends on !BR2_TOOLCHAIN_BUILDROOT + endif
Signature · 1 line
2.1.4
PATCH 1/1 lightning: Require a BR toolchain for disassembler support
Dear Paul Cercueil,
Quoted 11 lines · Paul Cercueil
Disassembler support in Lightning requires libopcodes to be installed. We cannot assume that an external toolchain will provide it. As such, we now require a Buildroot toolchain for this option to be enabled.
This fixes the following build issue:
http://autobuild.buildroot.net/results/ed7/ed7abf07f5f870ac332ed909f3cd1d92a2b8d75c/Signed-off-by Paul Cercueil <[email protected]>--- package/lightning/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
This doesn't make sense. The libopcodes library is part of the target binutils, which can be enabled regardless of whether an internal (Buildroot) or external toolchain is used.
When I merged the Lightning package, I did some testing including of the disassembler support, with a ARM external toolchain, and it was building fine.
So, this patch is not the proper solution, I believe.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com