Skip to content

Commit

Permalink
Fix install prefix and use DESTDIR when install to temp dir
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Yao <hao.yao@intel.com>
  • Loading branch information
hao-yao committed Aug 9, 2024
1 parent c45ddce commit d7223b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ function build_target() {
-DIPU_VER=$IPU_VERSION \
-DBUILD_CAMHAL_TESTS=OFF \
-DUSE_PG_LITE_PIPE=ON \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/install \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_HAL_ADAPTOR=ON \
..

# make and install
make -j`nproc`
check_result $? "$FUNCNAME: $target"

make install
make DESTDIR=${INSTALL_DIR}/install install
check_result $? "$FUNCNAME: $target"
cd ..
}
Expand All @@ -111,13 +111,13 @@ function build_hal_adaptor() {
cd $SOURCE_DIR/ipu6-camera-hal/src/hal/hal_adaptor
rm -fr build && mkdir -p build && cd build

command cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/install ../
command cmake -DCMAKE_INSTALL_PREFIX=/usr ../

# make and install
make -j
check_result $? $FUNCNAME

make install
make make DESTDIR=${INSTALL_DIR}/install install
check_result $? $FUNCNAME
}

Expand Down

0 comments on commit d7223b6

Please sign in to comment.