]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/omap-common/Makefile
arm: mx6: use fuse_read() for OCOTP fuse access
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / omap-common / Makefile
index 98f29d466b3d554ecbbd67ebe68974c970f02b2c..464a5d1d732a7540f1cbea19ab285397c5cc781b 100644 (file)
@@ -5,46 +5,28 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)libomap-common.o
-
-COBJS  := reset.o
-COBJS  += timer.o
-COBJS  += utils.o
+obj-y  := reset.o
+obj-y  += timer.o
+obj-y  += utils.o
 
 ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
-COBJS  += hwinit-common.o
-COBJS  += clocks-common.o
-COBJS  += emif-common.o
-COBJS  += vc.o
-COBJS  += abb.o
+obj-y  += hwinit-common.o
+obj-y  += clocks-common.o
+obj-y  += emif-common.o
+obj-y  += vc.o
+obj-y  += abb.o
 endif
 
-ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
-COBJS  += boot-common.o
-SOBJS  += lowlevel_init.o
+ifneq ($(CONFIG_OMAP54XX),)
+obj-y  += pipe3-phy.o
+obj-$(CONFIG_SCSI_AHCI_PLAT) += sata.o
 endif
 
-ifndef CONFIG_SPL_BUILD
-ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
-COBJS  += mem-common.o
+ifeq ($(CONFIG_SYS_DCACHE_OFF),)
+obj-y  += omap-cache.o
 endif
-endif
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
-
-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  += boot-common.o
+obj-y  += lowlevel_init.o
 
-#########################################################################
+obj-y  += mem-common.o