From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- toolchain/gdb/Config.in | 8 ++++++++ toolchain/gdb/Makefile | 47 ++++++++++++++++++++++++++++++++++++++++++++++ toolchain/gdb/Makefile.inc | 11 +++++++++++ 3 files changed, 66 insertions(+) create mode 100644 toolchain/gdb/Config.in create mode 100644 toolchain/gdb/Makefile create mode 100644 toolchain/gdb/Makefile.inc (limited to 'toolchain/gdb') 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 -- cgit v1.2.3