binutils: add option to build libopcodes for target

It provides functionality to disassemble executable binaries.

Signed-off-by: Dries Deschout <dries.deschout@dodeco.eu>
This commit is contained in:
Dries Deschout 2022-09-12 20:22:12 +02:00 committed by Chris Packham
parent 40c83f1074
commit 61c4ccac5c
2 changed files with 8 additions and 2 deletions

View File

@ -184,6 +184,11 @@ config BINUTILS_FOR_TARGET_BFD
prompt "libbfd"
default y
config BINUTILS_FOR_TARGET_OPCODES
bool
prompt "libopcodes"
default y
endif # BINUTILS_FOR_TARGET
if ARCH_BINFMT_FLAT

View File

@ -312,6 +312,7 @@ do_binutils_for_target() {
[ "${CT_BINUTILS_FOR_TARGET_IBERTY}" = "y" ] && targets+=("libiberty")
[ "${CT_BINUTILS_FOR_TARGET_BFD}" = "y" ] && targets+=("bfd")
[ "${CT_BINUTILS_FOR_TARGET_OPCODES}" = "y" ] && targets+=("opcodes")
for t in "${targets[@]}"; do
build_targets+=("all-${t}")
install_targets+=("install-${t}")