| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| 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" |
| } |