X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fspl%2FMakefile;h=65a1484fc4e48fc6016e57c385778837599add63;hb=f763be224fa78893384416734419d8e052c1c5ef;hp=da2afc11b3599af796f62b55c325366d5251ea6c;hpb=0ce033d2582129243aca10d3072a221386bbba44;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/spl/Makefile b/common/spl/Makefile index da2afc1..65a1484 100644 --- a/common/spl/Makefile +++ b/common/spl/Makefile @@ -3,39 +3,19 @@ # Texas Instruments Incorporated - http://www.ti.com/ # Aneesh V # -# This file is released under the terms of GPL v2 and any later version. -# See the file COPYING in the root directory of the source tree for details. +# SPDX-License-Identifier: GPL-2.0+ # # Based on common/Makefile. # -include $(TOPDIR)/config.mk - -LIB = $(obj)libspl.o - ifdef CONFIG_SPL_BUILD -COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o -COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o -COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o -COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o -COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o -COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o +obj-$(CONFIG_SPL_FRAMEWORK) += spl.o +obj-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o +obj-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o +obj-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o +obj-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o +obj-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o +obj-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o +obj-$(CONFIG_SPL_USB_SUPPORT) += spl_usb.o +obj-$(CONFIG_SPL_FAT_SUPPORT) += spl_fat.o endif - -COBJS := $(sort $(COBJS-y)) -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS-y)) - -all: $(obj).depend $(LIB) - -$(LIB): $(OBJS) - $(call cmd_link_o_target, $(OBJS)) - -######################################################################### - -# defines $(obj).depend target -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend - -#########################################################################