Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= 14.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772
  8. PKG_DESCR:= remote program debugger utility
  9. PKG_SECTION:= app/debug
  10. PKG_NEEDS:= c++
  11. PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
  12. PKG_DEPENDS:= libthread-db libgmp
  13. PKG_BUILDDEP:= gmp
  14. PKG_LIBC_DEPENDS:= !musl
  15. PKG_ARCH_DEPENDS:= !microblaze
  16. ifeq ($(ADK_TOOLCHAIN_GDB_6_7_1),y)
  17. DISTFILES:= gdb-6.7.1-avr32-2.1.5.tar.bz2
  18. WRKDIST= $(WRKDIR)/gdb-6.7.1-avr32-2.1.5
  19. else
  20. DISTFILES:= gdb-${PKG_VERSION}.tar.xz
  21. WRKDIST= ${WRKDIR}/gdb-${PKG_VERSION}
  22. endif
  23. WRKBUILD= ${WRKSRC}/build
  24. include ${ADK_TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,GDBSERVER,gdbserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. CONFIGURE_ARGS+= --enable-static \
  27. --disable-gdb \
  28. --disable-sim \
  29. --without-curses \
  30. --without-system-zlib
  31. gdbserver-install:
  32. ${INSTALL_DIR} ${IDIR_GDBSERVER}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdbserver ${IDIR_GDBSERVER}/usr/bin/
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk