1
0
Fork 0

greybus: build: android: Fix script which locates .ko files and moves them into ramdisk

- Fixed incorrect use of $$GREYBUS_SRC_PATH variable
- Added quotes around find pattern to stop shell expansion of "*"

Signed-off-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
hifive-unleashed-5.1
Michael Scott 2015-01-27 12:14:09 -08:00 committed by Greg Kroah-Hartman
parent 15d651b0db
commit b3b983c2ee
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ build-greybus: android_kernel
cd $(GREYBUS_SRC_PATH) &&\
$(MAKE) -j$(MAKE_JOBS) CROSS_COMPILE=$(KERNEL_TOOLS_PREFIX) $(ARGS)
mkdir -p $(GREYBUS_MODULE_OUT_PATH)
ko=`find $$GREYBUS_SRC_PATH -type f -name *.ko`;\
ko=`find $(GREYBUS_SRC_PATH) -type f -name "*.ko"`;\
for i in $$ko; do $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $$i;\
mv $$i $(GREYBUS_MODULE_OUT_PATH)/; done;