diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /yocto-poky/scripts/contrib/serdevtry | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'yocto-poky/scripts/contrib/serdevtry')
-rwxr-xr-x | yocto-poky/scripts/contrib/serdevtry | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/yocto-poky/scripts/contrib/serdevtry b/yocto-poky/scripts/contrib/serdevtry deleted file mode 100755 index 74bd7b716..000000000 --- a/yocto-poky/scripts/contrib/serdevtry +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2014 Intel Corporation -# -# Released under the MIT license (see COPYING.MIT) - -if [ "$1" = "" -o "$1" = "--help" ] ; then - echo "Usage: $0 <serial terminal command>" - echo - echo "Simple script to handle maintaining a terminal for serial devices that" - echo "disappear when a device is powered down or reset, such as the USB" - echo "serial console on the original BeagleBone (white version)." - echo - echo "e.g. $0 picocom -b 115200 /dev/ttyUSB0" - echo - exit -fi - -args="$@" -DEVICE="" -while [ "$1" != "" ]; do - case "$1" in - /dev/*) - DEVICE=$1 - break;; - esac - shift -done - -if [ "$DEVICE" != "" ] ; then - while true; do - if [ ! -e $DEVICE ] ; then - echo "serdevtry: waiting for $DEVICE to exist..." - while [ ! -e $DEVICE ]; do - sleep 0.1 - done - fi - if [ ! -w $DEVICE ] ; then - # Sometimes (presumably because of a race with udev) we get to - # the device before its permissions have been set up - RETRYNUM=0 - while [ ! -w $DEVICE ]; do - if [ "$RETRYNUM" = "2" ] ; then - echo "Device $DEVICE exists but is not writable!" - exit 1 - fi - RETRYNUM=$((RETRYNUM+1)) - sleep 0.1 - done - fi - $args - if [ -e $DEVICE ] ; then - break - fi - done -else - echo "Unable to determine device node from command: $args" - exit 1 -fi - |