• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/oprofile/oprofile.mk
Yann E. MORINYann E. MORIN committed 9863553fe8f14 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# oprofile
4
#
5
################################################################################
6
​
7
OPROFILE_VERSION = 1.0.0
8
OPROFILE_SITE = http://downloads.sourceforge.net/project/oprofile/oprofile/oprofile-$(OPROFILE_VERSION)
9
OPROFILE_LICENSE = GPLv2+
10
OPROFILE_LICENSE_FILES = COPYING
11
OPROFILE_CONF_OPTS = \
12
    --disable-account-check \
13
    --enable-gui=no \
14
    --with-kernel=$(STAGING_DIR)/usr
15
​
16
OPROFILE_BINARIES = \
17
    utils/ophelp pp/opannotate pp/oparchive pp/opgprof \
18
    pp/opreport opjitconv/opjitconv \
19
    utils/op-check-perfevents libabi/opimport \
20
    pe_counting/ocount
21
​
22
ifeq ($(BR2_i386),y)
23
OPROFILE_ARCH = i386
24
endif
25
ifeq ($(BR2_mipsel),y)
26
OPROFILE_ARCH = mips
27
endif
28
ifeq ($(BR2_powerpc),y)
29
OPROFILE_ARCH = ppc
30
endif
31
ifeq ($(BR2_x86_64),y)
32
OPROFILE_ARCH = x86-64
33
endif
34
ifeq ($(OPROFILE_ARCH),)
35
OPROFILE_ARCH = $(BR2_ARCH)
36
endif
37
​
38
OPROFILE_DEPENDENCIES = popt binutils host-pkgconf
39
​
40
ifeq ($(BR2_PACKAGE_LIBPFM4),y)
41
OPROFILE_DEPENDENCIES += libpfm4
42
endif
43
​
44
define OPROFILE_INSTALL_TARGET_CMDS
45
    $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
46
    $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/oprofile
47
    $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/lib/oprofile
48
    if [ -d $(@D)/events/$(OPROFILE_ARCH) ]; then \
49
        cp -dpfr $(@D)/events/$(OPROFILE_ARCH) \
50
            $(TARGET_DIR)/usr/share/oprofile; \
51
    fi
52
    $(INSTALL) -m 644 $(@D)/libregex/stl.pat $(TARGET_DIR)/usr/share/oprofile
53
    $(INSTALL) -m 755 $(addprefix $(@D)/, $(OPROFILE_BINARIES)) $(TARGET_DIR)/usr/bin
54
    $(INSTALL) -m 755 $(@D)/libopagent/.libs/*.so* $(TARGET_DIR)/usr/lib/oprofile
55
endef
56
​
57
$(eval $(autotools-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.