Skip to content

Commit 7a4df55

Browse files
committed
Updated onnxrt_build.sh (adding --allow_running_as_root) and Dockerfile (pip install flatbuffers)
1 parent 9b39876 commit 7a4df55

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8484
python3 -m pip install --upgrade pip; \
8585
fi && \
8686
if echo ${BASE_IMAGE} | grep -q "debian" || echo ${BASE_IMAGE} | grep -q "ubuntu:24.04"; then \
87-
python3 -m pip install --break-system-packages numpy setuptools wheel pybind11 pytest; \
87+
python3 -m pip install --break-system-packages numpy setuptools wheel pybind11 pytest flatbuffers; \
8888
else \
89-
python3 -m pip install numpy setuptools wheel pybind11 pytest; \
89+
python3 -m pip install numpy setuptools wheel pybind11 pytest flatbuffers; \
9090
fi && \
9191
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
9292

scripts/onnxrt_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ SECONDS=0
3636
--cmake_extra_defines="CMAKE_TOOLCHAIN_FILE=$(pwd)/tool.cmake" \
3737
--path_to_protoc_exe $(pwd)/cmake/external/protoc-${protobuf_ver}-linux-aarch_64/bin/protoc \
3838
--use_tidl \
39-
--build_wheel
39+
--build_wheel \
40+
--allow_running_as_root
4041

4142
# chmod
4243
chmod -R a+w $WORK_DIR/workarea

scripts/onnxrt_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd $WORK_DIR/workarea
1414
## package into a tarball
1515
onnx_ver=$(get_yaml_value "onnxruntime" "onnx_ver")
1616
pkg_dist=${BASE_IMAGE//:/}
17-
DST_DIR="onnx-${onnx_ver}+${tidl_ver}-${pkg_dist}_aarch64"
17+
DST_DIR="onnx-${onnx_ver}-${pkg_dist}_aarch64"
1818
LIB_DIR="onnxruntime/build/Linux/Release"
1919
TARBALL="${DST_DIR}.tar.gz"
2020

0 commit comments

Comments
 (0)