Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. PKG_NAME:=gdb
  9. PKG_REV:=7.5-2012.12-1
  10. PKG_VERSION_MAJOR:=7.5
  11. PKG_VERSION:=linaro-$(PKG_REV)
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_MD5SUM:=016cf2c5ed06adf7c601e3301a14e370
  14. PKG_SOURCE_URL:=http://launchpad.net/gdb-linaro/$(PKG_VERSION_MAJOR)/$(PKG_REV)/+download/
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/toolchain-build.mk
  17. define Host/Configure
  18. (cd $(HOST_BUILD_DIR); \
  19. gdb_cv_func_sigsetjmp=yes \
  20. CFLAGS="-O2" \
  21. $(HOST_BUILD_DIR)/configure \
  22. --prefix=$(TOOLCHAIN_DIR) \
  23. --build=$(GNU_HOST_NAME) \
  24. --host=$(GNU_HOST_NAME) \
  25. --target=$(REAL_GNU_TARGET_NAME) \
  26. --disable-werror \
  27. $(DISABLE_NLS) \
  28. --without-uiout \
  29. --disable-tui --disable-gdbtk --without-x \
  30. --without-included-gettext \
  31. --enable-threads \
  32. );
  33. endef
  34. define Host/Install
  35. mkdir -p $(TOOLCHAIN_DIR)/bin
  36. $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  37. ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  38. strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  39. endef
  40. define Host/Clean
  41. rm -rf \
  42. $(HOST_BUILD_DIR) \
  43. $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
  44. $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  45. endef
  46. $(eval $(call HostBuild))