]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm920t/Makefile
kbuild: Descend into SOC directory from CPU directory
[karo-tx-uboot.git] / arch / arm / cpu / arm920t / Makefile
index 4758f025a0c136be5b3e3a66eeea6d13bcca8e02..9f885ff2305787ff9886d10f2d7c8c6a2c22fcba 100644 (file)
@@ -5,29 +5,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+extra-y        = start.o
 
-LIB    = $(obj)lib$(CPU).o
+obj-y  += cpu.o
+obj-$(CONFIG_USE_IRQ)  += interrupts.o
 
-START  = start.o
-
-COBJS-y        += cpu.o
-COBJS-$(CONFIG_USE_IRQ)        += interrupts.o
-
-SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
-START  := $(addprefix $(obj),$(START))
-
-all:   $(obj).depend $(START) $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-y += $(if $(SOC),$(SOC)/)