misc updates

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-02-26 12:22:10 -08:00
parent 90efdd3c99
commit 2bcfe153c6
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash -x #!/bin/bash -x
/root/rc.local &>/dev/tty0 /root/rc.local &>/dev/tty0 &

View File

@ -8,6 +8,8 @@
# git push -u origin --all # git push -u origin --all
# git push -u origin --tags # git push -u origin --tags
CROSS_COMPILE ?= riscv64-linux-gnu-
all: all:
clone: clone:

View File

@ -14,6 +14,11 @@ case "$1" in
echo fucking clean echo fucking clean
echo fucking clean echo fucking clean
;; ;;
riscv)
echo export CROSS_COMPILE=riscv64-linux-gnu-
echo make qemu-riscv32_defconfig
echo make
;;
deps) deps)
apt install -f libpython-dev apt install -f libpython-dev
if [ ! -f /usr/bin/bison ]; then if [ ! -f /usr/bin/bison ]; then
@ -70,6 +75,10 @@ case "$1" in
git diff trini/master...work >/tmp/flatten.diff git diff trini/master...work >/tmp/flatten.diff
;; ;;
remotes) remotes)
echo
echo git remote add jamez https://git.wit.com/jamez/u-boot.git
echo git fetch jamez
echo
git remote -v git remote -v
;; ;;
branches|status) branches|status)
@ -101,6 +110,8 @@ case "$1" in
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"'
echo ''
echo 'uboot riscv -- build for qemu and riscv'
;; ;;
esac esac