| # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| CROS_WORKON_COMMIT=("81dd5615011f9417f91d41669acec9e9c4430d7f" "affa5945aeb260f229adc432f6bb91855d1f907a") |
| CROS_WORKON_TREE=("26bbcbef154a44e78d52b07eb97332643f03e647" "023c756f20b8f5566813867e074a4d444a80d343") |
| CROS_WORKON_PROJECT=("chromiumos/platform/factory" "chromiumos/chromite") |
| CROS_WORKON_LOCALNAME=("platform/factory" "../chromite") |
| CROS_WORKON_SUBTREE=("py" "lib") |
| CROS_WORKON_DESTDIR=("${S}" "${S}/chromite") |
| |
| inherit cros-workon |
| |
| DESCRIPTION="Chrome OS HWID Extractor" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/factory/" |
| SRC_URI="" |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| IUSE="cros_host" |
| |
| RDEPEND="chromeos-base/vboot_reference |
| chromeos-base/vpd |
| dev-python/pyserial |
| dev-util/hdctools |
| sys-apps/flashrom |
| " |
| |
| src_install() { |
| local lib="/usr/local" |
| if use cros_host; then |
| lib="/usr/lib" |
| fi |
| emake -C py/hwid_extractor \ |
| DESTDIR="${D}" \ |
| LIB_DIR="${lib}" \ |
| CHROMITE_SRC_PATH="${S}/chromite/lib" \ |
| install |
| } |