source: trunk/toolchain/gdb/Makefile

Last change on this file was 48989, checked in by blogic, 5 months ago

toolchain/gdb: Update to 7.11

Update gdb to version 7.11

Signed-off-by: Hannu Nyman <hannu.nyman@…>

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1#
2# Copyright (C) 2006-2016 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:=gdb
10
11ifeq ($(CONFIG_arc),y)
12PKG_VERSION:=arc-2015.06-gdb
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/archive/arc-2015.06-gdb/
16PKG_MD5SUM:=d318829bfd2ed62714817f0d25706825
17GDB_DIR:=binutils-$(PKG_NAME)-$(PKG_VERSION)
18else
19PKG_VERSION:=7.11
20
21PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
22PKG_SOURCE_URL:=@GNU/gdb
23PKG_MD5SUM:=b5c784685e1cde65ba135feea86b6d75
24GDB_DIR:=$(PKG_NAME)-$(PKG_VERSION)
25endif
26
27PATCH_DIR:=./patches/$(PKG_VERSION)
28
29HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(GDB_DIR)
30
31HOST_BUILD_PARALLEL:=1
32
33include $(INCLUDE_DIR)/toolchain-build.mk
34
35HOST_CONFIGURE_VARS += \
36        gdb_cv_func_sigsetjmp=yes
37
38HOST_CONFIGURE_ARGS = \
39        --prefix=$(TOOLCHAIN_DIR) \
40        --build=$(GNU_HOST_NAME) \
41        --host=$(GNU_HOST_NAME) \
42        --target=$(REAL_GNU_TARGET_NAME) \
43        --disable-werror \
44        --without-uiout \
45        --disable-tui --disable-gdbtk --without-x \
46        --without-included-gettext \
47        --enable-threads \
48        --with-expat \
49        --without-python \
50        --disable-binutils \
51        --disable-ld \
52        --disable-gas \
53        --disable-sim
54
55define Host/Install
56        mkdir -p $(TOOLCHAIN_DIR)/bin
57        $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
58        ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
59        strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
60endef
61
62define Host/Clean
63        rm -rf \
64                $(HOST_BUILD_DIR) \
65                $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
66                $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
67endef
68
69$(eval $(call HostBuild))
Note: See TracBrowser for help on using the repository browser.