mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00: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)
|