mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
33d346464a
SPL NOR flash booting support is quite simple. Only copying of the images is needed. On MPC5xxx we need to make sure to only use the standard memcpy() implementation and not the MPC5xxx specific one. As the MPC5xxx version has some complexity which is not needed for this SPL booting. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
40 lines
956 B
Makefile
40 lines
956 B
Makefile
#
|
|
# (C) Copyright 2012
|
|
# Texas Instruments Incorporated - http://www.ti.com/
|
|
# Aneesh V <aneesh@ti.com>
|
|
#
|
|
# 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.
|
|
#
|
|
# 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
|
|
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
|
|
|
|
#########################################################################
|