forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arm pluging cross-compilation dockerfile for Debian Buster (openvinot…
- Loading branch information
1 parent
d033fca
commit 77f5a26
Showing
5 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#This Dockerfile is for x86 and should be used for OpenVINO ARM plugin cross-compilation | ||
#https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/arm_plugin#how-to-build | ||
|
||
FROM debian:10 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PAKAGE_UPDATES_OF 20210505 | ||
|
||
#Prerequisite installation | ||
RUN apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
lsb-release \ | ||
nano \ | ||
wget \ | ||
curl \ | ||
nano \ | ||
tar \ | ||
bzip2 \ | ||
unzip \ | ||
cpio \ | ||
cifs-utils \ | ||
locales \ | ||
rsync \ | ||
apt-transport-https \ | ||
debian-archive-keyring \ | ||
sudo \ | ||
openssh-client \ | ||
default-jre \ | ||
p7zip-full \ | ||
software-properties-common \ | ||
dirmngr \ | ||
gnupg \ | ||
netcat-openbsd \ | ||
dh-autoreconf \ | ||
libcurl4-gnutls-dev \ | ||
libexpat1-dev \ | ||
gettext \ | ||
libz-dev \ | ||
libssl-dev \ | ||
build-essential \ | ||
git-lfs \ | ||
cmake \ | ||
&& \ | ||
locale-gen en_US.UTF-8 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN dpkg --add-architecture armhf && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends -f -o Dpkg::Options::="--force-confnew" \ | ||
build-essential \ | ||
libusb-1.0-0-dev:armhf \ | ||
software-properties-common \ | ||
crossbuild-essential-armhf \ | ||
zlib1g-dev \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
chrpath \ | ||
libssl-dev \ | ||
libprotobuf-dev \ | ||
libprotoc-dev \ | ||
protobuf-compiler \ | ||
python3-dev \ | ||
python3-numpy \ | ||
python3-pip \ | ||
libpython3-dev:armhf \ | ||
libgtk-3-dev:armhf \ | ||
libavcodec-dev:armhf \ | ||
libavformat-dev:armhf \ | ||
libswscale-dev:armhf \ | ||
# For ARM CPU plugin | ||
scons \ | ||
&& \ | ||
pip3 install cython && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git config --global user.name "Your Name" && \ | ||
git config --global user.email "[email protected]" | ||
|
||
ENV ARCH_NAME arm-linux-gnueabihf | ||
ENV TOOLCHAIN_DEFS arm.toolchain.cmake | ||
COPY armplg_build.sh /armplg_build.sh | ||
|
||
#configure paths | ||
RUN mkdir -p /armcpu_plugin | ||
WORKDIR /armcpu_plugin/ | ||
|
||
CMD ["sh", "/armplg_build.sh"] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters