]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
armv7: convert makefiles to Kbuild style
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 17 Oct 2013 08:34:48 +0000 (17:34 +0900)
committerTom Rini <trini@ti.com>
Thu, 31 Oct 2013 16:53:39 +0000 (12:53 -0400)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
22 files changed:
arch/arm/cpu/armv7/Makefile
arch/arm/cpu/armv7/am33xx/Makefile
arch/arm/cpu/armv7/at91/Makefile
arch/arm/cpu/armv7/exynos/Makefile
arch/arm/cpu/armv7/highbank/Makefile
arch/arm/cpu/armv7/mx5/Makefile
arch/arm/cpu/armv7/mx6/Makefile
arch/arm/cpu/armv7/omap-common/Makefile
arch/arm/cpu/armv7/omap3/Makefile
arch/arm/cpu/armv7/omap4/Makefile
arch/arm/cpu/armv7/omap5/Makefile
arch/arm/cpu/armv7/rmobile/Makefile
arch/arm/cpu/armv7/s5p-common/Makefile
arch/arm/cpu/armv7/s5pc1xx/Makefile
arch/arm/cpu/armv7/socfpga/Makefile
arch/arm/cpu/armv7/tegra-common/Makefile
arch/arm/cpu/armv7/tegra114/Makefile
arch/arm/cpu/armv7/tegra20/Makefile
arch/arm/cpu/armv7/tegra30/Makefile
arch/arm/cpu/armv7/u8500/Makefile
arch/arm/cpu/armv7/vf610/Makefile
arch/arm/cpu/armv7/zynq/Makefile

index ee4b02183a264e829f821ea06856a6227f5cdf83..8a8b6027410480779764e0739f28389a6d754835 100644 (file)
@@ -5,40 +5,18 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+extra-y        := start.o
 
-LIB    = $(obj)lib$(CPU).o
+obj-y  += cache_v7.o
 
-START  := start.o
-
-COBJS  += cache_v7.o
-
-COBJS  += cpu.o
-COBJS  += syslib.o
+obj-y  += cpu.o
+obj-y  += syslib.o
 
 ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI81XX),)
-SOBJS  += lowlevel_init.o
+obj-y  += lowlevel_init.o
 endif
 
 ifneq ($(CONFIG_ARMV7_NONSEC)$(CONFIG_ARMV7_VIRT),)
-SOBJS  += nonsec_virt.o
-COBJS  += virt-v7.o
+obj-y  += nonsec_virt.o
+obj-y  += virt-v7.o
 endif
-
-SRCS   := $(START:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(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
-
-#########################################################################
index f6a297c9daf05051824622d106f96481fa69a6a0..966fcab71b477c1055013ab86d5d9dd489ecf48f 100644 (file)
@@ -4,46 +4,19 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-$(CONFIG_AM33XX) += clock_am33xx.o
-COBJS-$(CONFIG_TI814X) += clock_ti814x.o
-COBJS-$(CONFIG_AM43XX) += clock_am43xx.o
+obj-$(CONFIG_AM33XX)   += clock_am33xx.o
+obj-$(CONFIG_TI814X)   += clock_ti814x.o
+obj-$(CONFIG_AM43XX)   += clock_am43xx.o
 
 ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX),)
-COBJS  += clock.o
+obj-y  += clock.o
 endif
 
