gdb: update to 7.5-2012.12-1
[openwrt/openwrt.git] / toolchain / gdb / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gdb
10 PKG_REV:=7.5-2012.12-1
11 PKG_VERSION_MAJOR:=7.5
12 PKG_VERSION:=linaro-$(PKG_REV)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_MD5SUM:=016cf2c5ed06adf7c601e3301a14e370
16 PKG_SOURCE_URL:=http://launchpad.net/gdb-linaro/$(PKG_VERSION_MAJOR)/$(PKG_REV)/+download/
17
18 HOST_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/toolchain-build.mk
21
22 define Host/Configure
23 (cd $(HOST_BUILD_DIR); \
24 gdb_cv_func_sigsetjmp=yes \
25 CFLAGS="-O2" \
26 $(HOST_BUILD_DIR)/configure \
27 --prefix=$(TOOLCHAIN_DIR) \
28 --build=$(GNU_HOST_NAME) \
29 --host=$(GNU_HOST_NAME) \
30 --target=$(REAL_GNU_TARGET_NAME) \
31 --disable-werror \
32 $(DISABLE_NLS) \
33 --without-uiout \
34 --disable-tui --disable-gdbtk --without-x \
35 --without-included-gettext \
36 --enable-threads \
37 );
38 endef
39
40 define Host/Install
41 mkdir -p $(TOOLCHAIN_DIR)/bin
42 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
43 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
44 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
45 endef
46
47 define Host/Clean
48 rm -rf \
49 $(HOST_BUILD_DIR) \
50 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
51 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
52 endef
53
54 $(eval $(call HostBuild))