diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-05 16:32:42 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-07-21 10:27:34 -0600 |
commit | bf8188e4aa442a9fcd6b5332d177ec76a8faae65 (patch) | |
tree | 61c5cca38d2d141fa00ad6a6d98ed30f6755cefe | |
parent | f093f8649c794866f5793f132f93c95335aea817 (diff) | |
download | u-boot-bf8188e4aa442a9fcd6b5332d177ec76a8faae65.zip u-boot-bf8188e4aa442a9fcd6b5332d177ec76a8faae65.tar.gz u-boot-bf8188e4aa442a9fcd6b5332d177ec76a8faae65.tar.bz2 |
test: Add DM_DMA to be disabled
At present if DM_DMA is disabled on a sandbox build, the build fails.
Make the test conditional.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | test/dm/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/core.c b/test/dm/core.c index 2210345..0492698 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -1171,6 +1171,7 @@ static int dm_test_all_have_seq(struct unit_test_state *uts) } DM_TEST(dm_test_all_have_seq, UT_TESTF_SCAN_PDATA); +#if CONFIG_IS_ENABLED(DM_DMA) static int dm_test_dma_offset(struct unit_test_state *uts) { struct udevice *dev; @@ -1200,3 +1201,4 @@ static int dm_test_dma_offset(struct unit_test_state *uts) return 0; } DM_TEST(dm_test_dma_offset, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); +#endif |