]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - test/dm/test-dm.sh
Merge branch 'master' of git://git.denx.de/u-boot-ti
[karo-tx-uboot.git] / test / dm / test-dm.sh
index ef5aca5ac3c43800fe62b9242027cb341f4e9af7..8ebc39297cb53ec315c828a4d0429e8c7ae46dc7 100755 (executable)
@@ -1,7 +1,14 @@
 #!/bin/sh
 
+die() {
+       echo $1
+       exit 1
+}
+
 NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
 dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
-make O=sandbox sandbox_config
-make O=sandbox -s -j${NUM_CPUS}
+make O=sandbox sandbox_config || die "Cannot configure U-Boot"
+make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
+dd if=/dev/zero of=spi.bin bs=1M count=2
 ./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
+rm spi.bin