2014-02-26 22:59:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-01-25 15:26:56 +00:00
|
|
|
die() {
|
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2014-02-26 22:59:21 +00:00
|
|
|
NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
|
|
|
|
dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
|
2015-01-25 15:26:56 +00:00
|
|
|
make O=sandbox sandbox_config || die "Cannot configure U-Boot"
|
|
|
|
make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
|
2014-10-14 05:42:10 +00:00
|
|
|
dd if=/dev/zero of=spi.bin bs=1M count=2
|
2014-02-26 22:59:21 +00:00
|
|
|
./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
|
2014-10-14 05:42:10 +00:00
|
|
|
rm spi.bin
|