]> git.sur5r.net Git - u-boot/blobdiff - arch/sandbox/lib/Makefile
board: sama5d4ek: clean up code
[u-boot] / arch / sandbox / lib / Makefile
index 993fb4e06b5646a28da02deafa54dbbe6436d0ab..2e7802feac8a99b7dfcee72a267b5e77c0808bc0 100644 (file)
@@ -7,28 +7,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(ARCH).o
-
-COBJS-y        += interrupts.o
-
-SRCS   := $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS-y))
-
-# Always build libsandbox.o
-TARGETS        := $(LIB)
-
-all:   $(TARGETS)
-
-$(LIB):        $(obj).depend $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-y  += interrupts.o
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_PCI)      += pci_io.o
+endif
+obj-$(CONFIG_CMD_BOOTM) += bootm.o
+obj-$(CONFIG_CMD_BOOTZ) += bootm.o