diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-22 04:50:33 -0500 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-22 20:12:03 -0500 |
| commit | 4d4b5c2e3b6e6137c36cc13fe0d03404205afbd0 (patch) | |
| tree | f925d99fbba9a000cbc7a4bef611993b27d27f76 | |
| parent | 3470d9eb638722212ac44787eaf13486823fa011 (diff) | |
treewide: remove explicit rules for *offsets.s
These explicit rules are unneeded because scripts/Makefile.build
provides a pattern rule to create %.s from %.c
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| -rw-r--r-- | Kbuild | 9 | ||||
| -rw-r--r-- | arch/arm/mach-at91/Makefile | 3 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/Makefile | 3 | ||||
| -rw-r--r-- | arch/ia64/kernel/Makefile | 5 | ||||
| -rw-r--r-- | drivers/memory/Makefile.asm-offsets | 3 | ||||
| -rw-r--r-- | samples/bpf/Makefile | 3 |
6 files changed, 1 insertions, 25 deletions
| @@ -16,10 +16,6 @@ bounds-file := include/generated/bounds.h | |||
| 16 | always := $(bounds-file) | 16 | always := $(bounds-file) |
| 17 | targets := kernel/bounds.s | 17 | targets := kernel/bounds.s |
| 18 | 18 | ||
| 19 | # We use internal kbuild rules to avoid the "is up to date" message from make | ||
| 20 | kernel/bounds.s: kernel/bounds.c FORCE | ||
| 21 | $(call if_changed_dep,cc_s_c) | ||
| 22 | |||
| 23 | $(obj)/$(bounds-file): kernel/bounds.s FORCE | 19 | $(obj)/$(bounds-file): kernel/bounds.s FORCE |
| 24 | $(call filechk,offsets,__LINUX_BOUNDS_H__) | 20 | $(call filechk,offsets,__LINUX_BOUNDS_H__) |
| 25 | 21 | ||
| @@ -50,10 +46,7 @@ offsets-file := include/generated/asm-offsets.h | |||
| 50 | always += $(offsets-file) | 46 | always += $(offsets-file) |
| 51 | targets += arch/$(SRCARCH)/kernel/asm-offsets.s | 47 | targets += arch/$(SRCARCH)/kernel/asm-offsets.s |
| 52 | 48 | ||
| 53 | # We use internal kbuild rules to avoid the "is up to date" message from make | 49 | arch/$(SRCARCH)/kernel/asm-offsets.s: $(obj)/$(timeconst-file) $(obj)/$(bounds-file) |
| 54 | arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \ | ||
| 55 | $(obj)/$(timeconst-file) $(obj)/$(bounds-file) FORCE | ||
| 56 | $(call if_changed_dep,cc_s_c) | ||
| 57 | 50 | ||
| 58 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE | 51 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE |
| 59 | $(call filechk,offsets,__ASM_OFFSETS_H__) | 52 | $(call filechk,offsets,__ASM_OFFSETS_H__) |
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 7415f181907b..f87066b60836 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
| @@ -19,9 +19,6 @@ ifeq ($(CONFIG_PM_DEBUG),y) | |||
| 19 | CFLAGS_pm.o += -DDEBUG | 19 | CFLAGS_pm.o += -DDEBUG |
| 20 | endif | 20 | endif |
| 21 | 21 | ||
| 22 | arch/arm/mach-at91/pm_data-offsets.s: arch/arm/mach-at91/pm_data-offsets.c | ||
| 23 | $(call if_changed_dep,cc_s_c) | ||
| 24 | |||
| 25 | include/generated/at91_pm_data-offsets.h: arch/arm/mach-at91/pm_data-offsets.s FORCE | 22 | include/generated/at91_pm_data-offsets.h: arch/arm/mach-at91/pm_data-offsets.s FORCE |
| 26 | $(call filechk,offsets,__PM_DATA_OFFSETS_H__) | 23 | $(call filechk,offsets,__PM_DATA_OFFSETS_H__) |
| 27 | 24 | ||
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 01377c292db4..55c482c2bab1 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
| @@ -236,9 +236,6 @@ obj-y += omap_phy_internal.o | |||
| 236 | 236 | ||
| 237 | obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o | 237 | obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o |
| 238 | 238 | ||
| 239 | arch/arm/mach-omap2/pm-asm-offsets.s: arch/arm/mach-omap2/pm-asm-offsets.c | ||
| 240 | $(call if_changed_dep,cc_s_c) | ||
| 241 | |||
| 242 | include/generated/ti-pm-asm-offsets.h: arch/arm/mach-omap2/pm-asm-offsets.s FORCE | 239 | include/generated/ti-pm-asm-offsets.h: arch/arm/mach-omap2/pm-asm-offsets.s FORCE |
| 243 | $(call filechk,offsets,__TI_PM_ASM_OFFSETS_H__) | 240 | $(call filechk,offsets,__TI_PM_ASM_OFFSETS_H__) |
| 244 | 241 | ||
diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile index d0c0ccdd656a..7372d994b44e 100644 --- a/arch/ia64/kernel/Makefile +++ b/arch/ia64/kernel/Makefile | |||
| @@ -50,10 +50,5 @@ CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31 | |||
| 50 | # The gate DSO image is built using a special linker script. | 50 | # The gate DSO image is built using a special linker script. |
| 51 | include $(src)/Makefile.gate | 51 | include $(src)/Makefile.gate |
| 52 | 52 | ||
| 53 | # We use internal kbuild rules to avoid the "is up to date" message from make | ||
| 54 | arch/$(SRCARCH)/kernel/nr-irqs.s: arch/$(SRCARCH)/kernel/nr-irqs.c | ||
| 55 | $(Q)mkdir -p $(dir $@) | ||
| 56 | $(call if_changed_dep,cc_s_c) | ||
| 57 | |||
| 58 | include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s FORCE | 53 | include/generated/nr-irqs.h: arch/$(SRCARCH)/kernel/nr-irqs.s FORCE |
| 59 | $(call filechk,offsets,__ASM_NR_IRQS_H__) | 54 | $(call filechk,offsets,__ASM_NR_IRQS_H__) |
diff --git a/drivers/memory/Makefile.asm-offsets b/drivers/memory/Makefile.asm-offsets index 843ff60ccb5a..f968dfa71d8e 100644 --- a/drivers/memory/Makefile.asm-offsets +++ b/drivers/memory/Makefile.asm-offsets | |||
| @@ -1,5 +1,2 @@ | |||
| 1 | drivers/memory/emif-asm-offsets.s: drivers/memory/emif-asm-offsets.c | ||
| 2 | $(call if_changed_dep,cc_s_c) | ||
| 3 | |||
| 4 | include/generated/ti-emif-asm-offsets.h: drivers/memory/emif-asm-offsets.s FORCE | 1 | include/generated/ti-emif-asm-offsets.h: drivers/memory/emif-asm-offsets.s FORCE |
| 5 | $(call filechk,offsets,__TI_EMIF_ASM_OFFSETS_H__) | 2 | $(call filechk,offsets,__TI_EMIF_ASM_OFFSETS_H__) |
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index be0a961450bc..100a49d35c77 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile | |||
| @@ -227,9 +227,6 @@ $(LIBBPF): FORCE | |||
| 227 | # Fix up variables inherited from Kbuild that tools/ build system won't like | 227 | # Fix up variables inherited from Kbuild that tools/ build system won't like |
| 228 | $(MAKE) -C $(dir $@) RM='rm -rf' LDFLAGS= srctree=$(BPF_SAMPLES_PATH)/../../ O= | 228 | $(MAKE) -C $(dir $@) RM='rm -rf' LDFLAGS= srctree=$(BPF_SAMPLES_PATH)/../../ O= |
| 229 | 229 | ||
| 230 | $(obj)/syscall_nrs.s: $(src)/syscall_nrs.c | ||
| 231 | $(call if_changed_dep,cc_s_c) | ||
| 232 | |||
| 233 | $(obj)/syscall_nrs.h: $(obj)/syscall_nrs.s FORCE | 230 | $(obj)/syscall_nrs.h: $(obj)/syscall_nrs.s FORCE |
| 234 | $(call filechk,offsets,__SYSCALL_NRS_H__) | 231 | $(call filechk,offsets,__SYSCALL_NRS_H__) |
| 235 | 232 | ||
