History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Merge conflict of mlx5 resolved using instructions in merge commit 9566e650bf7fdf58384bb06df634f7531ca3a97e.

David S. Miller committed 7 years ago

Commit 446bf642 parents 20e79a0 0682150549 files · +4711 −2903Browse files

Showing the changes to scripts (3 of 549 files). Show all

Unified · Split

3 files
  1. scripts/Makefile.build +10 −1
  2. scripts/Makefile.modpost +2 −4
  3. scripts/coccinelle/api/atomic_as_refcounter.cocci +1 −0
scripts/Makefile.build+10−1
@@ -52,6 +52,13 @@ ifndef obj · 51 unmodified lines
52$(warning kbuild: Makefile.build is included improperly)52$(warning kbuild: Makefile.build is included improperly)
53endif53endif
54 54
55ifeq ($(MAKECMDGOALS)$(need-modorder),)
56ifneq ($(obj-m),)
57$(warning $(patsubst %.o,'%.ko',$(obj-m)) will not be built even though obj-m is specified.)
58$(warning You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead.)
59endif
60endif
61
55# ===========================================================================62# ===========================================================================
56 63
57ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)64ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)
@@ -487,7 +494,9 @@ targets += $(call intermediate_targets, .asn1.o, .asn1.c .asn1.h) \ · 429 unmodified lines
487 494
488PHONY += $(subdir-ym)495PHONY += $(subdir-ym)
489$(subdir-ym):496$(subdir-ym):
490 $(Q)$(MAKE) $(build)=$@ need-builtin=$(if $(findstring $@,$(subdir-obj-y)),1)497 $(Q)$(MAKE) $(build)=$@ \
498 need-builtin=$(if $(filter $@/built-in.a, $(subdir-obj-y)),1) \
499 need-modorder=$(if $(need-modorder),$(if $(filter $@/modules.order, $(modorder)),1))
491 500
492# Add FORCE to the prequisites of a target to force it to be always rebuilt.501# Add FORCE to the prequisites of a target to force it to be always rebuilt.
493# ---------------------------------------------------------------------------502# ---------------------------------------------------------------------------
scripts/Makefile.modpost+2−4
@@ -85,10 +85,8 @@ endif · 84 unmodified lines
85 85
86include scripts/Makefile.lib86include scripts/Makefile.lib
87 87
88modorder := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)modules.order
89
90# find all modules listed in modules.order88# find all modules listed in modules.order
91modules := $(sort $(shell cat $(modorder)))89modules := $(sort $(shell cat $(MODORDER)))
92 90
93# Stop after building .o files if NOFINAL is set. Makes compile tests quicker91# Stop after building .o files if NOFINAL is set. Makes compile tests quicker
94__modpost: $(if $(KBUILD_MODPOST_NOFINAL), $(modules:.ko:.o),$(modules))92__modpost: $(if $(KBUILD_MODPOST_NOFINAL), $(modules:.ko:.o),$(modules))
@@ -98,7 +96,7 @@ MODPOST += $(subst -i,-n,$(filter -i,$(MAKEFLAGS))) -s -T - $(wildcard vmlinux) · 3 unmodified lines
98 96
99# We can go over command line length here, so be careful.97# We can go over command line length here, so be careful.
100quiet_cmd_modpost = MODPOST $(words $(modules)) modules98quiet_cmd_modpost = MODPOST $(words $(modules)) modules
101 cmd_modpost = sed 's/ko$$/o/' $(modorder) | $(MODPOST)99 cmd_modpost = sed 's/ko$$/o/' $(MODORDER) | $(MODPOST)
102 100
103PHONY += modules-modpost101PHONY += modules-modpost
104modules-modpost:102modules-modpost:
scripts/coccinelle/api/atomic_as_refcounter.cocci+1−0
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1// Check if refcount_t type and API should be used2// Check if refcount_t type and API should be used
2// instead of atomic_t type when dealing with refcounters3// instead of atomic_t type when dealing with refcounters
3//4//