mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-06 11:30:47 +09:00
f64000c302
The file test.dts from driver model test directory, was compiled by call dtc in script: test/dm/test-dm.sh. This doesn't allow for including of dtsi files and using of C preprocessor routines in this dts file. Since the mentioned script builds U-Boot before tests, then moving the test.dts file into sandbox dts directory is reasonable. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Tested on sandbox: Tested-by: Simon Glass <sjg@chromium.org>
17 lines
437 B
Bash
Executable File
17 lines
437 B
Bash
Executable File
#!/bin/sh
|
|
|
|
die() {
|
|
echo $1
|
|
exit 1
|
|
}
|
|
|
|
NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
|
|
make O=sandbox sandbox_config || die "Cannot configure U-Boot"
|
|
make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
|
|
dd if=/dev/zero of=spi.bin bs=1M count=2
|
|
echo -n "this is a test" > testflash.bin
|
|
dd if=/dev/zero bs=1M count=4 >>testflash.bin
|
|
./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "dm test"
|
|
rm spi.bin
|
|
rm testflash.bin
|