more uboot bash shortcuts
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d5e03aaed2
commit
8fb0d8bd6f
20
u-boot/uboot
20
u-boot/uboot
|
@ -14,6 +14,24 @@ case "$1" in
|
|||
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)
|
||||
make pinebook_defconfig
|
||||
cp ../jcarr-pinebook/u-boot/bl31.bin .
|
||||
|
@ -50,6 +68,8 @@ case "$1" in
|
|||
*)
|
||||
echo
|
||||
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 build -- builds uboot for the pinebook'
|
||||
echo 'uboot flash -- flashes uboot onto the host "witserial"'
|
||||
|
|
|
@ -5,7 +5,7 @@ _uboot()
|
|||
local cur prev words cword
|
||||
_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
|
||||
|
||||
|
|
Loading…
Reference in New Issue