Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_VERSION:=7.8
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/gdb
  12. PKG_MD5SUM:=bd958fe9019d7c7896f29f6724a764ed
  13. HOST_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/toolchain-build.mk
  15. HOST_CONFIGURE_VARS += \
  16. gdb_cv_func_sigsetjmp=yes
  17. HOST_CONFIGURE_ARGS = \
  18. --prefix=$(TOOLCHAIN_DIR) \
  19. --build=$(GNU_HOST_NAME) \
  20. --host=$(GNU_HOST_NAME) \
  21. --target=$(REAL_GNU_TARGET_NAME) \
  22. --disable-werror \
  23. --without-uiout \
  24. --disable-tui --disable-gdbtk --without-x \
  25. --without-included-gettext \
  26. --enable-threads \
  27. --with-expat
  28. define Host/Install
  29. mkdir -p $(TOOLCHAIN_DIR)/bin
  30. $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  31. ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  32. strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
  33. endef
  34. define Host/Clean
  35. rm -rf \
  36. $(HOST_BUILD_DIR) \
  37. $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
  38. $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
  39. endef
  40. $(eval $(call HostBuild))