2002-03-10 14:37:15 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-03-10 14:37:15 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-03-10 14:37:15 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
# CFLAGS += -DET_DEBUG
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2002-03-10 14:37:15 +00:00
|
|
|
|
2010-11-20 14:07:45 +00:00
|
|
|
SSTART-y += start.o
|
|
|
|
CSTART-y += traps.o
|
2008-04-02 06:03:56 +00:00
|
|
|
COBJS-y += bedbug_860.o
|
|
|
|
COBJS-y += commproc.o
|
|
|
|
COBJS-y += cpu.o
|
|
|
|
COBJS-y += cpu_init.o
|
|
|
|
COBJS-y += fec.o
|
|
|
|
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
|
|
|
COBJS-y += i2c.o
|
|
|
|
COBJS-y += interrupts.o
|
|
|
|
COBJS-y += scc.o
|
|
|
|
COBJS-y += serial.o
|
|
|
|
COBJS-y += speed.o
|
|
|
|
COBJS-y += spi.o
|
|
|
|
COBJS-y += upatch.o
|
|
|
|
COBJS-y += video.o
|
2010-11-20 14:07:45 +00:00
|
|
|
SOBJS-y += kgdb.o
|
2008-04-02 06:03:56 +00:00
|
|
|
SOBJS-y += plprcr_write.o
|
|
|
|
|
2010-11-20 14:07:45 +00:00
|
|
|
SRCS := $(SSTART-y:.o=.S) $(CSTART-y:.o=.c) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
2008-04-02 06:03:56 +00:00
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
2010-11-20 14:07:45 +00:00
|
|
|
START := $(addprefix $(obj),$(SSTART-y) $(CSTART-y))
|
2002-03-10 14:37:15 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
all: $(obj).depend $(START) $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-20 14:07:45 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2002-03-10 14:37:15 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-03-10 14:37:15 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2002-03-10 14:37:15 +00:00
|
|
|
|
|
|
|
#########################################################################
|