When the user selects CONFIG_MODVERSIONS but doesn't build anything
modular, the post-processing step does nothing (right, as there is
nothing to be done), but it also gave an error, which it shouldn't.
#
-__modules := $(shell cd $(MODVERDIR); cat *.mod)
+__modules := $(shell cat /dev/null $(wildcard $(MODVERDIR)/*.mod))
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
ifneq ($(filter-out $(modules),$(__modules)),)
- $(warning *** Uh-oh, you have stale module entries. You messed with SUBDIRS, don't complain if something goes wrong.)
+ $(warning *** Uh-oh, you have stale module entries. You messed with SUBDIRS,)
+ $(warning do not complain if something goes wrong.)
endif
__modversions: $(modules)