Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= gdbserver
  5. PKG_VERSION:= 8.0.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3
  8. PKG_DESCR:= remote programm debugger utility
  9. PKG_SECTION:= app/debug
  10. PKG_NEEDS:= c++
  11. PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
  12. PKG_DEPENDS:= libthread-db
  13. PKG_LIBC_DEPENDS:= !musl
  14. PKG_ARCH_DEPENDS:= !microblaze
  15. ifeq ($(ADK_TOOLCHAIN_GDB_6_7_1),y)
  16. DISTFILES:= gdb-6.7.1-avr32-2.1.5.tar.bz2
  17. WRKDIST= $(WRKDIR)/gdb-6.7.1-avr32-2.1.5
  18. else
  19. DISTFILES:= gdb-${PKG_VERSION}.tar.xz
  20. WRKDIST= ${WRKDIR}/gdb-${PKG_VERSION}
  21. endif
  22. WRKSRC= ${WRKDIST}/gdb/gdbserver
  23. include ${ADK_TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,GDBSERVER,gdbserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. ifneq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY),)
  26. TARGET_LDFLAGS+= -static-libstdc++
  27. CONFIGURE_ARGS+= --disable-build-with-cxx --with-libthread-db=$(STAGING_TARGET_DIR)/usr/lib/libthread_db.a
  28. endif
  29. gdbserver-install:
  30. ${INSTALL_DIR} ${IDIR_GDBSERVER}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdbserver ${IDIR_GDBSERVER}/usr/bin/
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk