Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
Petalinux Docker
Commits
944a7204
Commit
944a7204
authored
Oct 30, 2018
by
zyx
Browse files
for petalinux 2016.3
parent
7d43d689
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
944a7204
...
...
@@ -7,7 +7,9 @@ MAINTAINER z4yx <z4yx@users.noreply.github.com>
#install dependences:
RUN
sed
-i
.bak s/archive.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g /etc/apt/sources.list
&&
\
dpkg
--add-architecture
i386
&&
apt-get update
&&
apt-get
install
-y
\
tree
\
build-essential
\
bc
\
sudo
\
tofrodos
\
iproute2
\
...
...
@@ -24,17 +26,10 @@ RUN sed -i.bak s/archive.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g /etc/apt/sourc
wget
\
socat
\
gcc-multilib
\
libsdl1.2-dev
\
libglib2.0-dev
\
lib32z1-dev
\
zlib1g:i386
\
libgtk2.0-0
\
screen
\
pax
\
diffstat
\
xvfb
\
xterm
\
texinfo
\
gzip
\
unzip
\
cpio
\
...
...
@@ -62,10 +57,12 @@ COPY accept-eula.sh ${PETA_RUN_FILE} /
# run the install
RUN
chmod
a+x /
${
PETA_RUN_FILE
}
&&
\
mkdir
-p
/opt/Xilinx
&&
\
chmod
777 /tmp /opt/Xilinx
&&
\
chmod
777 /tmp
/opt
/opt/Xilinx
&&
\
cd
/tmp
&&
\
sudo
-u
vivado /accept-eula.sh /
${
PETA_RUN_FILE
}
/opt/Xilinx/petalinux
&&
\
rm
-f
/
${
PETA_RUN_FILE
}
/accept-eula.sh
sudo
-u
vivado /accept-eula.sh /
${
PETA_RUN_FILE
}
/opt/Xilinx
;
\
sudo
-u
vivado /opt/Xilinx/tools/yocto-sdk/petalinux-glibc-x86_64-buildtools-
*
-y
-d
/opt/Xilinx/tools/yocto-sdk
RUN
rm
-f
/
${
PETA_RUN_FILE
}
/accept-eula.sh
USER
vivado
ENV
HOME /home/vivado
...
...
@@ -74,5 +71,5 @@ RUN mkdir /home/vivado/project
WORKDIR
/home/vivado/project
#add vivado tools to path
RUN
echo
"source /opt/Xilinx/
petalinux/
settings.sh"
>>
/home/vivado/.bashrc
RUN
echo
"source /opt/Xilinx/settings.sh"
>>
/home/vivado/.bashrc
accept-eula.sh
View file @
944a7204
...
...
@@ -22,6 +22,5 @@ expect {
}
set timeout
-1
expect
"INFO: Checking PetaLinux installer integrity..."
expect
"INFO: PetaLinux SDK has been installed"
#interact
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment