2002-08-14 17:04:29 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2000-2006
|
2002-08-14 17:04:29 +09:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-08-14 17:04:29 +09:00
|
|
|
#
|
|
|
|
|
2011-02-23 15:40:38 +09:00
|
|
|
## Build a couple of necessary functions into a private libgcc
|
2013-10-17 17:35:04 +09:00
|
|
|
## if the user asked for it
|
2011-02-23 15:40:38 +09:00
|
|
|
ifdef USE_PRIVATE_LIBGCC
|
2013-10-17 17:35:04 +09:00
|
|
|
lib-y += _ashldi3.o
|
|
|
|
lib-y += _ashrdi3.o
|
|
|
|
lib-y += _lshrdi3.o
|
2011-02-23 15:40:38 +09:00
|
|
|
endif
|
|
|
|
|
2012-09-21 06:35:21 +09:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MINIMAL
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += cache.o time.o
|
|
|
|
obj-y += ticks.o
|
2012-09-21 06:35:21 +09:00
|
|
|
else
|
|
|
|
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += ppcstring.o
|
2012-09-21 06:35:21 +09:00
|
|
|
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += ppccache.o
|
|
|
|
obj-y += ticks.o
|
|
|
|
obj-y += reloc.o
|
2008-02-27 19:00:47 +09:00
|
|
|
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-$(CONFIG_BAT_RW) += bat_rw.o
|
2012-08-17 00:53:18 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-03-11 15:50:01 +09:00
|
|
|
ifndef CONFIG_SYS_GENERIC_BOARD
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += board.o
|
2012-08-17 00:53:18 +09:00
|
|
|
endif
|
2013-03-11 15:50:01 +09:00
|
|
|
endif
|
2013-10-17 17:35:04 +09: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 19:00:47 +09:00
|
|
|
|
2012-08-17 00:53:18 +09: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-29 08:33:35 +09:00
|
|
|
# Workaround for local bus unaligned access problems
|
|
|
|
# on MPC512x and MPC5200
|
|
|
|
ifdef CONFIG_MPC512X
|
|
|
|
$(obj)ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += memcpy_mpc5200.o
|
2010-06-29 08:33:35 +09:00
|
|
|
endif
|
2010-06-22 05:29:59 +09:00
|
|
|
ifdef CONFIG_MPC5200
|
|
|
|
$(obj)ppcstring.o: AFLAGS += -Dmemcpy=__memcpy
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-y += memcpy_mpc5200.o
|
2010-06-22 05:29:59 +09:00
|
|
|
endif
|
2012-08-17 00:53:18 +09:00
|
|
|
endif
|
2010-06-22 05:29:59 +09:00
|
|
|
|
2012-09-21 06:35:21 +09:00
|
|
|
endif # not minimal
|
|
|
|
|
2012-08-23 15:34:21 +09:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2013-10-17 17:35:04 +09:00
|
|
|
obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
|
2012-08-23 15:34:21 +09:00
|
|
|
endif
|