]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/mx6/Makefile
mx6: clock: fix integer overflow in calculation of relative error in set_nfc_clk()
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / mx6 / Makefile
index 6d736174dbb09e38b50c4b9432c91dc94b6795e6..bf6effc9399d5407cc04e80fb200b59590a04536 100644 (file)
@@ -7,26 +7,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-y        = soc.o clock.o
-COBJS-$(CONFIG_SECURE_BOOT)    += hab.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(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
-
-#########################################################################
+obj-y  := soc.o clock.o
+obj-$(CONFIG_SPL_BUILD)             += ddr.o
+obj-$(CONFIG_SECURE_BOOT)    += hab.o
+obj-$(CONFIG_MP)             += mp.o