2002-08-14 08:04:29 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-08-14 08:04:29 +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-08-14 08:04:29 +00:00
|
|
|
#
|
|
|
|
|
2011-02-23 06:40:38 +00:00
|
|
|
## Build a couple of necessary functions into a private libgcc
|
2013-10-17 08:35:04 +00:00
|
|
|
## if the user asked for it
|
2011-02-23 06:40:38 +00:00
|
|
|
ifdef USE_PRIVATE_LIBGCC
|
2013-10-17 08:35:04 +00:00
|
|
|
lib-y += _ashldi3.o
|
|
|
|
lib-y += _ashrdi3.o
|
|
|
|
lib-y += _lshrdi3.o
|
2011-02-23 06:40:38 +00:00
|
|
|
endif
|
|
|
|
|
2012-09-20 21:35:21 +00:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MINIMAL
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += cache.o time.o
|
|
|
|
obj-y += ticks.o
|
2012-09-20 21:35:21 +00:00
|
|
|
else
|
|
|
|
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += ppcstring.o
|
2012-09-20 21:35:21 +00:00
|
|
|
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += ppccache.o
|
|
|
|
obj-y += ticks.o
|
|
|
|
obj-y += reloc.o
|
2008-02-27 10:00:47 +00:00
|
|
|
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-$(CONFIG_BAT_RW) += bat_rw.o
|
2012-08-16 15:53:18 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-03-11 06:50:01 +00:00
|
|
|
ifndef CONFIG_SYS_GENERIC_BOARD
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += board.o
|
2012-08-16 15:53:18 +00:00
|
|
|
endif
|
2013-03-11 06:50:01 +00:00
|
|
|
endif
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
|
|
|
obj-y += cache.o
|
|
|
|
obj-y += extable.o
|
|
|
|
obj-y += interrupts.o
|
|
|
|
obj-$(CONFIG_CMD_KGDB) += kgdb.o
|
|
|
|
obj-$(CONFIG_CMD_IDE) += ide.o
|
|
|
|
obj-y += time.o
|
2008-02-27 10:00:47 +00:00
|
|
|
|
2012-08-16 15:53:18 +00:00
|
|
|
# Don't include the MPC5xxx special memcpy into the
|
|
|
|
# SPL U-Boot image. memcpy is used in the SPL NOR
|
|
|
|
# flash driver. And we need the real, fast memcpy
|
|
|
|
# here. We have no problems with unaligned access.
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-06-28 23:33:35 +00:00
|
|
|
# Workaround for local bus unaligned access problems
|
|
|
|
# on MPC512x and MPC5200
|
|
|
|
ifdef CONFIG_MPC512X
|
2014-02-04 08:24:24 +00:00
|
|
|
$(obj)/ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += memcpy_mpc5200.o
|
2010-06-28 23:33:35 +00:00
|
|
|
endif
|
2010-06-21 20:29:59 +00:00
|
|
|
ifdef CONFIG_MPC5200
|
2014-02-04 08:24:24 +00:00
|
|
|
$(obj)/ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-y += memcpy_mpc5200.o
|
2010-06-21 20:29:59 +00:00
|
|
|
endif
|
2012-08-16 15:53:18 +00:00
|
|
|
endif
|
2010-06-21 20:29:59 +00:00
|
|
|
|
2012-09-20 21:35:21 +00:00
|
|
|
endif # not minimal
|
|
|
|
|
2012-08-23 06:34:21 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2013-10-17 08:35:04 +00:00
|
|
|
obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
|
2012-08-23 06:34:21 +00:00
|
|
|
endif
|