1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
7 PKG_VERSION
:= 757266704753aea10cf3df7c0902ef35fb1377c1
9 PKG_HASH
:= ea65e56db389778f76b9ab8cf66a08fd76b626772be5a3af29e6df87469e404f
11 PKG_DESCR
:= system-wide profiles
12 PKG_SECTION
:= app
/debug
13 PKG_DEPENDS
:= libpopt libbfd
14 PKG_KDEPENDS
:= oprofile
15 PKG_BUILDDEP
:= popt binutils gcc
17 PKG_URL
:= http
://oprofile.sourceforge.net
/
18 PKG_SITES
:= https
://git.code.sf.net
/p
/oprofile
/oprofile.git
20 PKG_CFLINE_OPROFILE
:= select BUSYBOX_EXPR
22 include $(ADK_TOPDIR
)/mk
/package.mk
24 $(eval
$(call PKG_template
,OPROFILE
,oprofile
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 AUTOTOOL_STYLE
:= autogen
27 CONFIGURE_ARGS
+= --with-binutils-libname
=binutils \
28 --with-binutils
=${STAGING_TARGET_DIR}/usr
/lib \
30 --disable-optimization
33 $(INSTALL_DIR
) $(IDIR_OPROFILE
)/usr
/{bin
,lib
/oprofile
,share
}
34 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/ocount \
35 $(WRKINST
)/usr
/bin
/opannotate \
36 $(WRKINST
)/usr
/bin
/oparchive \
37 $(WRKINST
)/usr
/bin
/op-check-perfevents \
38 $(WRKINST
)/usr
/bin
/operf \
39 $(WRKINST
)/usr
/bin
/opgprof \
40 $(WRKINST
)/usr
/bin
/ophelp \
41 $(WRKINST
)/usr
/bin
/opimport \
42 $(WRKINST
)/usr
/bin
/opjitconv \
43 $(WRKINST
)/usr
/bin
/opreport \
44 $(IDIR_OPROFILE
)/usr
/bin
/
45 ${CP} ${WRKINST}/usr
/share
/oprofile
${IDIR_OPROFILE}/usr
/share
/
46 ${CP} ${WRKINST}/usr
/lib
/oprofile
/libopagent.so
* \
47 ${IDIR_OPROFILE}/usr
/lib
/oprofile
49 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk