From 44c0640235461153aedd87ef4e8a6bd49c9a7fd8 Mon Sep 17 00:00:00 2001 From: Giulio Moro Date: Wed, 1 Nov 2017 02:22:54 +0000 Subject: [PATCH] Grouping stuff that needs internet to the top of chroot.sh --- scripts/chroot.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 6cd7bca..bc145e1 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -5,10 +5,11 @@ 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 @@ -16,13 +17,9 @@ 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 @@ -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}