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
5252 $(warning kbuild: Makefile.build is included improperly)
5353 endif
5454
55+ifeq ($(MAKECMDGOALS)$(need-modorder),)
56+ifneq ($(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.)
59+endif
60+endif
61+
5562 # ===========================================================================
5663
5764 ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)
@@ -487,7 +494,9 @@ targets += $(call intermediate_targets, .asn1.o, .asn1.c .asn1.h) \ · 429 unmodified lines
487494
488495 PHONY += $(subdir-ym)
489496 $(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))
491500
492501 # Add FORCE to the prequisites of a target to force it to be always rebuilt.
493502 # ---------------------------------------------------------------------------
scripts/Makefile.modpost+2−4
@@ -85,10 +85,8 @@ endif · 84 unmodified lines
8585
8686 include scripts/Makefile.lib
8787
88−modorder := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)modules.order
89−
9088 # find all modules listed in modules.order
91−modules := $(sort $(shell cat $(modorder)))
89+modules := $(sort $(shell cat $(MODORDER)))
9290
9391 # Stop after building .o files if NOFINAL is set. Makes compile tests quicker
9492 __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
9896
9997 # We can go over command line length here, so be careful.
10098 quiet_cmd_modpost = MODPOST $(words $(modules)) modules
101− cmd_modpost = sed 's/ko$$/o/' $(modorder) | $(MODPOST)
99+ cmd_modpost = sed 's/ko$$/o/' $(MODORDER) | $(MODPOST)
102100
103101 PHONY += modules-modpost
104102 modules-modpost:
scripts/coccinelle/api/atomic_as_refcounter.cocci+1−0
@@ -1,3 +1,4 @@
1+// SPDX-License-Identifier: GPL-2.0-only
12 // Check if refcount_t type and API should be used
23 // instead of atomic_t type when dealing with refcounters
34 //