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: Bruce Levy <blevy@codeaurora.org>
This commit is contained in:
Bruce Levy 2019-12-07 13:06:06 -08:00
parent 041ae774be
commit a29e62c577

View file

@ -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)))