aboutsummaryrefslogtreecommitdiff
path: root/toolchain/gdb/gdb.mk
diff options
context:
space:
mode:
authorGravatar Manuel Novoa III <mjn3@codepoet.org>2005-08-04 03:49:25 +0000
committerGravatar Manuel Novoa III <mjn3@codepoet.org>2005-08-04 03:49:25 +0000
commit42c9321a15c2a98dd72cc09c7ef5900b5097c6eb (patch)
treefb3d292c6c6dca773cd9385d676c6f6fe8028243 /toolchain/gdb/gdb.mk
parentee69884eed6a41c4769a6f03ba7e2a7e64f17c1c (diff)
downloadbuildroot-42c9321a15c2a98dd72cc09c7ef5900b5097c6eb.tar.gz
buildroot-42c9321a15c2a98dd72cc09c7ef5900b5097c6eb.tar.bz2
Add BR2_CROSS_TOOLCHAIN_TARGET_UTILS to allow bundling of some useful debug
apps with a deployed cross toolchain. Should probably do ltrace as well... Also, add another compat symlink for cross gdb.
Diffstat (limited to 'toolchain/gdb/gdb.mk')
-rw-r--r--toolchain/gdb/gdb.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/toolchain/gdb/gdb.mk b/toolchain/gdb/gdb.mk
index ed37a75a07..95d6d3dae5 100644
--- a/toolchain/gdb/gdb.mk
+++ b/toolchain/gdb/gdb.mk
@@ -123,6 +123,11 @@ $(GDB_SERVER_DIR)/gdbserver: $(GDB_SERVER_DIR)/.configured
$(STRIP) $(GDB_SERVER_DIR)/gdbserver
$(TARGET_DIR)/usr/bin/gdbserver: $(GDB_SERVER_DIR)/gdbserver
+ifeq ($(strip $(BR2_CROSS_TOOLCHAIN_TARGET_UTILS)),y)
+ mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils
+ install -c $(GDB_SERVER_DIR)/gdbserver \
+ $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils/gdbserver
+endif
install -c $(GDB_SERVER_DIR)/gdbserver $(TARGET_DIR)/usr/bin/gdbserver
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
@@ -164,8 +169,10 @@ $(GDB_CLIENT_DIR)/gdb/gdb: $(GDB_CLIENT_DIR)/.configured
$(TARGET_CROSS)gdb: $(GDB_CLIENT_DIR)/gdb/gdb
install -c $(GDB_CLIENT_DIR)/gdb/gdb $(TARGET_CROSS)gdb
- ln -fs ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
+ ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb
+ ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
+ $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gdb
gdbclient: $(TARGET_CROSS)gdb