• 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/toolchain/gdb/gdb.mk
Thomas PetazzoniThomas Petazzoni committed 9a70663904f03 Feb 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
######################################################################
#
# gdb
#
######################################################################
GDB_VERSION:=$(call qstrip,$(BR2_GDB_VERSION))
​
GDB_SOURCE:=gdb-$(GDB_VERSION).tar.bz2
GDB_CAT:=$(BZCAT)
​
ifeq ($(findstring avr32,$(GDB_VERSION)),avr32)
 GDB_SITE:=ftp://www.at91.com/pub/buildroot/
 GDB_PATCH_DIR:=toolchain/gdb/$(GDB_VERSION)
else
 GDB_SITE:=$(BR2_GNU_MIRROR)/gdb
 GDB_PATCH_DIR:=toolchain/gdb/$(GDB_VERSION)
endif
​
GDB_DIR:=$(TOOLCHAIN_DIR)/gdb-$(GDB_VERSION)
​
$(DL_DIR)/$(GDB_SOURCE):
    $(call DOWNLOAD,$(GDB_SITE)/$(GDB_SOURCE))
​
gdb-unpacked: $(GDB_DIR)/.unpacked
$(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE)
    mkdir -p $(GDB_DIR)
    $(GDB_CAT) $(DL_DIR)/$(GDB_SOURCE) | tar -C $(GDB_DIR) $(TAR_STRIP_COMPONENTS)=1 $(TAR_OPTIONS) -
ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),)
    tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(call qstrip, \
        $(BR2_XTENSA_CORE_NAME)).tar -C $(@D) --strip-components=1 gdb
endif
ifneq ($(wildcard $(GDB_PATCH_DIR)),)
    support/scripts/apply-patches.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch
endif
    $(call CONFIG_UPDATE,$(@D))
    touch $@
​
gdb-patched: $(GDB_DIR)/.unpacked
​
gdb-source: $(DL_DIR)/$(GDB_SOURCE)
gdb-dirclean:
    rm -rf $(GDB_DIR)
​
######################################################################
#
# gdb target
#
######################################################################
​
GDB_TARGET_DIR:=$(BUILD_DIR)/gdb-$(GDB_VERSION)-target
​
GDB_TARGET_CONFIGURE_VARS:= \
    ac_cv_type_uintptr_t=yes \
    gt_cv_func_gettext_libintl=yes \
    ac_cv_func_dcgettext=yes \
    gdb_cv_func_sigsetjmp=yes \
    bash_cv_func_strcoll_broken=no \
    bash_cv_must_reinstall_sighandlers=no \
    bash_cv_func_sigsetjmp=present \
    bash_cv_have_mbstate_t=yes
​
$(GDB_TARGET_DIR)/.configured: $(GDB_DIR)/.unpacked
    mkdir -p $(GDB_TARGET_DIR)
    (cd $(GDB_TARGET_DIR); \
        gdb_cv_func_sigsetjmp=yes \
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_LDFLAGS) -Wno-error" \
        CFLAGS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS) -Wno-error" \
        $(GDB_TARGET_CONFIGURE_VARS) \
        $(GDB_DIR)/configure $(QUIET) \
        --cache-file=/dev/null \
        --build=$(GNU_HOST_NAME) \
        --host=$(GNU_TARGET_NAME) \
        --target=$(GNU_TARGET_NAME) \
        --prefix=/usr \
        $(DISABLE_NLS) \
        --without-uiout $(DISABLE_GDBMI) \
        --disable-tui --disable-gdbtk --without-x \
        --disable-sim --enable-gdbserver \
        --without-included-gettext \
        --disable-werror \
        $(QUIET) \
    )
ifeq ($(BR2_ENABLE_LOCALE),y)
    -$(SED) "s,^INTL *=.*,INTL = -lintl,g;" $(GDB_DIR)/gdb/Makefile
endif
    touch $@
​
$(GDB_TARGET_DIR)/gdb/gdb: $(GDB_TARGET_DIR)/.configured
    # force ELF support since it fails due to BFD linking problems
    gdb_cv_var_elf=yes \
    $(TARGET_MAKE_ENV) \
  • 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.