diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 2e1eed6f50..823c2e9966 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -44,6 +44,11 @@ config BR2_PACKAGE_HOST_GDB_SIM help This option enables the simulator support in the cross gdb. +config BR2_PACKAGE_HOST_GDB_LZMA + bool "lzma support" + help + This option enables lzma support in the cross gdb. + choice prompt "GDB debugger Version" default BR2_GDB_VERSION_16 diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 685d1fe992..ebb80072cf 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -293,6 +293,14 @@ else HOST_GDB_CONF_OPTS += --disable-sim endif +ifeq ($(BR2_PACKAGE_HOST_GDB_LZMA),y) +HOST_GDB_CONF_OPTS += --with-lzma +HOST_GDB_CONF_OPTS += --with-liblzma-prefix=$(HOST_DIR) +HOST_GDB_DEPENDENCIES += host-xz +else +HOST_GDB_CONF_OPTS += --without-lzma +endif + # Since gdb 9, in-tree builds for GDB are not allowed anymore, # so we create a 'build' subdirectory in the gdb sources, and # build from there.