Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2006-2013 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.6-2013.05
  10. PKG_VERSION_MAJOR:=7.6
  11. PKG_VERSION:=linaro-$(PKG_REV)
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_MD5SUM:=816290b91cff03912320089d353e8a12
  14. PKG_SOURCE_URL:=https://releases.linaro.org/archive/13.05/components/toolchain/gdb-linaro/
  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. --without-uiout \
  28. --disable-tui --disable-gdbtk --without-x \
  29. --without-included-gettext \
  30. --enable-threads \
  31. );
  32. endef
  33. define Host/Install
  34. mkdir -p $(TOOLCHAIN_DIR)/bin
  35. $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  36. ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  37. strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  38. endef
  39. define Host/Clean
  40. rm -rf \
  41. $(HOST_BUILD_DIR) \
  42. $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
  43. $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  44. endef
  45. $(eval $(call HostBuild))