Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Simon Glass | 4fb0817 | 2015-01-25 08:26:56 -0700 | [diff] [blame] | 3 | die() { |
| 4 | echo $1 |
| 5 | exit 1 |
| 6 | } |
| 7 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 8 | NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor) |
Simon Glass | 4fb0817 | 2015-01-25 08:26:56 -0700 | [diff] [blame] | 9 | make O=sandbox sandbox_config || die "Cannot configure U-Boot" |
| 10 | make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" |
Simon Glass | abae56d | 2014-10-13 23:42:10 -0600 | [diff] [blame] | 11 | dd if=/dev/zero of=spi.bin bs=1M count=2 |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 12 | echo -n "this is a test" > testflash.bin |
| 13 | dd if=/dev/zero bs=1M count=4 >>testflash.bin |
Joe Hershberger | 9dc1d71 | 2015-05-20 14:27:29 -0500 | [diff] [blame] | 14 | ./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm" |
Simon Glass | abae56d | 2014-10-13 23:42:10 -0600 | [diff] [blame] | 15 | rm spi.bin |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 16 | rm testflash.bin |