more uboot bash shortcuts

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-01-20 04:13:32 -05:00
parent d5e03aaed2
commit 8fb0d8bd6f
2 changed files with 21 additions and 1 deletions

View File

@ -14,6 +14,24 @@ case "$1" in
echo fucking clean echo fucking clean
echo fucking clean echo fucking clean
;; ;;
deps)
apt install -f libpython-dev
if [ ! -f /usr/bin/bison ]; then
apt install -f bison
fi
if [ ! -f /usr/bin/flex ]; then
apt install -f flex
fi
if [ ! -f /usr/bin/swig ]; then
apt install -f swig
fi
if [ ! -f /usr/bin/dtc ]; then
apt install -f device-tree-compiler
fi
;;
cross)
echo export CROSS_COMPILE=/home/pinebook/cross-compilers/gcc-linaro/bin/aarch64-linux-gnu-
;;
build) build)
make pinebook_defconfig make pinebook_defconfig
cp ../jcarr-pinebook/u-boot/bl31.bin . cp ../jcarr-pinebook/u-boot/bl31.bin .
@ -50,6 +68,8 @@ case "$1" in
*) *)
echo echo
echo 'uboot branches -- shows the git repos and branches' echo 'uboot branches -- shows the git repos and branches'
echo 'uboot deps -- install all the build dependancies'
echo 'uboot cross -- set up the x86 cross compiler needed env. lame.'
echo 'uboot clean -- purges more or less absolutely everything except .*' echo 'uboot clean -- purges more or less absolutely everything except .*'
echo 'uboot build -- builds uboot for the pinebook' echo 'uboot build -- builds uboot for the pinebook'
echo 'uboot flash -- flashes uboot onto the host "witserial"' echo 'uboot flash -- flashes uboot onto the host "witserial"'

View File

@ -5,7 +5,7 @@ _uboot()
local cur prev words cword local cur prev words cword
_init_completion || return _init_completion || return
COMPREPLY=( $( compgen -W "branches build flash clean" -- "$cur" ) ) COMPREPLY=( $( compgen -W "branches deps cross clean build flash" -- "$cur" ) )
} && } &&
complete -F _uboot uboot complete -F _uboot uboot