aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Jonas Zaddach <jzaddach@sourcefire.com>2018-04-10 12:37:22 -0700
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-04-30 23:26:36 +0200
commitf92052857e9792cd0eeaf3175edb496a58a3f49c (patch)
tree1e1eae0296bd63b3316c2fb9d3a110d6a98598eb /package
parent45a39b3e2ba42b72d19bfcef30db1b8da9ead51a (diff)
downloadbuildroot-f92052857e9792cd0eeaf3175edb496a58a3f49c.tar.gz
buildroot-f92052857e9792cd0eeaf3175edb496a58a3f49c.tar.bz2
package/gdb: don't remove support files if python chosen
If one wants to use GDB with python support on the target, you need the support files installed by GDB. These get usually deleted to save some space, so I just wrapped the Makefile code deleting them in a conditional block depending on if python support is active or not. Signed-off-by: Jonas Zaddach <jzaddach@cisco.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Thomas: - use positive logic "if python is disabled" - put the comment inside the condition, as suggested by Arnout] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit fa5ca6974d2504dccc35f43dcabcf30f076d8685) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package')
-rw-r--r--package/gdb/gdb.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 5ca464ad46..ad81818a35 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -164,6 +164,7 @@ else
GDB_CONF_OPTS += --without-zlib
endif
+ifeq ($(BR2_PACKAGE_GDB_PYTHON),)
# This removes some unneeded Python scripts and XML target description
# files that are not useful for a normal usage of the debugger.
define GDB_REMOVE_UNNEEDED_FILES
@@ -171,6 +172,7 @@ define GDB_REMOVE_UNNEEDED_FILES
endef
GDB_POST_INSTALL_TARGET_HOOKS += GDB_REMOVE_UNNEEDED_FILES
+endif
# This installs the gdbserver somewhere into the $(HOST_DIR) so that
# it becomes an integral part of the SDK, if the toolchain generated