X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=test%2FMakefile;h=1092011fdb0363742ad18ac1137eaf98ebdc8388;hb=HEAD;hp=83594f3290c25a5c8a7e763302e54396f03d759f;hpb=a72007d999d3528b6176ffacff1841cb2032a7c1;p=u-boot diff --git a/test/Makefile b/test/Makefile index 83594f3290..1092011fdb 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,45 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ # # (C) Copyright 2012 The Chromium Authors -# -# See file CREDITS for list of people who contributed to this -# project. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA -# - -include $(TOPDIR)/config.mk - -LIB = $(obj)libtest.o - -COBJS-$(CONFIG_SANDBOX) += command_ut.o - -COBJS := $(sort $(COBJS-y)) -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) - -all: $(LIB) $(XOBJS) - -$(LIB): $(obj).depend $(OBJS) - $(call cmd_link_o_target, $(OBJS)) - -######################################################################### - -# defines $(obj).depend target -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend -######################################################################### +obj-$(CONFIG_UNIT_TEST) += cmd_ut.o +obj-$(CONFIG_UNIT_TEST) += ut.o +obj-$(CONFIG_SANDBOX) += command_ut.o +obj-$(CONFIG_SANDBOX) += compression.o +obj-$(CONFIG_SANDBOX) += print_ut.o +obj-$(CONFIG_UT_TIME) += time_ut.o +obj-$(CONFIG_$(SPL_)LOG) += log/