Browse Source

Special cjdns compile settings for BBB

Bob Mottram 10 years ago
parent
commit
75b9239127
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      install-freedombone.sh

+ 8
- 2
install-freedombone.sh View File

619
   get_cjdns_port
619
   get_cjdns_port
620
   get_cjdns_password
620
   get_cjdns_password
621
 
621
 
622
+  # special compile settings for running ./do on the Beaglebone Black
623
+  if [[ $INSTALLING_ON_BBB == "yes" ]]; then
624
+      CFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=hard -marm -Wno-error=maybe-uninitialized"
625
+      export LDFLAGS="$CFLAGS"
626
+  fi
627
+
622
   if [ ! -d /etc/cjdns ]; then
628
   if [ ! -d /etc/cjdns ]; then
623
       git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
629
       git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
624
       cd /etc/cjdns
630
       cd /etc/cjdns
796
       echo 'so that leaks can be isolated.' >> /home/$MY_USERNAME/README
802
       echo 'so that leaks can be isolated.' >> /home/$MY_USERNAME/README
797
       echo '' >> /home/$MY_USERNAME/README
803
       echo '' >> /home/$MY_USERNAME/README
798
       echo "\"your.external.ip.goes.here:$CJDNS_PORT\":{\"password\":\"$CJDNS_PASSWORD\",\"publicKey\":\"$CJDNS_PUBLIC_KEY\"}" >> /home/$MY_USERNAME/README
804
       echo "\"your.external.ip.goes.here:$CJDNS_PORT\":{\"password\":\"$CJDNS_PASSWORD\",\"publicKey\":\"$CJDNS_PUBLIC_KEY\"}" >> /home/$MY_USERNAME/README
799
-	  chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
805
+      chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
800
   fi
806
   fi
801
 
807
 
802
   echo 'install_cjdns' >> $COMPLETION_FILE
808
   echo 'install_cjdns' >> $COMPLETION_FILE
810
       return
816
       return
811
   fi
817
   fi
812
   if [ ! -d /etc/cjdns ]; then
818
   if [ ! -d /etc/cjdns ]; then
813
-	  install_cjdns
819
+      install_cjdns
814
   fi
820
   fi
815
 
821
 
816
 
822