Commit 2d8bb5bd authored by JL2210's avatar JL2210 Committed by Ed Reel

Add perf package (#3556)

parent 85e3909e
require 'package'
class Perf < Package
description 'Linux profiling with performance counters'
homepage 'https://perf.wiki.kernel.org/index.php/Main_Page'
version '4.14'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
# Reuse linux sources if they're already installed
depends_on 'linux_sources' => :build
def self.build
Dir.chdir("#{CREW_PREFIX}/src/linux/tools/perf") do
system "make WERROR=0 prefix=#{CREW_PREFIX}"
end
end
def self.install
Dir.chdir("#{CREW_PREFIX}/src/linux/tools/perf") do
system 'make',
'WERROR=0',
'missing_tools=xmlto', # Docs are broken, disable
"prefix=#{CREW_PREFIX}",
"DESTDIR=#{CREW_DEST_DIR}",
'install'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment