• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gdb/gdb.mk
Waldemar BrodkorbWaldemar Brodkorb committed 86aa4d8d11c31 May 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# gdb
4
#
5
################################################################################
6
​
7
GDB_VERSION = $(call qstrip,$(BR2_GDB_VERSION))
8
GDB_SITE = $(BR2_GNU_MIRROR)/gdb
9
GDB_SOURCE = gdb-$(GDB_VERSION).tar.xz
10
​
11
ifeq ($(BR2_arc),y)
12
GDB_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(GDB_VERSION))
13
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
14
endif
15
​
16
ifeq ($(BR2_microblaze),y)
17
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
18
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
19
endif
20
​
21
GDB_LICENSE = GPLv2+, LGPLv2+, GPLv3+, LGPLv3+
22
GDB_LICENSE_FILES = COPYING COPYING.LIB COPYING3 COPYING3.LIB
23
​
24
# We only want gdbserver and not the entire debugger.
25
ifeq ($(BR2_PACKAGE_GDB_DEBUGGER),)
26
GDB_SUBDIR = gdb/gdbserver
27
HOST_GDB_SUBDIR = .
28
else
29
GDB_DEPENDENCIES = ncurses \
30
    $(if $(BR2_PACKAGE_LIBICONV),libiconv)
31
endif
32
​
33
# For the host variant, we really want to build with XML support,
34
# which is needed to read XML descriptions of target architectures. We
35
# also need ncurses.
36
HOST_GDB_DEPENDENCIES = host-expat host-ncurses
37
​
38
# Apply the Xtensa specific patches
39
XTENSA_CORE_NAME = $(call qstrip, $(BR2_XTENSA_CORE_NAME))
40
ifneq ($(XTENSA_CORE_NAME),)
41
define GDB_XTENSA_PRE_PATCH
42
    tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(XTENSA_CORE_NAME).tar \
43
        -C $(@D) --strip-components=1 gdb
44
endef
45
GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
46
HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
47
endif
48
​
49
# Prevent gdb to build the documentation
50
define GDB_DISABLE_DOC
51
    $(SED) '/^SUBDIRS =/ s/doc//' $(@D)/gdb/Makefile.in
52
    if test -e $(@D)/bfd/doc/Makefile.in ; then \
53
        $(SED) 's/^INFO_DEPS =.*$$/INFO_DEPS =/' $(@D)/bfd/doc/Makefile.in ; \
54
    fi
55
    if test -e $(@D)/gprof/Makefile.in ; then \
56
        $(SED) 's/^INFO_DEPS =.*$$/INFO_DEPS =/' $(@D)/gprof/Makefile.in ; \
57
    fi
58
endef
59
GDB_PRE_CONFIGURE_HOOKS += GDB_DISABLE_DOC
60
HOST_GDB_PRE_CONFIGURE_HOOKS += GDB_DISABLE_DOC
61
​
62
# When gdb sources are fetched from the binutils-gdb repository, they
63
# also contain the binutils sources, but binutils shouldn't be built,
64
# so we disable it.
65
GDB_DISABLE_BINUTILS_CONF_OPTS = \
66
    --disable-binutils \
67
    --disable-ld \
68
    --disable-gas
69
​
70
GDB_CONF_ENV = \
71
    ac_cv_type_uintptr_t=yes \
72
    gt_cv_func_gettext_libintl=yes \
73
    ac_cv_func_dcgettext=yes \
74
    gdb_cv_func_sigsetjmp=yes \
75
    bash_cv_func_strcoll_broken=no \
76
    bash_cv_must_reinstall_sighandlers=no \
77
    bash_cv_func_sigsetjmp=present \
78
    bash_cv_have_mbstate_t=yes \
79
    gdb_cv_func_sigsetjmp=yes
80
​
81
# The shared only build is not supported by gdb, so enable static build for
82
# build-in libraries with --enable-static.
83
GDB_CONF_OPTS = \
84
    --without-uiout \
85
    --disable-gdbtk \
86
    --without-x \
87
    --disable-sim \
88
    $(GDB_DISABLE_BINUTILS_CONF_OPTS) \
89
    $(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \
90
    --with-curses \
91
    --without-included-gettext \
92
    --disable-werror \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.