diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index d1aa2afcd7..7be53d9d2e 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -39,6 +39,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_15 diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 425619165e..2c7c61a238 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -286,6 +286,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.