blob: bf7791a454888a8d10abccaf976c69237c8f895e [file] [log] [blame]
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit appid cros-audio-configs
DESCRIPTION="Nyan bsp (meta package to pull in driver/tool dependencies)"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="-* arm"
IUSE="opengles tegra-ldk variant_build bootimage"
DEPEND="
bootimage? ( sys-boot/chromeos-bootimage )
"
RDEPEND="
!variant_build? ( chromeos-base/chromeos-touch-config-nyan )
net-wireless/marvell_sd8787
sys-kernel/tegra_lp0_resume
tegra-ldk? (
opengles? ( media-libs/openmax media-libs/openmax-codecs )
x11-drivers/tegra-drivers
)
sys-apps/daisydog
"
S=${WORKDIR}
src_install() {
# Variants of nyan will have their own appids
if ! use variant_build; then
doappid "{334FF5FA-CEE5-7688-1C73-78CE7F5B24A9}" "REFERENCE"
fi
# Override default CPU clock speed governor
insinto "/etc"
doins "${FILESDIR}/cpufreq.conf"
# Install platform specific config files for power_manager.
insinto "/usr/share/power_manager/board_specific"
doins "${FILESDIR}"/powerd_prefs/*
# Install upstart script for setting CPU governors.
insinto "/etc/init"
doins "${FILESDIR}/tegra_governors.conf"
# Install audio configs, variants of nyan will have their own.
if ! use variant_build; then
local audio_config_dir="${FILESDIR}/audio-config"
install_audio_configs nyan "${audio_config_dir}"
fi
}