summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/test/dm/test-dm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/u-boot/test/dm/test-dm.sh')
-rwxr-xr-xqemu/roms/u-boot/test/dm/test-dm.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/test/dm/test-dm.sh b/qemu/roms/u-boot/test/dm/test-dm.sh
new file mode 100755
index 000000000..ef5aca5ac
--- /dev/null
+++ b/qemu/roms/u-boot/test/dm/test-dm.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
+dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb
+make O=sandbox sandbox_config
+make O=sandbox -s -j${NUM_CPUS}
+./sandbox/u-boot -d test/dm/test.dtb -c "dm test"