diff --git a/README.md b/README.md index c302be1..bb68b3f 100644 --- a/README.md +++ b/README.md @@ -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//install` to target: - ```sh - cp -r ./out//install/etc* /etc/ - cp -r ./out//install/usr/include/* /usr/include/ - cp -r ./out//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 +```