mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00

It is confusing to have both "$(PHASE_)" and "$(XPL_)" be used in our Makefiles as part of the macros to determine when to do something in our Makefiles based on what phase of the build we are in. For consistency, bring this down to a single macro and use "$(PHASE_)" only. Signed-off-by: Tom Rini <trini@konsulko.com>
28 lines
628 B
Makefile
28 lines
628 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2012 The Chromium Authors
|
|
|
|
obj-y += test-main.o
|
|
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += cmd/
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += cmd_ut.o
|
|
obj-y += dm/
|
|
obj-$(CONFIG_FUZZ) += fuzz/
|
|
ifndef CONFIG_SANDBOX_VPL
|
|
obj-$(CONFIG_UNIT_TEST) += lib/
|
|
endif
|
|
ifneq ($(CONFIG_HUSH_PARSER),)
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += hush/
|
|
endif
|
|
obj-$(CONFIG_UT_OPTEE) += optee/
|
|
obj-y += ut.o
|
|
|
|
ifeq ($(CONFIG_XPL_BUILD),)
|
|
obj-y += boot/
|
|
obj-$(CONFIG_UNIT_TEST) += common/
|
|
obj-$(CONFIG_UT_ENV) += env/
|
|
obj-$(CONFIG_UT_FDT_OVERLAY) += fdt_overlay/
|
|
obj-y += log/
|
|
else
|
|
obj-$(CONFIG_SPL_UT_LOAD) += image/
|
|
endif
|