Skip to content
GitLab
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
44de0e71
Commit
44de0e71
authored
May 25, 2018
by
z4yx
Browse files
petalinux 2018.1
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
44de0e71
FROM
ubuntu:16.04
MAINTAINER
z4yx <z4yx@users.noreply.github.com>
# build with docker build --build-arg PETA_VERSION=2018.1 --build-arg PETA_RUN_FILE=petalinux-v2018.1-final-installer.run -t petalinux:2018.1 .
#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
\
build-essential
\
sudo
\
tofrodos
\
iproute2
\
gawk
\
net-tools
\
expect
\
libncurses5-dev
\
tftpd
\
libssl-dev
\
flex
\
bison
\
libselinux1
\
gnupg
\
wget
\
socat
\
gcc-multilib
\
libsdl1.2-dev
\
libglib2.0-dev
\
lib32z1-dev
\
zlib1g:i386
\
screen
\
pax
\
diffstat
\
xvfb
\
xterm
\
texinfo
\
gzip
\
unzip
\
cpio
\
chrpath
\
autoconf
\
lsb-release
\
libtool
\
locales
\
git
ARG
PETA_VERSION
ARG
PETA_RUN_FILE
RUN
locale-gen en_US.UTF-8
&&
update-locale
#make a Vivado user
RUN
adduser
--disabled-password
--gecos
''
vivado
RUN
usermod
-aG
sudo
vivado
RUN
echo
"vivado ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
WORKDIR
/home/vivado
COPY
accept-eula.sh ${PETA_RUN_FILE} /
# run the install
RUN
chmod
a+x /
${
PETA_RUN_FILE
}
&&
\
mkdir
-p
/opt/Xilinx
&&
\
chmod
777 /opt/Xilinx
&&
\
sudo
-u
vivado /accept-eula.sh /
${
PETA_RUN_FILE
}
/opt/Xilinx/petalinux
&&
\
rm
-f
/
${
PETA_RUN_FILE
}
/accept-eula.sh
USER
vivado
ENV
HOME /home/vivado
ENV
PETA_VERSION ${PETA_VERSION}
#add vivado tools to path
RUN
echo
"source /opt/Xilinx/petalinux/settings.sh"
>>
/home/vivado/.bashrc
accept-eula.sh
0 → 100755
View file @
44de0e71
#!/usr/bin/env expect
set timeout
-1
set
install_dir
[
lindex
$argv
1]
set
installer
[
lindex
$argv
0]
spawn
$installer
$install_dir
expect
"Press Enter to display the license agreements"
send
"
\r
"
set timeout
4
expect
{
"* >*"
{
send
"y
\r
"
}
timeout
{
send
"q"
;
exp_continue
}
}
expect
{
"* >*"
{
send
"y
\r
"
}
timeout
{
send
"q"
;
exp_continue
}
}
expect
{
"* >*"
{
send
"y
\r
"
}
timeout
{
send
"q"
;
exp_continue
}
}
interact
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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