Commit b3b983c2 authored by Michael Scott's avatar Michael Scott Committed by Greg Kroah-Hartman
Browse files

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: default avatarMichael Scott <michael.scott@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 15d651b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;