blob: 8749492ab6f1b90af438ff41e1c4e00c2e855f29 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
DESCRIPTION="Text file listing USE flags for Tast test dependencies"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
# NB: Flags listed here are off by default unless prefixed with a '+'.
IUSE="
amd64
android-container-master-arc-dev
android-container-nyc
android-container-pi
android-container-qt
android-vm-pi
arc
arc-camera1
arc-camera3
arcpp
arcvm
asan
betty
biod
chrome_internal
chromeless_tty
containers
cr50_onboard
crosvm-gpu
cups
diagnostics
disable_cros_video_decoder
+display_backlight
dlc_test
+drivefs
drm_atomic
fizz
grunt
internal
+internal_mic
+internal_speaker
iwlwifi_rescan
kernel-3_8
kernel-3_10
kernel-3_14
kernel-3_18
kernel-4_4
kernel-4_14
kernel-4_19
kernel-5_4
kukui
kvm_host
kvm_transition
lxc
memd
ml_service
moblab
mocktpm
msan
nyan_kitty
octopus
pita
rialto
rk3399
selinux
selinux_experimental
skate
smartdim
snow
spring
+storage_wearout_detect
touchview
tpm2
transparent_hugepage
ubsan
unibuild
usbguard
usbip
vaapi
veyron_mickey
veyron_rialto
vulkan
wifi_hostap_test
wilco
+wired_8021x
"
S=${WORKDIR}
src_install() {
# Install a file containing a list of currently-set USE flags.
local path="${WORKDIR}/tast_use_flags.txt"
cat <<EOF >"${path}"
# This file is used by the Tast integration testing system to
# determine which software features are present in the system image.
# Don't use it for anything else. Your code will break.
EOF
# If you need to inspect a new flag, add it to $IUSE at the top of the file.
local flags=( ${IUSE} )
local flag
for flag in ${flags[@]/#[-+]} ; do
usev ${flag}
done | sort -u >>"${path}"
insinto /etc
doins "${path}"
}