From 895ed4e895756ca5e0a0bf43f45b7eed7b9c604a Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 9 Sep 2014 19:26:19 +0900 Subject: kbuild: remove unnecessary "obj- := dummy.o" trick In these Makefiles, at least one of "obj-y" and "obj-" is non-empty, hence built-in.o is always created without such a trick. Signed-off-by: Masahiro Yamada Acked-by: Peter Foley Acked-by: Mike Turquette Acked-by: Simon Horman [shmobile] Acked-by: David S. Miller [networking] Signed-off-by: Michal Marek --- arch/arm/plat-samsung/Makefile | 1 - 1 file changed, 1 deletion(-) (limited to 'arch/arm/plat-samsung/Makefile') diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index 5fe175017f07..a402262bb37f 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile @@ -8,7 +8,6 @@ ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include obj-y := obj-m := -obj-n := dummy.o obj- := # Objects we always build independent of SoC choice -- cgit v1.2.3 From ac84eb47cc199d9df7eeb7b32630fc09295a030b Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 9 Sep 2014 19:26:20 +0900 Subject: kbuild: remove unnecessary variable initializaions Clearing obj-y, obj-m, obj-n, obj- in each Makefile is a useless habit. They are non-exported variables; therefore they are always empty whenever descending into each subdirectory. (Moreorver, obj-y and obj-m are also set to empty at the beginning of scripts/Makefile.build) Signed-off-by: Masahiro Yamada Acked-by: Nicolas Ferre Acked-by: Peter Foley Acked-by: Linus Walleij Signed-off-by: Michal Marek --- arch/arm/plat-samsung/Makefile | 4 ---- 1 file changed, 4 deletions(-) (limited to 'arch/arm/plat-samsung/Makefile') diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index a402262bb37f..f0a008496993 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile @@ -6,10 +6,6 @@ ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include -obj-y := -obj-m := -obj- := - # Objects we always build independent of SoC choice obj-y += init.o cpu.o -- cgit v1.2.3