Skip to content

Commit

Permalink
Grouping stuff that needs internet to the top of chroot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliomoro committed Nov 1, 2017
1 parent f17852c commit 44c0640
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@ CORES=$(getconf _NPROCESSORS_ONLN)
echo "~~~~ Updating the packages database ~~~~"
apt-get update

#uncomment till set+x to debug ldconfig
#set +e
#set -x
#grep xenomai /etc/ld.so.cache
echo "~~~~ Installing node ~~~~"
# install node
/bin/bash /opt/Bela/setup_7.x
apt-get install -y nodejs

echo "Finish installing xenomai"
libtool --finish /usr/xenomai/lib
# cleanup some un-parseable documentation. man entries are in doc/asciidoc
rm -rf /opt/xenomai-3/doc/prebuilt
rm -rf /opt/xenomai-3/doc/doxygen
# and the huge git repo
rm -rf /opt/xenomai-3/.git
#grep xenomai /etc/ld.so.cache
echo "/usr/xenomai/lib" > /etc/ld.so.conf.d/xenomai.conf
echo "/root/Bela/lib" > /etc/ld.so.conf.d/bela.conf
ldconfig
#grep xenomai /etc/ld.so.cache
#set -e
#set +x

echo "en_GB.UTF-8 UTF-8" > /etc/locale.gen
locale-gen
Expand Down Expand Up @@ -111,10 +108,6 @@ cp -v /root/Bela/resources/stretch/dtb/BELA-00A0.dtbo /lib/firmware/
echo "~~~~ building doxygen docs ~~~~"
doxygen > /dev/null 2>&1

# install node
/bin/bash /opt/Bela/setup_7.x
apt-get install -y nodejs

cd "/opt/prudebug"
echo "~~~~ Building prudebug ~~~~"
make -j${CORES}
Expand Down

0 comments on commit 44c0640

Please sign in to comment.