Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 14 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,17 @@ There are 4 repositories that provide the complete setup:
Please follow https://github.com/intel/ipu6-camera-bins README to install.

- Dependencies: libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libdrm-dev

- Build and install:
Recommend to build together with icamerasrc and using `build.sh` in this repo.
1. Put ipu6-camera-hal, icameasrc and build.sh parallel as below:
```
cp build.sh .. && cd ..
# work
# ├── build.sh
# ├── icamerasrc
# ├── ipu6-camera-hal
# └── out
```

2. For example, in `work` folder, run `./build.sh -d --board ipu_mtl`. Output binaries will be in `out/ipu_mtl/install`.
Notice: Use `./build.sh --board ipu_mtl` to disable dma build.
The dma build depends on 'gstreamer >= 1.23' and 'libva-drm'.

3. Install built out drivers in `out/<target>/install` to target:
```sh
cp -r ./out/<target>/install/etc* /etc/
cp -r ./out/<target>/install/usr/include/* /usr/include/
cp -r ./out/<target>/install/usr/lib/* /usr/lib/
```

For more building details please reference the `build.sh`.
```sh
# Please follow common cmake, make & make install flow
cd ipu6-camera-hal
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_CAMHAL_ADAPTOR=ON \
-DBUILD_CAMHAL_PLUGIN=ON \
-DIPU_VERSIONS="ipu6;ipu6ep;ipu6epmtl" \
-DUSE_PG_LITE_PIPE=ON \
..
make && sudo make install
```