diff --git a/make-factory-sdcard/rc.local b/make-factory-sdcard/rc.local index 30551f7..47342e6 100755 --- a/make-factory-sdcard/rc.local +++ b/make-factory-sdcard/rc.local @@ -1,3 +1,3 @@ #!/bin/bash -x -/root/rc.local &>/dev/tty0 +/root/rc.local &>/dev/tty0 & diff --git a/u-boot/Makefile b/u-boot/Makefile index a4544ce..7f362d0 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -8,6 +8,8 @@ # git push -u origin --all # git push -u origin --tags +CROSS_COMPILE ?= riscv64-linux-gnu- + all: clone: diff --git a/u-boot/uboot b/u-boot/uboot index b395759..cd0ef83 100755 --- a/u-boot/uboot +++ b/u-boot/uboot @@ -14,6 +14,11 @@ case "$1" in echo fucking clean echo fucking clean ;; + riscv) + echo export CROSS_COMPILE=riscv64-linux-gnu- + echo make qemu-riscv32_defconfig + echo make + ;; deps) apt install -f libpython-dev if [ ! -f /usr/bin/bison ]; then @@ -70,6 +75,10 @@ case "$1" in git diff trini/master...work >/tmp/flatten.diff ;; remotes) + echo + echo git remote add jamez https://git.wit.com/jamez/u-boot.git + echo git fetch jamez + echo git remote -v ;; branches|status) @@ -101,6 +110,8 @@ case "$1" in 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"' + echo '' + echo 'uboot riscv -- build for qemu and riscv' ;; esac