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,6 +619,12 @@ function install_cjdns {
619 619
   get_cjdns_port
620 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 628
   if [ ! -d /etc/cjdns ]; then
623 629
       git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
624 630
       cd /etc/cjdns
@@ -796,7 +802,7 @@ function install_cjdns {
796 802
       echo 'so that leaks can be isolated.' >> /home/$MY_USERNAME/README
797 803
       echo '' >> /home/$MY_USERNAME/README
798 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 806
   fi
801 807
 
802 808
   echo 'install_cjdns' >> $COMPLETION_FILE
@@ -810,7 +816,7 @@ function install_cjdns_tools {
810 816
       return
811 817
   fi
812 818
   if [ ! -d /etc/cjdns ]; then
813
-	  install_cjdns
819
+      install_cjdns
814 820
   fi
815 821
 
816 822