-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6ae16db
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |