OSDN Git Service

greybus: build: android: avoid building for targets that don't have kernel binary
authorVishal Bhoj <vishal.bhoj@linaro.org>
Thu, 3 Sep 2015 05:35:19 +0000 (22:35 -0700)
committerJohan Hovold <johan@hovoldconsulting.com>
Thu, 3 Sep 2015 07:54:05 +0000 (09:54 +0200)
For sdk related targets, the greybus build will error out due to missing
kernel dependency.  Let's avoid those targets by checking TARGET_NO_KERNEL.

Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Signed-off-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/Android.mk

index 112f4de..3357499 100644 (file)
@@ -1,6 +1,8 @@
 .PHONY: build-greybus
 
+ifneq ($(TARGET_NO_KERNEL), true)
 $(PRODUCT_OUT)/ramdisk.img: build-greybus
+endif
 
 GREYBUS_MODULE_OUT_PATH := $(PRODUCT_OUT)/root/lib/modules