blob: 5ebf929e99ad1b7d774d647647bbe92fcb05eddf [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=7
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_SUBTREE="common-mk secure-wipe .gn"
PLATFORM_SUBDIR="secure-wipe"
inherit cros-workon platform
DESCRIPTION="Secure wipe"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/secure-wipe/"
LICENSE="BSD-Google"
KEYWORDS="~*"
IUSE="mmc nvme sata test"
DEPEND=""
RDEPEND="
app-misc/jq
sata? ( sys-apps/hdparm )
mmc? ( sys-apps/mmc-utils )
nvme? ( sys-apps/nvme-cli )
sys-apps/util-linux
sys-block/fio"
src_test() {
tests/factory_verify_test.sh || die "unittest failed"
}
src_install() {
dosbin secure-wipe.sh
dosbin wipe_disk
}