1 diff -Nur linux-3.12.6.orig/scripts/Makefile.modpost linux-3.12.6/scripts/Makefile.modpost
2 --- linux-3.12.6.orig/scripts/Makefile.modpost 2013-12-20 16:51:33.000000000 +0100
3 +++ linux-3.12.6/scripts/Makefile.modpost 2014-01-25 14:55:33.000000000 +0100
5 modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers
7 # Step 1), find all modules listed in $(MODVERDIR)/
8 -MODLISTCMD := find $(MODVERDIR) -name '*.mod' | xargs -r grep -h '\.ko$$' | sort -u
9 +MODLISTCMD := find $(MODVERDIR) -name '*.mod' | xargs grep -h '\.ko$$' | sort -u
10 __modules := $(shell $(MODLISTCMD))
11 modules := $(patsubst %.o,%.ko, $(wildcard $(__modules:.ko=.o)))