summaryrefslogtreecommitdiff
path: root/toolchain/gdb
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /toolchain/gdb
Initial import
Diffstat (limited to 'toolchain/gdb')
-rw-r--r--toolchain/gdb/Config.in8
-rw-r--r--toolchain/gdb/Makefile47
-rw-r--r--toolchain/gdb/Makefile.inc11
3 files changed, 66 insertions, 0 deletions
diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in
new file mode 100644
index 000000000..03ceced0e
--- /dev/null
+++ b/toolchain/gdb/Config.in
@@ -0,0 +1,8 @@
+comment "Gdb Options"
+
+config ADK_PACKAGE_GDB_CLIENT
+ bool "Build gdb client for the Host"
+ default n
+ help
+ Build gdb to run on the host to debug programs running on the target.
+
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile
new file mode 100644
index 000000000..32e059334
--- /dev/null
+++ b/toolchain/gdb/Makefile
@@ -0,0 +1,47 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+include ../rules.mk
+include Makefile.inc
+
+include ${TOPDIR}/mk/buildhlp.mk
+
+$(WRKBUILD)/.headers:
+$(WRKBUILD)/.configure_done:
+ (cd $(WRKBUILD); \
+ gdb_cv_func_sigsetjmp=yes \
+ ./configure \
+ --prefix=$(STAGING_TOOLS) \
+ --build=$(GNU_HOST_NAME) \
+ --host=$(GNU_HOST_NAME) \
+ --target=$(REAL_GNU_TARGET_NAME) \
+ --disable-dependency-tracking \
+ --without-uiout \
+ --enable-gdbmi \
+ --disable-gdbtk \
+ --without-included-gettext \
+ --disable-libtool-lock \
+ --disable-nls \
+ --with-curses \
+ --enable-threads \
+ --disable-sim \
+ --disable-tui \
+ --disable-werror \
+ --without-x \
+ );
+ touch $@
+
+$(WRKBUILD)/.compiled:
+ $(MAKE) -C $(WRKBUILD) CFLAGS="-fPIC ${HOSTCFLAGS}"
+ touch $@
+
+$(WRKBUILD)/.installed:
+ install -c $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
+ cd $(STAGING_TOOLS)/bin && \
+ ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
+ touch $@
+
+include ${TOPDIR}/mk/toolchain.mk
diff --git a/toolchain/gdb/Makefile.inc b/toolchain/gdb/Makefile.inc
new file mode 100644
index 000000000..106ca30b8
--- /dev/null
+++ b/toolchain/gdb/Makefile.inc
@@ -0,0 +1,11 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+PKG_NAME:= gdb
+PKG_VERSION:= 6.8
+PKG_MD5SUM:= c9da266b884fb8fa54df786dfaadbc7a
+PKG_RELEASE:= 1
+MASTER_SITES:= ${MASTER_SITE_GNU:=gdb/}
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2