OSHW-DEIMOS/SOFTWARE/A64-TERES/u-boot_new/sunxi_spl/spl/Makefile
Dimitar Gamishev 093685c7d8 u-boot
2017-10-13 14:02:55 +03:00

55 lines
1.3 KiB
Makefile
Executable File

#
# (C) Copyright 2000-2011
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# (C) Copyright 2011
# Daniel Schwierzeck, daniel.schwierzeck@googlemail.com.
#
# (C) Copyright 2011
# 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 top-level Makefile.
#
include $(SPLDIR)/config.mk
CONFIG_SPL := y
export CONFIG_SPL
# We want the final binaries in this directory
obj := $(OBJTREE)/sunxi_spl/spl/
LIBS-y += arch/$(ARCH)/cpu/$(CPU)/$(SOC)/spl/libsource_spl.o
LIBS-$(CONFIG_STORAGE_MEDIA_MMC) += arch/$(ARCH)/cpu/$(CPU)/$(SOC)/mmc/libmmc.o
LIBS-$(CONFIG_STORAGE_MEDIA_NAND) += arch/$(ARCH)/cpu/$(CPU)/$(SOC)/nand/libnand.o
LIBS-y += arch/$(ARCH)/cpu/$(CPU)/$(SOC)/dram/libdram.o
#LIBS-y += lib/libgeneral.o
LIBS := $(addprefix $(OBJTREE)/,$(sort $(LIBS-y)))
ALL-y += $(obj)libspl.o
all: $(ALL-y)
$(obj)libspl.o: depend $(LIBS)
$(LIBS): depend
$(MAKE) -C $(SRCTREE)$(dir $(subst $(OBJTREE),,$@))
depend: tmpdep
ALL_LIBS := $(LIBS)
ALL_LIBS := $(dir $(sort $(ALL_LIBS)))
tmpdep:
@for dir in $(ALL_LIBS); do\
$(MAKE) -C $$dir _depend ; done
# defines $(obj).depend target
include $(SRCTREE)/rules.mk