aboutsummaryrefslogtreecommitdiff
path: root/toolchain/gdb
diff options
context:
space:
mode:
authorGravatar Maxim Grigoriev <maxim2405@gmail.com>2009-07-24 02:32:33 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2009-07-24 02:32:33 +0200
commitadb9e905da23a26c00ab2f811f3359d37aaac4ae (patch)
treeddfa3eda65790648bb6aa5a25e226781ddbc9e9d /toolchain/gdb
parentebb049593653f51475ca255445058a70a373fb62 (diff)
downloadbuildroot-adb9e905da23a26c00ab2f811f3359d37aaac4ae.tar.gz
buildroot-adb9e905da23a26c00ab2f811f3359d37aaac4ae.tar.bz2
toolchain: xtensa toolchain patch support
Part of #163. Signed-off-by: Maxim Grigoriev <maxim2405@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/gdb')
-rw-r--r--toolchain/gdb/gdb.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/gdb/gdb.mk b/toolchain/gdb/gdb.mk
index ba8a1f2737..29c4c9c0b8 100644
--- a/toolchain/gdb/gdb.mk
+++ b/toolchain/gdb/gdb.mk
@@ -19,6 +19,11 @@ GDB_SITE:=$(BR2_GNU_MIRROR)/gdb
GDB_PATCH_DIR:=toolchain/gdb/$(GDB_OFFICIAL_VERSION)
endif
+ifneq ($(filter xtensa%,$(ARCH)),)
+include target/xtensa/patch.in
+GDB_PATCH_EXTRA:=$(call XTENSA_PATCH,gdb,$(GDB_PATCH_DIR),. ..)
+endif
+
GDB_DIR:=$(TOOL_BUILD_DIR)/gdb-$(GDB_OFFICIAL_VERSION)
$(DL_DIR)/$(GDB_SOURCE):
@@ -33,7 +38,7 @@ ifeq ($(GDB_VERSION),snapshot)
tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1)
ln -sf $(TOOL_BUILD_DIR)/$(shell tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) $(GDB_DIR)
endif
- toolchain/patch-kernel.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch
+ toolchain/patch-kernel.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch $(GDB_PATCH_EXTRA)
$(CONFIG_UPDATE) $(@D)
touch $@