| # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=5 |
| CROS_WORKON_COMMIT="d6bed30d3d8963fed5b28866ee7a132d97c94a7d" |
| CROS_WORKON_TREE=("3134bf4c7da1da6ffc87e4aba9aa2b8d4e305029" "b51109f7384682e9fd61e3abd2bc771aa4de6baa") |
| CROS_WORKON_PROJECT="chromiumos/third_party/kernel" |
| CROS_WORKON_LOCALNAME="kernel/v4.14" |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| # Narrow the workon scope to just files referenced by the turbostat |
| # Makefile: |
| # https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.14/tools/power/x86/turbostat/Makefile#13 |
| CROS_WORKON_SUBTREE="arch/x86/include/asm tools/power/x86/turbostat" |
| |
| inherit cros-sanitizers cros-workon toolchain-funcs |
| |
| HOMEPAGE="https://www.kernel.org/" |
| DESCRIPTION="Intel processor C-state and P-state reporting tool" |
| |
| LICENSE="GPL-2" |
| SLOT=0 |
| KEYWORDS="*" |
| IUSE="-asan" |
| |
| domake() { |
| emake -C tools/power/x86/turbostat \ |
| BUILD_OUTPUT="$(cros-workon_get_build_dir)" DESTDIR="${D}" \ |
| CC="$(tc-getCC)" "$@" |
| } |
| |
| src_configure() { |
| sanitizers-setup-env |
| cros-workon_src_configure |
| } |
| |
| src_compile() { |
| domake |
| } |
| |
| src_install() { |
| domake install |
| } |