dm: test: Disable some tests that should not run in SPL
Tests are easier to run in U-Boot proper. Running them in SPL does not add test coverage in most cases. Also some tests use features that are not available in SPL. Update the build rules to disable these tests in SPL. We still need test-main to be able to actually run SPL tests. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
16a5068340
commit
627988f9f9
@ -7,11 +7,14 @@ 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-y += dm/
|
||||
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-y += ut.o
|
||||
|
||||
ifeq ($(CONFIG_SPL_BUILD),)
|
||||
obj-$(CONFIG_UNIT_TEST) += lib/
|
||||
obj-y += log/
|
||||
obj-$(CONFIG_$(SPL_)UT_UNICODE) += unicode_ut.o
|
||||
endif
|
||||
|
@ -2,15 +2,16 @@
|
||||
#
|
||||
# Copyright (c) 2013 Google, Inc
|
||||
|
||||
obj-$(CONFIG_UT_DM) += bus.o
|
||||
obj-$(CONFIG_UT_DM) += nop.o
|
||||
obj-$(CONFIG_UT_DM) += test-driver.o
|
||||
obj-$(CONFIG_UT_DM) += test-fdt.o
|
||||
obj-$(CONFIG_UT_DM) += test-main.o
|
||||
obj-$(CONFIG_UT_DM) += test-uclass.o
|
||||
|
||||
# Tests for particular subsystems - when enabling driver model for a new
|
||||
# subsystem you must add sandbox tests here.
|
||||
ifeq ($(CONFIG_SPL_BUILD),)
|
||||
obj-$(CONFIG_UT_DM) += bus.o
|
||||
obj-$(CONFIG_UT_DM) += test-driver.o
|
||||
obj-$(CONFIG_UT_DM) += test-fdt.o
|
||||
obj-$(CONFIG_UT_DM) += test-uclass.o
|
||||
|
||||
obj-$(CONFIG_UT_DM) += core.o
|
||||
ifneq ($(CONFIG_SANDBOX),)
|
||||
obj-$(CONFIG_ACPIGEN) += acpi.o
|
||||
@ -36,6 +37,7 @@ obj-$(CONFIG_DM_MAILBOX) += mailbox.o
|
||||
obj-$(CONFIG_DM_MMC) += mmc.o
|
||||
obj-$(CONFIG_CMD_MUX) += mux-cmd.o
|
||||
obj-y += fdtdec.o
|
||||
obj-$(CONFIG_UT_DM) += nop.o
|
||||
obj-y += ofnode.o
|
||||
obj-y += ofread.o
|
||||
obj-$(CONFIG_OSD) += osd.o
|
||||
@ -88,3 +90,4 @@ ifneq ($(CONFIG_PINMUX),)
|
||||
obj-$(CONFIG_PINCONF) += pinmux.o
|
||||
endif
|
||||
endif
|
||||
endif # !SPL
|
||||
|
Loading…
Reference in New Issue
Block a user