Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a29e62c5 authored by Bruce Levy's avatar Bruce Levy
Browse files

kbuild: modpost: Replace call to xargs



Using xargs is failing on certain build environments.
Replace it with the -exec option in find.

Change-Id: I70fbf648188405e6410ab4dcdd7a5e68ebad64e1
Signed-off-by: default avatarBruce Levy <blevy@codeaurora.org>
parent 041ae774
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ kernelsymfile := $(objtree)/Module.symvers
modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers

# Step 1), find all modules listed in $(MODVERDIR)/
MODLISTCMD := find $(MODVERDIR) -name '*.mod' | xargs -r grep -h '\.ko$$' | sort -u
MODLISTCMD := find $(MODVERDIR) -name '*.mod'  -exec grep -h '\.ko$$' {} \; | sort -u
__modules := $(shell $(MODLISTCMD))
modules   := $(patsubst %.o,%.ko, $(wildcard $(__modules:.ko=.o)))