Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= 757266704753aea10cf3df7c0902ef35fb1377c1
  6. PKG_GIT:= hash
  7. PKG_HASH:= ea65e56db389778f76b9ab8cf66a08fd76b626772be5a3af29e6df87469e404f
  8. PKG_RELEASE:= 1
  9. PKG_DESCR:= system-wide profiles
  10. PKG_SECTION:= app/debug
  11. PKG_DEPENDS:= libpopt libbfd
  12. PKG_KDEPENDS:= oprofile
  13. PKG_BUILDDEP:= popt binutils gcc
  14. PKG_NEEDS:= c++
  15. PKG_URL:= http://oprofile.sourceforge.net/
  16. PKG_SITES:= https://git.code.sf.net/p/oprofile/oprofile.git
  17. PKG_CFLINE_OPROFILE:= select BUSYBOX_EXPR
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,OPROFILE,oprofile,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. AUTOTOOL_STYLE:= autogen
  21. CONFIGURE_ARGS+= --with-binutils-libname=binutils \
  22. --with-binutils=${STAGING_TARGET_DIR}/usr/lib \
  23. --disable-werror \
  24. --disable-optimization
  25. oprofile-install:
  26. $(INSTALL_DIR) $(IDIR_OPROFILE)/usr/{bin,lib/oprofile,share}
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/ocount \
  28. $(WRKINST)/usr/bin/opannotate \
  29. $(WRKINST)/usr/bin/oparchive \
  30. $(WRKINST)/usr/bin/op-check-perfevents \
  31. $(WRKINST)/usr/bin/operf \
  32. $(WRKINST)/usr/bin/opgprof \
  33. $(WRKINST)/usr/bin/ophelp \
  34. $(WRKINST)/usr/bin/opimport \
  35. $(WRKINST)/usr/bin/opjitconv \
  36. $(WRKINST)/usr/bin/opreport \
  37. $(IDIR_OPROFILE)/usr/bin/
  38. ${CP} ${WRKINST}/usr/share/oprofile ${IDIR_OPROFILE}/usr/share/
  39. ${CP} ${WRKINST}/usr/lib/oprofile/libopagent.so* \
  40. ${IDIR_OPROFILE}/usr/lib/oprofile
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk