blob: 035cb2d4b2556cbbec93be369c39d3d331c8bd8f [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT=("8797d18ef997ad834bb916bee9cdb547a4d7d666" "3296cda4e0472a30add5f30bd899becf9219666b")
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "791c6808b4f4f5f1c484108d66ff958d65f8f1e3" "39c3d3a73f6da845a21c6cb5cc49dcca62f80f6a")
CROS_WORKON_PROJECT=("chromiumos/platform2" "chromiumos/platform/camera")
CROS_WORKON_LOCALNAME=("../platform2" "../platform/camera")
CROS_WORKON_DESTDIR=("${S}/platform2" "${S}/platform2/camera_hal")
CROS_WORKON_SUBTREE=(".gn common-mk" "hal/intel/ipu6")
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="camera_hal/hal/intel/ipu6"
inherit cros-camera cros-workon platform udev
DESCRIPTION="Intel IPU6 (Image Processing Unit) Chrome OS camera HAL"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE="ipu6se ipu6ep"
RDEPEND="
chromeos-base/chromeos-config-tools
chromeos-base/cros-camera-libs
chromeos-base/cros-camera-android-deps
dev-libs/expat
!ipu6se? ( !ipu6ep? ( media-libs/intel-ipu6-camera-bins ) )
ipu6se? (
media-libs/intel-ipu6se-camera-bins
x11-libs/libva-intel-media-driver
)
ipu6ep? ( media-libs/intel-ipu6ep-camera-bins )
!media-libs/cros-camera-hal-intel-ipu6-squash
media-libs/libsync
media-libs/libyuv
"
DEPEND="${RDEPEND}
sys-kernel/linux-headers
virtual/jpeg:0
virtual/pkgconfig"
src_install() {
platform_src_install
dolib.so "${OUT}/lib/libcamhal.so"
cros-camera_dohal "${OUT}/lib/libcamhal.so" intel-ipu6.so
dolib.so "${OUT}/lib/libcam_algo.so"
if use ipu6se; then
dolib.so "${OUT}/lib/libcam_algo_vendor_gpu.so"
fi
udev_dorules "${FILESDIR}/50-ipu-psys0.rules"
}