X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=board%2Fsbc8641d%2FMakefile;h=0cbc0d0a907945575fbf82c17b2f9299917e34dc;hb=326ea986ac150acdc7656d57fca647db80b50158;hp=a90b725db4615364aaa05a852637ac36d303f73a;hpb=d61ea14885631e58a25feaa81ee82eb464c62d6a;p=karo-tx-uboot.git diff --git a/board/sbc8641d/Makefile b/board/sbc8641d/Makefile index a90b725db4..0cbc0d0a90 100644 --- a/board/sbc8641d/Makefile +++ b/board/sbc8641d/Makefile @@ -2,45 +2,23 @@ # (C) Copyright 2001 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # -# 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 +# SPDX-License-Identifier: GPL-2.0+ # include $(TOPDIR)/config.mk -LIB = $(obj)lib$(BOARD).a +LIB = $(obj)lib$(BOARD).o -COBJS := $(BOARD).o -SOBJS := init.o +COBJS-y += $(BOARD).o +COBJS-y += law.o +COBJS-$(CONFIG_FSL_DDR2) += ddr.o -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS-y)) SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) - $(AR) $(ARFLAGS) $@ $(OBJS) - -clean: - rm -f $(OBJS) $(SOBJS) - -.PHONY: distclean -distclean: clean - rm -f $(LIB) core *.bak .depend + $(call cmd_link_o_target, $(OBJS)) #########################################################################