parent
2bcfe153c6
commit
90816de219
14
u-boot/uboot
14
u-boot/uboot
|
@ -16,8 +16,9 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
riscv)
|
riscv)
|
||||||
echo export CROSS_COMPILE=riscv64-linux-gnu-
|
echo export CROSS_COMPILE=riscv64-linux-gnu-
|
||||||
echo make qemu-riscv32_defconfig
|
echo make sifive_fu540_fsbl_defconfig
|
||||||
echo make
|
echo make
|
||||||
|
echo ./scripts/dtc/dtc ./arch/riscv/dts/fu540.dts -o ./arch/riscv/dts/fu540.dtb
|
||||||
;;
|
;;
|
||||||
deps)
|
deps)
|
||||||
apt install -f libpython-dev
|
apt install -f libpython-dev
|
||||||
|
@ -67,6 +68,12 @@ case "$1" in
|
||||||
fetch)
|
fetch)
|
||||||
git fetch --all
|
git fetch --all
|
||||||
;;
|
;;
|
||||||
|
push)
|
||||||
|
git pull
|
||||||
|
git add --all
|
||||||
|
git commit -a -s
|
||||||
|
git push
|
||||||
|
;;
|
||||||
flatten)
|
flatten)
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git checkout work
|
git checkout work
|
||||||
|
@ -79,6 +86,10 @@ case "$1" in
|
||||||
echo git remote add jamez https://git.wit.com/jamez/u-boot.git
|
echo git remote add jamez https://git.wit.com/jamez/u-boot.git
|
||||||
echo git fetch jamez
|
echo git fetch jamez
|
||||||
echo
|
echo
|
||||||
|
echo git checkout -b sifive-sandbox --track sifive/sandbox
|
||||||
|
echo
|
||||||
|
echo git push --set-upstream jcarr jcarr-fu540
|
||||||
|
echo
|
||||||
git remote -v
|
git remote -v
|
||||||
;;
|
;;
|
||||||
branches|status)
|
branches|status)
|
||||||
|
@ -111,6 +122,7 @@ case "$1" in
|
||||||
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"'
|
||||||
echo ''
|
echo ''
|
||||||
|
echo 'uboot push -- default git pull and push'
|
||||||
echo 'uboot riscv -- build for qemu and riscv'
|
echo 'uboot riscv -- build for qemu and riscv'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -5,7 +5,7 @@ _uboot()
|
||||||
local cur prev words cword
|
local cur prev words cword
|
||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W "remotes branches deps cross clean build flash flatten" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "remotes branches deps cross clean build flash flatten riscv remotes branches" -- "$cur" ) )
|
||||||
} &&
|
} &&
|
||||||
complete -F _uboot uboot
|
complete -F _uboot uboot
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue