Skip to content

Commit

Permalink
add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
leigh-johnson committed Nov 8, 2020
0 parents commit 6ae16db
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions scripts/build_raspberry_pi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set +x

TENSORFLOW=$HOME/builds/tensorflow
HEIGHT=20
WIDTH=60
CHOICE_HEIGHT=4
BACKTITLE="Build Raspberry Pi .whl"
TITLE="Choose processor architechture"
MENU="Choose one of the following options:"
TERMINAL=$(tty)
OPTIONS=(1 "arm7l 32-bit"
2 "aarch64 64-bit")

CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >$TERMINAL)

clear
case $CHOICE in
1)
cd $TENSORFLOW && $TENSORFLOW/tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 \
tensorflow/tools/ci_build/pi/build_raspberry_pi.sh
ls -ahl output-artifacts/
;;
2)
cd $TENSORFLOW && $TENSORFLOW/tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 \
tensorflow/tools/ci_build/pi/build_raspberry_pi.sh AARCH64
ls -ahl output-artifacts/
;;
esac

0 comments on commit 6ae16db

Please sign in to comment.