blob: 8ebc39297cb53ec315c828a4d0429e8c7ae46dc7 [file] [log] [blame]
Simon Glassb2c1cac2014-02-26 15:59:21 -07001#!/bin/sh
2
Simon Glass4fb08172015-01-25 08:26:56 -07003die() {
4 echo $1
5 exit 1
6}
7
Simon Glassb2c1cac2014-02-26 15:59:21 -07008NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
9dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
Simon Glass4fb08172015-01-25 08:26:56 -070010make O=sandbox sandbox_config || die "Cannot configure U-Boot"
11make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
Simon Glassabae56d2014-10-13 23:42:10 -060012dd if=/dev/zero of=spi.bin bs=1M count=2
Simon Glassb2c1cac2014-02-26 15:59:21 -070013./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
Simon Glassabae56d2014-10-13 23:42:10 -060014rm spi.bin