xargs.patch 662 B

123456789101112
  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
  4. @@ -60,7 +60,7 @@
  5. modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers
  6. # Step 1), find all modules listed in $(MODVERDIR)/
  7. -MODLISTCMD := find $(MODVERDIR) -name '*.mod' | xargs -r grep -h '\.ko$$' | sort -u
  8. +MODLISTCMD := find $(MODVERDIR) -name '*.mod' | xargs grep -h '\.ko$$' | sort -u
  9. __modules := $(shell $(MODLISTCMD))
  10. modules := $(patsubst %.o,%.ko, $(wildcard $(__modules:.ko=.o)))