diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-24 17:22:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-24 17:22:27 -0400 |
commit | f7bbf0754b52b7f99deb0c8834f771e2b50157d6 (patch) | |
tree | 6f43e299feb1f40548010ce3e2bf16ae9793214d /Makefile | |
parent | b71a5e3fe81c01dbd0b80eab7ae47d4cbd57d72a (diff) | |
parent | 64236e315955cc59e2b612e6a0e59579395530ae (diff) |
Merge tag 'kbuild-fixes-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada:
- fix linker script regression caused by dead code elimination support
- fix typos and outdated comments
- specify kselftest-clean as a PHONY target
- fix "make dtbs_install" when $(srctree) includes shell special
characters like '~'
- Move -fshort-wchar to the global option list because defining it
partially emits warnings
* tag 'kbuild-fixes-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: update comments of Makefile.asm-generic
kbuild: Do not use hyphen in exported variable name
Makefile: add kselftest-clean to PHONY target list
Kbuild: use -fshort-wchar globally
fixdep: trivial: typo fix and correction
kbuild: trivial cleanups on the comments
kbuild: linker script do not match C names unless LD_DEAD_CODE_DATA_ELIMINATION is configured
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -396,7 +396,7 @@ LINUXINCLUDE := \ | |||
396 | KBUILD_CPPFLAGS := -D__KERNEL__ | 396 | KBUILD_CPPFLAGS := -D__KERNEL__ |
397 | 397 | ||
398 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 398 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ |
399 | -fno-strict-aliasing -fno-common \ | 399 | -fno-strict-aliasing -fno-common -fshort-wchar \ |
400 | -Werror-implicit-function-declaration \ | 400 | -Werror-implicit-function-declaration \ |
401 | -Wno-format-security \ | 401 | -Wno-format-security \ |
402 | -std=gnu89 $(call cc-option,-fno-PIE) | 402 | -std=gnu89 $(call cc-option,-fno-PIE) |
@@ -442,7 +442,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \ | |||
442 | # =========================================================================== | 442 | # =========================================================================== |
443 | # Rules shared between *config targets and build targets | 443 | # Rules shared between *config targets and build targets |
444 | 444 | ||
445 | # Basic helpers built in scripts/ | 445 | # Basic helpers built in scripts/basic/ |
446 | PHONY += scripts_basic | 446 | PHONY += scripts_basic |
447 | scripts_basic: | 447 | scripts_basic: |
448 | $(Q)$(MAKE) $(build)=scripts/basic | 448 | $(Q)$(MAKE) $(build)=scripts/basic |
@@ -505,7 +505,7 @@ ifeq ($(KBUILD_EXTMOD),) | |||
505 | endif | 505 | endif |
506 | endif | 506 | endif |
507 | endif | 507 | endif |
508 | # install and module_install need also be processed one by one | 508 | # install and modules_install need also be processed one by one |
509 | ifneq ($(filter install,$(MAKECMDGOALS)),) | 509 | ifneq ($(filter install,$(MAKECMDGOALS)),) |
510 | ifneq ($(filter modules_install,$(MAKECMDGOALS)),) | 510 | ifneq ($(filter modules_install,$(MAKECMDGOALS)),) |
511 | mixed-targets := 1 | 511 | mixed-targets := 1 |
@@ -964,7 +964,7 @@ export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y2) $(drivers-y) $(net-y) $(virt- | |||
964 | export KBUILD_VMLINUX_LIBS := $(libs-y1) | 964 | export KBUILD_VMLINUX_LIBS := $(libs-y1) |
965 | export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds | 965 | export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds |
966 | export LDFLAGS_vmlinux | 966 | export LDFLAGS_vmlinux |
967 | # used by scripts/pacmage/Makefile | 967 | # used by scripts/package/Makefile |
968 | export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools) | 968 | export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools) |
969 | 969 | ||
970 | vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) $(KBUILD_VMLINUX_LIBS) | 970 | vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) $(KBUILD_VMLINUX_LIBS) |
@@ -992,8 +992,8 @@ include/generated/autoksyms.h: FORCE | |||
992 | ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) | 992 | ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) |
993 | 993 | ||
994 | # Final link of vmlinux with optional arch pass after final link | 994 | # Final link of vmlinux with optional arch pass after final link |
995 | cmd_link-vmlinux = \ | 995 | cmd_link-vmlinux = \ |
996 | $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \ | 996 | $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \ |
997 | $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) | 997 | $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) |
998 | 998 | ||
999 | vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE | 999 | vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE |
@@ -1184,6 +1184,7 @@ PHONY += kselftest | |||
1184 | kselftest: | 1184 | kselftest: |
1185 | $(Q)$(MAKE) -C tools/testing/selftests run_tests | 1185 | $(Q)$(MAKE) -C tools/testing/selftests run_tests |
1186 | 1186 | ||
1187 | PHONY += kselftest-clean | ||
1187 | kselftest-clean: | 1188 | kselftest-clean: |
1188 | $(Q)$(MAKE) -C tools/testing/selftests clean | 1189 | $(Q)$(MAKE) -C tools/testing/selftests clean |
1189 | 1190 | ||