Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picsimlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
picsimlab
Commits
ba8694da
Commit
ba8694da
authored
Aug 07, 2020
by
lcgamboa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new: build script with support to build experimental features
parent
c1e0f05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
5 deletions
+37
-5
picsimlab_build_all_and_deps.sh
picsimlab_build_all_and_deps.sh
+37
-5
No files found.
picsimlab_build_all_and_deps.sh
View file @
ba8694da
...
...
@@ -3,6 +3,10 @@
set
-o
pipefail
cl
()(
"
$@
"
2>&1>&3|sed
$'s,.*,
\e
[31m&
\e
[m,'
>
&2
)
3>&1
if
[
"$#"
-ne
0
]
;
then
BUILD_EXPERIMETAL
=
1
fi
echo
-e
"
\0
33[1;32m ---------------------- update and install packages ----------------------
\0
33[0m"
cl
sudo
apt-get update
cl
sudo
apt-get
-y
upgrade
...
...
@@ -16,38 +20,66 @@ git clone https://github.com/lcgamboa/picsim.git
git clone https://github.com/lcgamboa/lxrad.git
git clone https://github.com/lcgamboa/tty0tty.git
git clone https://github.com/lcgamboa/simavr.git
cd
picsim
if
[[
-z
"
$BUILD_EXPERIMETAL
"
]]
;
then
else
git clone https://github.com/lcgamboa/uCsim_picsimlab.git
git clone https://github.com/lcgamboa/qemu_stm32.git
fi
echo
-e
"
\0
33[1;32m ---------------------- build and install picsim -------------------------
\0
33[0m"
cd
picsim
cl git pull
cl make clean
;
make
-j4
cl
sudo
make
install
cd
..
cd
lxrad
echo
-e
"
\0
33[1;32m ---------------------- build and install lxrad --------------------------
\0
33[0m"
cd
lxrad
git pull
cl autoconf
cl ./configure
--prefix
=
/usr
cl make clean
;
make
-j4
cl
sudo
make
install
cd
..
cd
tty0tty/module
echo
-e
"
\0
33[1;32m ---------------------- build and install tty0tty ------------------------
\0
33[0m"
cd
tty0tty/module
git pull
cl
sudo
./dkms-install.sh
#cl make clean;make -j4
#cl sudo make install
sudo
usermod
-a
-G
dialout
`
whoami
`
cd
../../
cd
simavr
echo
-e
"
\0
33[1;32m ---------------------- build and install simavr -------------------------
\0
33[0m"
cd
simavr
git pull
cl make clean
;
make
-j4
cl
sudo
make
install
cd
../../
cd
../
if
[[
-z
"
$BUILD_EXPERIMETAL
"
]]
;
then
echo
-e
"
\0
33[1;32m ---------------------- build and install picsimlab ----------------------
\0
33[0m"
cd
../
#git pull
cl make clean
;
make
-j4
cl
sudo
make
install
else
echo
-e
"
\0
33[1;32m ---------------------- build and uCsim ----------------------------------
\0
33[0m"
cd
uCsim_picsimlab
cl ./configure
cl make clean
;
make
-j4
cd
picsimlab
cl make clean
;
make
-j4
cd
../../
echo
-e
"
\0
33[1;32m ---------------------- build and install qemu_stm32 ---------------------
\0
33[0m"
cd
qemu_stm32
cl ./configure
cl make clean
;
make
-j4
cl
cd
arm-softmmu
cl
sudo cp
qemu-system-arm /usr/local/bin/qemu-stm32
cd
../../
echo
-e
"
\0
33[1;32m ---------------------- build and install picsimlab ----------------------
\0
33[0m"
#git pull
cd
../
cl make clean
;
make
-j4
exp
cl
sudo
make
install
fi
user
=
`
whoami
`
cl
sudo
usermod
-a
-G
dialout
$user
echo
-e
"
\0
33[1;32m ---------------------- done! --------------------------------------------
\0
33[0m"
...
...
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