diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | arch/x86/Makefile | 3 | ||||
-rw-r--r-- | arch/x86/boot/compressed/Makefile | 4 | ||||
-rw-r--r-- | arch/x86/realmode/rm/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/tools/.gitignore | 1 | ||||
-rw-r--r-- | arch/x86/tools/Makefile | 4 | ||||
-rw-r--r-- | arch/x86/tools/relocs.c (renamed from scripts/x86-relocs.c) | 0 | ||||
-rw-r--r-- | scripts/Makefile | 1 |
8 files changed, 17 insertions, 7 deletions
@@ -442,7 +442,7 @@ asm-generic: | |||
442 | 442 | ||
443 | no-dot-config-targets := clean mrproper distclean \ | 443 | no-dot-config-targets := clean mrproper distclean \ |
444 | cscope gtags TAGS tags help %docs check% coccicheck \ | 444 | cscope gtags TAGS tags help %docs check% coccicheck \ |
445 | include/linux/version.h headers_% archheaders \ | 445 | include/linux/version.h headers_% archheaders archscripts \ |
446 | kernelversion %src-pkg | 446 | kernelversion %src-pkg |
447 | 447 | ||
448 | config-targets := 0 | 448 | config-targets := 0 |
@@ -979,7 +979,7 @@ prepare1: prepare2 include/linux/version.h include/generated/utsrelease.h \ | |||
979 | include/config/auto.conf | 979 | include/config/auto.conf |
980 | $(cmd_crmodverdir) | 980 | $(cmd_crmodverdir) |
981 | 981 | ||
982 | archprepare: archheaders prepare1 scripts_basic | 982 | archprepare: archheaders archscripts prepare1 scripts_basic |
983 | 983 | ||
984 | prepare0: archprepare FORCE | 984 | prepare0: archprepare FORCE |
985 | $(Q)$(MAKE) $(build)=. | 985 | $(Q)$(MAKE) $(build)=. |
@@ -1049,8 +1049,11 @@ hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) | |||
1049 | PHONY += archheaders | 1049 | PHONY += archheaders |
1050 | archheaders: | 1050 | archheaders: |
1051 | 1051 | ||
1052 | PHONY += archscripts | ||
1053 | archscripts: | ||
1054 | |||
1052 | PHONY += __headers | 1055 | PHONY += __headers |
1053 | __headers: include/linux/version.h scripts_basic asm-generic archheaders FORCE | 1056 | __headers: include/linux/version.h scripts_basic asm-generic archheaders archscripts FORCE |
1054 | $(Q)$(MAKE) $(build)=scripts build_unifdef | 1057 | $(Q)$(MAKE) $(build)=scripts build_unifdef |
1055 | 1058 | ||
1056 | PHONY += headers_install_all | 1059 | PHONY += headers_install_all |
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 41a7237606a3..94e91e401da9 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -134,6 +134,9 @@ KBUILD_CFLAGS += $(call cc-option,-mno-avx,) | |||
134 | KBUILD_CFLAGS += $(mflags-y) | 134 | KBUILD_CFLAGS += $(mflags-y) |
135 | KBUILD_AFLAGS += $(mflags-y) | 135 | KBUILD_AFLAGS += $(mflags-y) |
136 | 136 | ||
137 | archscripts: | ||
138 | $(Q)$(MAKE) $(build)=arch/x86/tools relocs | ||
139 | |||
137 | ### | 140 | ### |
138 | # Syscall table generation | 141 | # Syscall table generation |
139 | 142 | ||
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 0435e8a2d20e..e398bb5d63bb 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile | |||
@@ -42,8 +42,8 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
42 | 42 | ||
43 | targets += vmlinux.bin.all vmlinux.relocs | 43 | targets += vmlinux.bin.all vmlinux.relocs |
44 | 44 | ||
45 | CMD_RELOCS = scripts/x86-relocs | 45 | CMD_RELOCS = arch/x86/tools/relocs |
46 | quiet_cmd_relocs = RELOCS $@ | 46 | quiet_cmd_relocs = RELOCS $@ |
47 | cmd_relocs = $(CMD_RELOCS) $< > $@;$(CMD_RELOCS) --abs-relocs $< | 47 | cmd_relocs = $(CMD_RELOCS) $< > $@;$(CMD_RELOCS) --abs-relocs $< |
48 | $(obj)/vmlinux.relocs: vmlinux FORCE | 48 | $(obj)/vmlinux.relocs: vmlinux FORCE |
49 | $(call if_changed,relocs) | 49 | $(call if_changed,relocs) |
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile index fc8854b09dfa..de40bc44b92f 100644 --- a/arch/x86/realmode/rm/Makefile +++ b/arch/x86/realmode/rm/Makefile | |||
@@ -52,7 +52,7 @@ $(obj)/realmode.bin: $(obj)/realmode.elf | |||
52 | $(call if_changed,objcopy) | 52 | $(call if_changed,objcopy) |
53 | 53 | ||
54 | quiet_cmd_relocs = RELOCS $@ | 54 | quiet_cmd_relocs = RELOCS $@ |
55 | cmd_relocs = scripts/x86-relocs --realmode $< > $@ | 55 | cmd_relocs = arch/x86/tools/relocs --realmode $< > $@ |
56 | $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE | 56 | $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE |
57 | $(call if_changed,relocs) | 57 | $(call if_changed,relocs) |
58 | 58 | ||
diff --git a/arch/x86/tools/.gitignore b/arch/x86/tools/.gitignore new file mode 100644 index 000000000000..be0ed065249b --- /dev/null +++ b/arch/x86/tools/.gitignore | |||
@@ -0,0 +1 @@ | |||
relocs | |||
diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile index d511aa97533a..733057b435b0 100644 --- a/arch/x86/tools/Makefile +++ b/arch/x86/tools/Makefile | |||
@@ -36,3 +36,7 @@ HOSTCFLAGS_insn_sanity.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x | |||
36 | $(obj)/test_get_len.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c | 36 | $(obj)/test_get_len.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c |
37 | 37 | ||
38 | $(obj)/insn_sanity.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c | 38 | $(obj)/insn_sanity.o: $(srctree)/arch/x86/lib/insn.c $(srctree)/arch/x86/lib/inat.c $(srctree)/arch/x86/include/asm/inat_types.h $(srctree)/arch/x86/include/asm/inat.h $(srctree)/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c |
39 | |||
40 | HOST_EXTRACFLAGS += -I$(srctree)/tools/include | ||
41 | hostprogs-y += relocs | ||
42 | relocs: $(obj)/relocs | ||
diff --git a/scripts/x86-relocs.c b/arch/x86/tools/relocs.c index 74e16bb15dc4..74e16bb15dc4 100644 --- a/scripts/x86-relocs.c +++ b/arch/x86/tools/relocs.c | |||
diff --git a/scripts/Makefile b/scripts/Makefile index a241359d2c82..36266665dbcb 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
@@ -15,7 +15,6 @@ hostprogs-$(CONFIG_LOGO) += pnmtologo | |||
15 | hostprogs-$(CONFIG_VT) += conmakehash | 15 | hostprogs-$(CONFIG_VT) += conmakehash |
16 | hostprogs-$(CONFIG_IKCONFIG) += bin2c | 16 | hostprogs-$(CONFIG_IKCONFIG) += bin2c |
17 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount | 17 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount |
18 | hostprogs-$(CONFIG_X86) += x86-relocs | ||
19 | 18 | ||
20 | always := $(hostprogs-y) $(hostprogs-m) | 19 | always := $(hostprogs-y) $(hostprogs-m) |
21 | 20 | ||