]>
Commit | Line | Data |
---|---|---|
2e7d35d2 SG |
1 | #!/bin/sh |
2 | ||
22cc0691 SG |
3 | die() { |
4 | echo $1 | |
5 | exit 1 | |
6 | } | |
7 | ||
2e7d35d2 | 8 | NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor) |
22cc0691 SG |
9 | make O=sandbox sandbox_config || die "Cannot configure U-Boot" |
10 | make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" | |
ebcab48a | 11 | dd if=/dev/zero of=spi.bin bs=1M count=2 |
e00cb223 SG |
12 | echo -n "this is a test" > testflash.bin |
13 | dd if=/dev/zero bs=1M count=4 >>testflash.bin | |
40441e0b | 14 | ./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm" |
ebcab48a | 15 | rm spi.bin |
e00cb223 | 16 | rm testflash.bin |