mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-13 08:27:23 +00:00
2e059e4a6e
As an example of an SPL test, add a new test for loading a FIT within SPL. This runs on sandbox_spl. For this to work, the text base is adjusted so that there is plenty of space available. While we are here, document struct spl_load_info properly, since this is currently ambiguous. This test only verifies the logic path. It does not actually check that the image is loaded correctly. It is not possible for sandbox's SPL to actually run u-boot.img since it currently includes u-boot.bin rather than u-boot. Further work could expand the test in that direction. The need for this was noted at: http://patchwork.ozlabs.org/project/uboot/patch/20201216000944.2832585-3-mr.nuke.me@gmail.com/ Signed-off-by: Simon Glass <sjg@chromium.org>
26 lines
710 B
Makefile
26 lines
710 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2012 The Chromium Authors
|
|
|
|
obj-y += test-main.o
|
|
obj-$(CONFIG_SANDBOX) += image/
|
|
|
|
ifneq ($(CONFIG_$(SPL_)BLOBLIST),)
|
|
obj-$(CONFIG_$(SPL_)CMDLINE) += bloblist.o
|
|
obj-$(CONFIG_$(SPL_)CMDLINE) += bootm.o
|
|
endif
|
|
obj-$(CONFIG_$(SPL_)CMDLINE) += cmd/
|
|
obj-$(CONFIG_$(SPL_)CMDLINE) += cmd_ut.o
|
|
obj-$(CONFIG_$(SPL_)CMDLINE) += command_ut.o
|
|
obj-$(CONFIG_$(SPL_)UT_COMPRESSION) += compression.o
|
|
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-y += ut.o
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD),)
|
|
obj-$(CONFIG_UNIT_TEST) += lib/
|
|
obj-y += log/
|
|
obj-$(CONFIG_$(SPL_)UT_UNICODE) += unicode_ut.o
|
|
endif
|