diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-25 20:38:29 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:18 -0600 |
commit | 217293e399148e704d6c318b19b1f69959831f7b (patch) | |
tree | bacd12ae3bdd11997d04694a361c8c6f2badb699 /test/dm/Makefile | |
parent | b25ff5cbaaaa7f144eb6e087b4bdd7362c58029d (diff) | |
download | u-boot-217293e399148e704d6c318b19b1f69959831f7b.tar.gz u-boot-217293e399148e704d6c318b19b1f69959831f7b.tar.bz2 u-boot-217293e399148e704d6c318b19b1f69959831f7b.zip |
dm: test: Add a very simple of-platadata test
At present we have a pytest that covers of-platadata. Add a very simple
unit test that just checks that a device can be found. This shows the
ability to write these tests in C.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/Makefile')
-rw-r--r-- | test/dm/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile index c0dc632f23..57e13ad533 100644 --- a/test/dm/Makefile +++ b/test/dm/Makefile @@ -6,7 +6,9 @@ obj-$(CONFIG_UT_DM) += test-main.o # Tests for particular subsystems - when enabling driver model for a new # subsystem you must add sandbox tests here. -ifeq ($(CONFIG_SPL_BUILD),) +ifeq ($(CONFIG_SPL_BUILD),y) +obj-$(CONFIG_SPL_OF_PLATDATA) += of_platdata.o +else obj-$(CONFIG_UT_DM) += bus.o obj-$(CONFIG_UT_DM) += test-driver.o obj-$(CONFIG_UT_DM) += test-fdt.o |