mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
15 lines
492 B
Diff
15 lines
492 B
Diff
|
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
|
||
|
index 07650ee..934a7a8 100644
|
||
|
--- a/scripts/Makefile.modinst
|
||
|
+++ b/scripts/Makefile.modinst
|
||
|
@@ -9,7 +9,8 @@ include scripts/Kbuild.include
|
||
|
|
||
|
#
|
||
|
|
||
|
-__modules := $(sort $(shell grep -h '\.ko$$' /dev/null $(wildcard $(MODVERDIR)/*.mod)))
|
||
|
+__modules := $(sort $(foreach f,$(wildcard $(MODVERDIR)/*.mod),$(shell \
|
||
|
+ grep -h '\.ko$$' '$f')))
|
||
|
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
|
||
|
|
||
|
PHONY += $(modules)
|