diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 823c2e9966..61fe32d8ff 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -49,6 +49,11 @@ config BR2_PACKAGE_HOST_GDB_LZMA help This option enables lzma support in the cross gdb. +config BR2_PACKAGE_HOST_GDB_XXHASH + bool "xxhash support" + help + This option enables xxhash 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 ebb80072cf..cfec0585da 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -217,6 +217,14 @@ else GDB_CONF_OPTS += --without-expat endif +ifeq ($(BR2_PACKAGE_XXHASH),y) +GDB_CONF_OPTS += --with-xxhash +GDB_CONF_OPTS += --with-xxhash-prefix=$(STAGING_DIR)/usr +GDB_DEPENDENCIES += xxhash +else +GDB_CONF_OPTS += --without-xxhash +endif + ifeq ($(BR2_PACKAGE_XZ),y) GDB_CONF_OPTS += --with-lzma GDB_CONF_OPTS += --with-liblzma-prefix=$(STAGING_DIR)/usr @@ -301,6 +309,14 @@ else HOST_GDB_CONF_OPTS += --without-lzma endif +ifeq ($(BR2_PACKAGE_HOST_GDB_XXHASH),y) +HOST_GDB_CONF_OPTS += --with-xxhash +HOST_GDB_CONF_OPTS += --with-xxhash-prefix=$(HOST_DIR) +HOST_GDB_DEPENDENCIES += host-xxhash +else +HOST_GDB_CONF_OPTS += --without-xxhash +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.