Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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:= oprofile
  5. PKG_VERSION:= 1.0.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a
  8. PKG_DESCR:= system-wide profiles
  9. PKG_SECTION:= app/debug
  10. PKG_DEPENDS:= libpopt libbfd
  11. PKG_BUILDDEP:= popt binutils gcc
  12. PKG_NEEDS:= c++
  13. PKG_URL:= http://oprofile.sourceforge.net/
  14. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=oprofile/}
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_CFLINE_OPROFILE:= select BUSYBOX_EXPR
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,OPROFILE,oprofile,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. TARGET_LDFLAGS+= -lpthread
  20. CONFIGURE_ARGS+= --with-binutils-libname=binutils \
  21. --with-binutils=${STAGING_TARGET_DIR}/usr/lib
  22. oprofile-install:
  23. $(INSTALL_DIR) $(IDIR_OPROFILE)/usr/{bin,lib/oprofile,share}
  24. $(INSTALL_BIN) $(WRKINST)/usr/bin/ocount \
  25. $(WRKINST)/usr/bin/opannotate \
  26. $(WRKINST)/usr/bin/oparchive \
  27. $(WRKINST)/usr/bin/op-check-perfevents \
  28. $(WRKINST)/usr/bin/operf \
  29. $(WRKINST)/usr/bin/opgprof \
  30. $(WRKINST)/usr/bin/ophelp \
  31. $(WRKINST)/usr/bin/opimport \
  32. $(WRKINST)/usr/bin/opjitconv \
  33. $(WRKINST)/usr/bin/opreport \
  34. $(IDIR_OPROFILE)/usr/bin/
  35. ${CP} ${WRKINST}/usr/share/oprofile ${IDIR_OPROFILE}/usr/share/
  36. ${CP} ${WRKINST}/usr/lib/oprofile/libopagent.so* \
  37. ${IDIR_OPROFILE}/usr/lib/oprofile
  38. include ${ADK_TOPDIR}/mk/pkg-bottom.mk