diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-03 18:25:24 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 23:42:17 +0300 |
commit | 82c468a049d8887b70b1826c9fda2388f14704ef (patch) | |
tree | e5e900628049d313136894fc291cbbcdf3cf77a9 /test/Makefile | |
parent | 1cadc7611755bcd5e28e98515f4814e598196daa (diff) | |
download | u-boot-82c468a049d8887b70b1826c9fda2388f14704ef.tar.xz |
dm: test: Update Makefile conditions
At present most of the tests in test/Makefile are dependent on
CONFIG_SANDBOX. But this is not ideal since they rely on commands being
available and SPL does not support commands.
Use CONFIG_COMMAND instead. This has the dual purpose of allowing these
tests to be used on other boards and allowing SPL to skip them.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Makefile b/test/Makefile index 13ee661f50..73bddb4f61 100644 --- a/test/Makefile +++ b/test/Makefile @@ -2,15 +2,15 @@ # # (C) Copyright 2012 The Chromium Authors -obj-$(CONFIG_SANDBOX) += bloblist.o -obj-$(CONFIG_CMDLINE) += cmd/ -obj-$(CONFIG_UNIT_TEST) += cmd_ut.o -obj-$(CONFIG_SANDBOX) += command_ut.o -obj-$(CONFIG_SANDBOX) += compression.o +obj-$(CONFIG_$(SPL_)CMDLINE) += bloblist.o +obj-$(CONFIG_$(SPL_)CMDLINE) += cmd/ +obj-$(CONFIG_$(SPL_)CMDLINE) += cmd_ut.o +obj-$(CONFIG_$(SPL_)CMDLINE) += command_ut.o +obj-$(CONFIG_$(SPL_)CMDLINE) += compression.o obj-$(CONFIG_UNIT_TEST) += lib/ obj-y += log/ -obj-$(CONFIG_SANDBOX) += print_ut.o -obj-$(CONFIG_SANDBOX) += str_ut.o +obj-$(CONFIG_$(SPL_)CMDLINE) += print_ut.o +obj-$(CONFIG_$(SPL_)CMDLINE) += str_ut.o obj-$(CONFIG_UT_TIME) += time_ut.o obj-$(CONFIG_UT_UNICODE) += unicode_ut.o obj-$(CONFIG_UNIT_TEST) += ut.o |