-COBJS-$(CONFIG_TI816X) += clock_ti816x.o
-COBJS  += sys_info.o
-COBJS  += mem.o
-COBJS  += ddr.o
-COBJS  += emif4.o
-COBJS  += board.o
-COBJS  += mux.o
-COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
-
-all:   $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak .depend
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-$(CONFIG_TI816X)   += clock_ti816x.o
+obj-y  += sys_info.o
+obj-y  += mem.o
+obj-y  += ddr.o
+obj-y  += emif4.o
+obj-y  += board.o
+obj-y  += mux.o
+obj-$(CONFIG_NAND_OMAP_GPMC)   += elm.o
index 90b9bd68d7600f58bd51ad9a3ece0dd9f36e0215..0a2e48d0476c2d0c9b768029957d608285c7a032 100644 (file)
@@ -8,29 +8,8 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-$(CONFIG_SAMA5D3)        += sama5d3_devices.o
-COBJS-y += clock.o
-COBJS-y += cpu.o
-COBJS-y += reset.o
-COBJS-y += timer.o
-
-SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
-OBJS    := $(addprefix $(obj),$(SOBJS-y) $(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-$(CONFIG_SAMA5D3)  += sama5d3_devices.o
+obj-y += clock.o
+obj-y += cpu.o
+obj-y += reset.o
+obj-y += timer.o
index eb1633fcfe2fdd75bafbe851a304df3eb0c021c4..e207bd6af04a22e346d7cbc8d3b86afd26a01328 100644 (file)
@@ -5,34 +5,12 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-y        += clock.o power.o soc.o system.o pinmux.o tzpc.o
+obj-y  += clock.o power.o soc.o system.o pinmux.o tzpc.o
 
 ifdef CONFIG_SPL_BUILD
-COBJS-$(CONFIG_EXYNOS5)        += clock_init_exynos5.o
-COBJS-$(CONFIG_EXYNOS5)        += dmc_common.o dmc_init_ddr3.o
-COBJS-$(CONFIG_EXYNOS4210)+= dmc_init_exynos4.o clock_init_exynos4.o
-COBJS-y        += spl_boot.o
-COBJS-y        += lowlevel_init.o
+obj-$(CONFIG_EXYNOS5)  += clock_init_exynos5.o
+obj-$(CONFIG_EXYNOS5)  += dmc_common.o dmc_init_ddr3.o
+obj-$(CONFIG_EXYNOS4210)+= dmc_init_exynos4.o clock_init_exynos4.o
+obj-y  += spl_boot.o
+obj-y  += lowlevel_init.o
 endif
-
-COBJS   := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-
-all:    $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
index 22e3b72c8bbccc93a74aff7f38c6d263570b5bad..876099d9a1e4fb56cbde18116b2ca5dac8ad3a7f 100644 (file)
@@ -5,26 +5,4 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  := timer.o
-SOBJS  :=
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  := timer.o
index 7c86ae3ea5b301e8b153fa285f32075da81f6e2c..d021842f6811d41004f695b9f746aad66a96f628 100644 (file)
@@ -7,26 +7,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  = soc.o clock.o
-SOBJS = lowlevel_init.o
-
-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 := soc.o clock.o
+obj-y += lowlevel_init.o
index 6d736174dbb09e38b50c4b9432c91dc94b6795e6..d7285fc2ccb203ffcaddca9d6bfc538a8f3121f7 100644 (file)
@@ -7,26 +7,5 @@
 # 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_SECURE_BOOT)    += hab.o
index 75b3753260c33782b2a548d9c35f30518a46a6cb..4d3a165f591d47bbb9afd7624c5593586b9c5451 100644 (file)
@@ -5,46 +5,25 @@
 # 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
 
 ifeq ($(CONFIG_OMAP34XX),)
-COBJS  += boot-common.o
-SOBJS  += lowlevel_init.o
+obj-y  += boot-common.o
+obj-y  += lowlevel_init.o
 endif
 
 ifndef CONFIG_SPL_BUILD
 ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
-COBJS  += mem-common.o
+obj-y  += mem-common.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
-
-#########################################################################
index f070c1819652219a7866ffa8a774022c5ee75a96..39ff2575bc50c82c09697b40b0b088df876daccf 100644 (file)
@@ -5,38 +5,17 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+obj-y  := lowlevel_init.o
 
-LIB    =  $(obj)lib$(SOC).o
-
-SOBJS  := lowlevel_init.o
-
-COBJS  += board.o
-COBJS  += clock.o
-COBJS  += mem.o
-COBJS  += sys_info.o
+obj-y  += board.o
+obj-y  += clock.o
+obj-y  += mem.o
+obj-y  += sys_info.o
 ifdef CONFIG_SPL_BUILD
-COBJS-$(CONFIG_SPL_OMAP3_ID_NAND)      += spl_id_nand.o
+obj-$(CONFIG_SPL_OMAP3_ID_NAND)        += spl_id_nand.o
 endif
 
-COBJS-$(CONFIG_DRIVER_TI_EMAC) += emac.o
-COBJS-$(CONFIG_EMIF4)  += emif4.o
-COBJS-$(CONFIG_SDRC)   += sdrc.o
-COBJS-$(CONFIG_USB_MUSB_AM35X) += am35x_musb.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
-
-all:    $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-$(CONFIG_DRIVER_TI_EMAC)   += emac.o
+obj-$(CONFIG_EMIF4)    += emif4.o
+obj-$(CONFIG_SDRC)     += sdrc.o
+obj-$(CONFIG_USB_MUSB_AM35X)   += am35x_musb.o
index fc6e2ddd0a81842d09e5fad9abcef6d3536fba26..76a032a2d96684048170533a7b3f4327ec42f520 100644 (file)
@@ -5,29 +5,8 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    =  $(obj)lib$(SOC).o
-
-COBJS  += sdram_elpida.o
-COBJS  += hwinit.o
-COBJS  += emif.o
-COBJS  += prcm-regs.o
-COBJS  += hw_data.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  += sdram_elpida.o
+obj-y  += hwinit.o
+obj-y  += emif.o
+obj-y  += prcm-regs.o
+obj-y  += hw_data.o
index 168302dd3b1d06bd50fe466c314f16b8a27782fb..64c68791f18e3405d3aba11d39a3e6557c2f5f7b 100644 (file)
@@ -5,30 +5,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    =  $(obj)lib$(SOC).o
-
-COBJS  += hwinit.o
-COBJS  += emif.o
-COBJS  += sdram.o
-COBJS  += prcm-regs.o
-COBJS  += hw_data.o
-COBJS  += abb.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  += hwinit.o
+obj-y  += emif.o
+obj-y  += sdram.o
+obj-y  += prcm-regs.o
+obj-y  += hw_data.o
+obj-y  += abb.o
index 41bceb1cf579e38b2f6bc3a9e77872725cdd9c69..8f4cf3a19569718b37a6bf4cfb431aedce7cc69a 100644 (file)
@@ -5,44 +5,20 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-SOBJS = lowlevel_init.o
-COBJS-y += cpu_info.o
-COBJS-y += emac.o
-
-COBJS-$(CONFIG_DISPLAY_BOARDINFO) += board.o
-COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o
-COBJS-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
-COBJS-$(CONFIG_R8A7740) += pfc-r8a7740.o
-COBJS-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
-COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o
-COBJS_LN-$(CONFIG_TMU_TIMER) += sh_timer.o
-
-COBJS  := $(COBJS-y)
-SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-START  := $(addprefix $(obj),$(START))
-
-all:   $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
+obj-y = lowlevel_init.o
+obj-y += cpu_info.o
+obj-y += emac.o
+
+obj-$(CONFIG_DISPLAY_BOARDINFO) += board.o
+obj-$(CONFIG_GLOBAL_TIMER) += timer.o
+obj-$(CONFIG_R8A7740) += cpu_info-r8a7740.o
+obj-$(CONFIG_R8A7740) += pfc-r8a7740.o
+obj-$(CONFIG_SH73A0) += cpu_info-sh73a0.o
+obj-$(CONFIG_SH73A0) += pfc-sh73a0.o
+obj-$(CONFIG_TMU_TIMER) += sh_timer.o
+
+SRCS += $(obj)sh_timer.c
 # from arch/sh/lib/ directory
 $(obj)sh_timer.c:
        @rm -f $(obj)sh_timer.c
        ln -s $(SRCTREE)/arch/sh/lib/time.c $(obj)sh_timer.c
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
index fd7290caa389853d96161e865dc02d3ea4f2740b..f571d8a0e08818d61dd5e702a7ff638b9a95278f 100644 (file)
@@ -5,30 +5,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)libs5p-common.o
-
-COBJS-y                += cpu_info.o
+obj-y          += cpu_info.o
 ifndef CONFIG_SPL_BUILD
-COBJS-y                += timer.o
-COBJS-y                += sromc.o
-COBJS-$(CONFIG_PWM)    += pwm.o
+obj-y          += timer.o
+obj-y          += sromc.o
+obj-$(CONFIG_PWM)      += pwm.o
 endif
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
-
-all:    $(obj).depend $(LIB)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
index 09fed66bfdee300c90bed2fbd0e5da8284ca03d4..9f43ded1d904c1df02c5badf1a527dbc84f2f208 100644 (file)
@@ -8,28 +8,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
+obj-y  = cache.o
+obj-y  += reset.o
 
-LIB    = $(obj)lib$(SOC).o
-
-SOBJS  = cache.o
-SOBJS  += reset.o
-
-COBJS  += clock.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  += clock.o
index 0859e443d8169e313e8cfdeeb389aeb7cfe0c529..dac2bbdac114104aac08c72da482659998c76c69 100644 (file)
@@ -7,29 +7,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-
-include $(TOPDIR)/config.mk
-
-LIB    =  $(obj)lib$(SOC).o
-
-SOBJS  := lowlevel_init.o
-COBJS-y        := misc.o timer.o reset_manager.o system_manager.o
-COBJS-$(CONFIG_SPL_BUILD) += spl.o
-
-COBJS  := $(COBJS-y)
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  := lowlevel_init.o
+obj-y  += misc.o timer.o reset_manager.o system_manager.o
+obj-$(CONFIG_SPL_BUILD) += spl.o
index d97542d89d7a23be3a264429f9859027f8199423..463c260f181e3b03f1b7f81e2c0d70f75eed76cc 100644 (file)
@@ -7,26 +7,4 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    =  $(obj)libtegra-common.o
-
-COBJS-$(CONFIG_CMD_ENTERRCM) += cmd_enterrcm.o
-
-COBJS  := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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-$(CONFIG_CMD_ENTERRCM) += cmd_enterrcm.o
index eb98c8ea1743a2e1d7d251b562dc825e4ee78046..886b5092d68206e38e550ac3112d8eb75c12b243 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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- :=
index 4ee8e5baf3670e9c9099dca27487e84f497cdcf5..9b4295c72d6f2397053741d3684dc15f7e828cf8 100644 (file)
@@ -7,27 +7,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    =  $(obj)lib$(SOC).o
-
-COBJS-$(CONFIG_PWM_TEGRA) += pwm.o
-COBJS-$(CONFIG_VIDEO_TEGRA) += display.o
-
-COBJS  := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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-$(CONFIG_PWM_TEGRA) += pwm.o
+obj-$(CONFIG_VIDEO_TEGRA) += display.o
index 04adb529946fe33f701805f39405d32d3967ce88..518d6d1b3e4aafc0f753494f103b06f26ea89b6f 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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- :=
index 3d7a5920080927467e733b46b0eafec0660e2617..fad9d4ae3a1db9b1f3286d3fe6252826df09c7d0 100644 (file)
@@ -5,26 +5,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  = timer.o clock.o prcmu.o cpu.o
-SOBJS  = lowlevel.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
-
-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  := timer.o clock.o prcmu.o cpu.o
+obj-y  += lowlevel.o
index 7d3c454d5925a08a45b0a24086a30aaa3078bdde..68cb756d6741a698e91c547b19c6839fe9f8579b 100644 (file)
@@ -4,26 +4,5 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS  += generic.o
-COBJS  += timer.o
-
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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  += generic.o
+obj-y  += timer.o
index de6b08157e9e1afe35411728d109b1840de1056c..d382d49eb0f4917640f54676627dfc1f7559375b 100644 (file)
@@ -8,30 +8,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(SOC).o
-
-COBJS-y        := timer.o
-COBJS-y        += cpu.o
-COBJS-y        += ddrc.o
-COBJS-y        += slcr.o
-
-COBJS  := $(COBJS-y)
-
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(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  := timer.o
+obj-y  += cpu.o
+obj-y  += ddrc.o
+obj-y  += slcr.o