diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-10 19:42:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-10 19:42:12 +0000 |
commit | 5da5af14ddffb02d4f181e92f240a7de7cca321c (patch) | |
tree | 114b276a30a741cbdfe9bd1d9983405c2609d182 | |
parent | 39492aef2b08cf92cc72799c72071613eadd2ac2 (diff) | |
download | master-187ad058-5da5af14ddffb02d4f181e92f240a7de7cca321c.tar.gz master-187ad058-5da5af14ddffb02d4f181e92f240a7de7cca321c.tar.bz2 master-187ad058-5da5af14ddffb02d4f181e92f240a7de7cca321c.zip |
toolchain/gdb: use expat library to be able to parse target machine definitions
Fixes gdbserver debugging with at least mvebu, possibly others
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46298 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | toolchain/gdb/Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index d3f1e8c0aa..fa5179a5dc 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -17,22 +17,20 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/toolchain-build.mk -define Host/Configure - (cd $(HOST_BUILD_DIR); \ - gdb_cv_func_sigsetjmp=yes \ - CFLAGS="-O2" \ - $(HOST_BUILD_DIR)/configure \ - --prefix=$(TOOLCHAIN_DIR) \ - --build=$(GNU_HOST_NAME) \ - --host=$(GNU_HOST_NAME) \ - --target=$(REAL_GNU_TARGET_NAME) \ - --disable-werror \ - --without-uiout \ - --disable-tui --disable-gdbtk --without-x \ - --without-included-gettext \ - --enable-threads \ - ); -endef +HOST_CONFIGURE_VARS += \ + gdb_cv_func_sigsetjmp=yes + +HOST_CONFIGURE_ARGS = \ + --prefix=$(TOOLCHAIN_DIR) \ + --build=$(GNU_HOST_NAME) \ + --host=$(GNU_HOST_NAME) \ + --target=$(REAL_GNU_TARGET_NAME) \ + --disable-werror \ + --without-uiout \ + --disable-tui --disable-gdbtk --without-x \ + --without-included-gettext \ + --enable-threads \ + --with-expat define Host/Install mkdir -p $(TOOLCHAIN_DIR)/bin |