blob: 9224a55cb6b6fce61b4dc7c3b9368f6ee84b2cd1 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk chromeos-config modemfwd .gn"
PLATFORM_SUBDIR="modemfwd"
inherit cros-workon platform user
DESCRIPTION="Modem firmware updater daemon"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/modemfwd"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="~*"
IUSE="fuzzer"
RDEPEND="
app-arch/xz-utils:=
chromeos-base/chromeos-config
chromeos-base/chromeos-config-tools
dev-libs/protobuf:=
"
DEPEND="${RDEPEND}
chromeos-base/shill-client
chromeos-base/system_api[fuzzer?]
fuzzer? ( dev-libs/libprotobuf-mutator )
"
src_install() {
dobin "${OUT}/modemfwd"
# Upstart configuration
insinto /etc/init
doins modemfwd.conf
# DBus configuration
insinto /etc/dbus-1/system.d
doins dbus/org.chromium.Modemfwd.conf
platform_fuzzer_install "${S}"/OWNERS "${OUT}"/firmware_manifest_fuzzer
platform_fuzzer_install "${S}"/OWNERS "${OUT}"/firmware_manifest_v2_fuzzer
}
platform_pkg_test() {
platform_test "run" "${OUT}/modemfw_test"
}