diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
| commit | a02001086bbfb4da35d1228bebc2f1b442db455f (patch) | |
| tree | 62ab47936cef06fd08657ca5b6cd1df98c19be57 /scripts | |
| parent | eff264efeeb0898408e8c9df72d8a32621035bed (diff) | |
| parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) | |
Merge Linus' tree to be be to apply submitted patches to newer code than
current trivial.git base
Diffstat (limited to 'scripts')
58 files changed, 5237 insertions, 1212 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore index fb070fa1038f..5ecfe93f2028 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | conmakehash | 4 | conmakehash |
| 5 | kallsyms | 5 | kallsyms |
| 6 | pnmtologo | 6 | pnmtologo |
| 7 | bin2c | ||
| 8 | unifdef | 7 | unifdef |
| 9 | ihex2fw | 8 | ihex2fw |
| 10 | recordmcount | 9 | recordmcount |
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 122f95c95869..65e7b08bb2cc 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -171,13 +171,13 @@ ld-ifversion = $(shell [ $(call ld-version) $(1) $(2) ] && echo $(3)) | |||
| 171 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= | 171 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= |
| 172 | # Usage: | 172 | # Usage: |
| 173 | # $(Q)$(MAKE) $(build)=dir | 173 | # $(Q)$(MAKE) $(build)=dir |
| 174 | build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj | 174 | build := -f $(srctree)/scripts/Makefile.build obj |
| 175 | 175 | ||
| 176 | ### | 176 | ### |
| 177 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.modbuiltin obj= | 177 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.modbuiltin obj= |
| 178 | # Usage: | 178 | # Usage: |
| 179 | # $(Q)$(MAKE) $(modbuiltin)=dir | 179 | # $(Q)$(MAKE) $(modbuiltin)=dir |
| 180 | modbuiltin := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.modbuiltin obj | 180 | modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj |
| 181 | 181 | ||
| 182 | # Prefix -I with $(srctree) if it is not an absolute path. | 182 | # Prefix -I with $(srctree) if it is not an absolute path. |
| 183 | # skip if -I has no parameter | 183 | # skip if -I has no parameter |
| @@ -215,11 +215,13 @@ else | |||
| 215 | arg-check = $(if $(strip $(cmd_$@)),,1) | 215 | arg-check = $(if $(strip $(cmd_$@)),,1) |
| 216 | endif | 216 | endif |
| 217 | 217 | ||
| 218 | # >'< substitution is for echo to work, | 218 | # Replace >$< with >$$< to preserve $ when reloading the .cmd file |
| 219 | # >$< substitution to preserve $ when reloading .cmd file | 219 | # (needed for make) |
| 220 | # note: when using inline perl scripts [perl -e '...$$t=1;...'] | 220 | # Replace >#< with >\#< to avoid starting a comment in the .cmd file |
| 221 | # in $(cmd_xxx) double $$ your perl vars | 221 | # (needed for make) |
| 222 | make-cmd = $(subst \\,\\\\,$(subst \#,\\\#,$(subst $$,$$$$,$(call escsq,$(cmd_$(1)))))) | 222 | # Replace >'< with >'\''< to be able to enclose the whole string in '...' |
| 223 | # (needed for the shell) | ||
| 224 | make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) | ||
| 223 | 225 | ||
| 224 | # Find any prerequisites that is newer than target or that does not exist. | 226 | # Find any prerequisites that is newer than target or that does not exist. |
| 225 | # PHONY targets skipped in both cases. | 227 | # PHONY targets skipped in both cases. |
| @@ -230,7 +232,7 @@ any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) | |||
| 230 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ | 232 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ |
| 231 | @set -e; \ | 233 | @set -e; \ |
| 232 | $(echo-cmd) $(cmd_$(1)); \ | 234 | $(echo-cmd) $(cmd_$(1)); \ |
| 233 | echo 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd) | 235 | printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd) |
| 234 | 236 | ||
| 235 | # Execute the command and also postprocess generated .d dependencies file. | 237 | # Execute the command and also postprocess generated .d dependencies file. |
| 236 | if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ | 238 | if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ |
diff --git a/scripts/Makefile b/scripts/Makefile index 890df5c6adfb..72902b5f2721 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -13,7 +13,6 @@ HOST_EXTRACFLAGS += -I$(srctree)/tools/include | |||
| 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms | 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms |
| 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo | 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo |
| 15 | hostprogs-$(CONFIG_VT) += conmakehash | 15 | hostprogs-$(CONFIG_VT) += conmakehash |
| 16 | hostprogs-$(CONFIG_IKCONFIG) += bin2c | ||
| 17 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount | 16 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount |
| 18 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable | 17 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable |
| 19 | hostprogs-$(CONFIG_ASN1) += asn1_compiler | 18 | hostprogs-$(CONFIG_ASN1) += asn1_compiler |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index bf3e6778cd71..649ce6844033 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -79,11 +79,11 @@ endif | |||
| 79 | 79 | ||
| 80 | # =========================================================================== | 80 | # =========================================================================== |
| 81 | 81 | ||
| 82 | ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),) | 82 | ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),) |
| 83 | lib-target := $(obj)/lib.a | 83 | lib-target := $(obj)/lib.a |
| 84 | endif | 84 | endif |
| 85 | 85 | ||
| 86 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),) | 86 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),) |
| 87 | builtin-target := $(obj)/built-in.o | 87 | builtin-target := $(obj)/built-in.o |
| 88 | endif | 88 | endif |
| 89 | 89 | ||
| @@ -382,16 +382,14 @@ cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) $(cmd_secanalys | |||
