about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/grsecurity-modinst.patch
blob: 275d96fbb29bce6c22fa2bf32e15723e55d649de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ruN a/scripts/Makefile.modinst b/scripts/Makefile.modinst
--- a/scripts/Makefile.modinst	2016-11-15 07:49:06.000000000 +0100
+++ b/scripts/Makefile.modinst	2016-11-18 13:45:07.977270500 +0100
@@ -9,7 +9,7 @@
 
 #
 
-__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
+__modules := $(shell find $(MODVERDIR) -name '*.mod' -exec grep -h '\.ko$$' '{}' \; | sort)
 modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
 
 PHONY += $(modules)