Author: nbd Date: 2015-07-10 21:42:12 +0200 (Fri, 10 Jul 2015) New Revision: 46298
Modified: trunk/toolchain/gdb/Makefile Log: 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 <[email protected]> Modified: trunk/toolchain/gdb/Makefile =================================================================== --- trunk/toolchain/gdb/Makefile 2015-07-10 19:42:05 UTC (rev 46297) +++ trunk/toolchain/gdb/Makefile 2015-07-10 19:42:12 UTC (rev 46298) @@ -17,23 +17,21 @@ 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 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
