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) |
| 9 | dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb |
Simon Glass | 4fb0817 | 2015-01-25 08:26:56 -0700 | [diff] [blame] | 10 | make O=sandbox sandbox_config || die "Cannot configure U-Boot" |
| 11 | make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" |
Simon Glass | abae56d | 2014-10-13 23:42:10 -0600 | [diff] [blame] | 12 | dd if=/dev/zero of=spi.bin bs=1M count=2 |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 13 | ./sandbox/u-boot -d test/dm/test.dtb -c "dm test" |
Simon Glass | abae56d | 2014-10-13 23:42:10 -0600 | [diff] [blame] | 14 | rm spi.bin |