From 90816de21948e9c3183a226a97cd1436b0c0333c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Apr 2019 14:01:46 -0700 Subject: [PATCH] more bash Signed-off-by: Jeff Carr --- u-boot/uboot | 14 +++++++++++++- u-boot/uboot-bash-completion | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/u-boot/uboot b/u-boot/uboot index cd0ef83..f8b51ef 100755 --- a/u-boot/uboot +++ b/u-boot/uboot @@ -16,8 +16,9 @@ case "$1" in ;; riscv) echo export CROSS_COMPILE=riscv64-linux-gnu- - echo make qemu-riscv32_defconfig + echo make sifive_fu540_fsbl_defconfig echo make + echo ./scripts/dtc/dtc ./arch/riscv/dts/fu540.dts -o ./arch/riscv/dts/fu540.dtb ;; deps) apt install -f libpython-dev @@ -67,6 +68,12 @@ case "$1" in fetch) git fetch --all ;; + push) + git pull + git add --all + git commit -a -s + git push + ;; flatten) git fetch --all 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 fetch jamez echo + echo git checkout -b sifive-sandbox --track sifive/sandbox + echo + echo git push --set-upstream jcarr jcarr-fu540 + echo git remote -v ;; branches|status) @@ -111,6 +122,7 @@ case "$1" in echo 'uboot build -- builds uboot for the pinebook' echo 'uboot flash -- flashes uboot onto the host "witserial"' echo '' + echo 'uboot push -- default git pull and push' echo 'uboot riscv -- build for qemu and riscv' ;; esac diff --git a/u-boot/uboot-bash-completion b/u-boot/uboot-bash-completion index 17db6f7..60b4c2d 100644 --- a/u-boot/uboot-bash-completion +++ b/u-boot/uboot-bash-completion @@ -5,7 +5,7 @@ _uboot() local cur prev words cword _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