Ticket #4701: gdb_6.8.Makefile-with-Insight.patch

File gdb_6.8.Makefile-with-Insight.patch, 4.8 KB (added by johnrw, 9 years ago)

Add gdb's frontend Insight to the buildroot

  • toolchain/Config.in

    diff -ruN a/toolchain/Config.in b/toolchain/Config.in
    a b  
    7474        help 
    7575                Enable if you want to build the gdb 
    7676 
     77config INSIGHT 
     78        bool 
     79        prompt "Build insight-gdb" if TOOLCHAINOPTS 
     80        default n 
     81        help 
     82                Enable if you want to build insight-gdb 
     83 
    7784config LARGEFILE 
    7885        bool 
    7986        prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS 
  • toolchain/Makefile

    diff -ruN a/toolchain/Makefile b/toolchain/Makefile
    a b  
    2828curdir:=toolchain 
    2929 
    3030# subdirectories to descend into 
    31 $(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc $(LIBC) $(if $(CONFIG_GLIBC_PORTS),glibc-ports)) 
     31$(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_INSIGHT),insight) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc $(LIBC) $(if $(CONFIG_GLIBC_PORTS),glibc-ports)) 
    3232$(curdir)/builddirs-compile:=$($(curdir)/builddirs-prepare) 
    3333$(curdir)/builddirs-install:=$($(curdir)/builddirs-compile) 
    3434 
  • toolchain/gdb/Makefile

    diff -ruN a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile
    a b  
    77include $(TOPDIR)/rules.mk 
    88 
    99PKG_NAME:=gdb 
    10 PKG_VERSION:=6.3 
     10PKG_VERSION:=6.8 
    1111 
    1212PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    13 PKG_MD5SUM:=05b928f41fa5b482e49ca2c24762a0ae 
     13PKG_MD5SUM:=c9da266b884fb8fa54df786dfaadbc7a 
    1414PKG_SOURCE_URL:=@GNU/gdb 
    1515 
    1616include $(INCLUDE_DIR)/toolchain-build.mk 
     
    2525                --host=$(GNU_HOST_NAME) \ 
    2626                --target=$(REAL_GNU_TARGET_NAME) \ 
    2727                $(DISABLE_NLS) \ 
    28                 --without-uiout --disable-gdbmi \ 
     28                --without-uiout \ 
    2929                --disable-tui --disable-gdbtk --without-x \ 
    3030                --without-included-gettext \ 
    3131                --enable-threads \ 
  • toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch

    diff -ruN a/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch b/toolchain/gdb/patches/600-fix-compile-flag-mismatch.patch
    a b  
     1--- a/gdb/gdbserver/configure 
     2+++ b/gdb/gdbserver/configure 
     3@@ -1239,7 +1239,7 @@ 
     4       ac_cache_corrupted=: ;; 
     5     ,);; 
     6     *) 
     7-      if test "x$ac_old_val" != "x$ac_new_val"; then 
     8+      if test "`echo x$ac_old_val`" != "`echo x$ac_new_val`"; then 
     9        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 
     10 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 
     11        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 
     12--- a/gdb/configure 
     13+++ b/gdb/configure 
     14@@ -272,7 +272,7 @@ 
     15 PACKAGE_BUGREPORT= 
     16  
     17 ac_unique_file="main.c" 
     18-ac_subdirs_all="$ac_subdirs_all doc testsuite" 
     19+ac_subdirs_all="$ac_subdirs_all doc" 
     20 # Factoring default headers for most tests. 
     21 ac_includes_default="\ 
     22 #include <stdio.h> 
     23@@ -3077,7 +3077,7 @@ 
     24  
     25  
     26  
     27-subdirs="$subdirs doc testsuite" 
     28+subdirs="$subdirs doc" 
     29  
     30  
     31 # Provide defaults for some variables set by the per-host and per-target 
  • toolchain/insight/Makefile

    diff -ruN a/toolchain/insight/Makefile b/toolchain/insight/Makefile
    a b  
     1#  
     2# Copyright (C) 2006-2009 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7include $(TOPDIR)/rules.mk 
     8 
     9PKG_NAME:=insight 
     10PKG_VERSION:=6.8 
     11 
     12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     13PKG_MD5SUM:=b403972b35520399663c7054e8132ca9 
     14PKG_SOURCE_URL:=ftp://sourceware.org/pub/insight/releases 
     15PKG_CAT:=bzcat 
     16 
     17STAGING_DIR_HOST:=$(TOOLCHAIN_DIR) 
     18BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) 
     19 
     20include $(INCLUDE_DIR)/host-build.mk 
     21 
     22define Build/Configure 
     23        (cd $(PKG_BUILD_DIR); \ 
     24                gdb_cv_func_sigsetjmp=yes \ 
     25                CFLAGS="-O2" \ 
     26                $(PKG_BUILD_DIR)/configure \ 
     27                --prefix=$(TOOLCHAIN_DIR)/usr \ 
     28                --build=$(GNU_HOST_NAME) \ 
     29                --host=$(GNU_HOST_NAME) \ 
     30                --target=$(REAL_GNU_TARGET_NAME) \ 
     31                $(DISABLE_NLS) \ 
     32                --enable-threads \ 
     33        ); 
     34endef 
     35 
     36define Build/Compile 
     37        $(MAKE) -C $(PKG_BUILD_DIR) 
     38endef 
     39 
     40define Build/Install 
     41        mkdir -p $(TOOLCHAIN_DIR)/usr/bin 
     42        $(INSTALL_BIN) $(PKG_BUILD_DIR)/gdb/insight $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight 
     43        ln -fs $(TARGET_CROSS)insight $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight 
     44        strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight 
     45endef 
     46 
     47define Build/Clean 
     48        rm -rf \ 
     49                $(PKG_BUILD_DIR) \ 
     50                $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)insight \ 
     51                $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-insight 
     52endef 
     53 
     54$(eval $(call HostBuild))