test-dm.sh 369 B

1234567891011121314
  1. #!/bin/sh
  2. die() {
  3. echo $1
  4. exit 1
  5. }
  6. NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
  7. dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
  8. make O=sandbox sandbox_config || die "Cannot configure U-Boot"
  9. make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
  10. dd if=/dev/zero of=spi.bin bs=1M count=2
  11. ./sandbox/u-boot -d test/dm/test.dtb -c "dm test"
  12. rm spi.bin