summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2013-04-09 12:18:14 +0000
committerVishal Bhoj <vishal.bhoj@linaro.org>2013-04-10 04:38:59 +0000
commitad8794530868ee6dc1eee890bf90a43ff369da82 (patch)
tree91ced524e50de6ce62f50cf76712011eda43e9de
parent6c654840a7a0aa12c9d9c840de68f854cdaa72b4 (diff)
tasks: kernel: Make modules optional
This is needed for HiSilicon where support for building modules is not enabled Change-Id: I084433159b804a62845e14480c4adad78c50bc7a Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--tasks/kernel.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/kernel.mk b/tasks/kernel.mk
index f4246e7..151610b 100644
--- a/tasks/kernel.mk
+++ b/tasks/kernel.mk
@@ -74,6 +74,7 @@ ifeq ($(INCLUDE_PERF),1)
cp -f $(KERNEL_OUT)/tools/perf/perf $(REALTOP)/$(PRODUCT_OUT)/system/bin/
endif
+ifneq ($(BUILD_KERNEL_MODULES),false)
android_kernel_modules: $(INSTALLED_KERNEL_TARGET) $(ACP)
export PATH=$(KERNEL_COMPILER_PATHS):$(PATH) &&\
cd $(KERNEL_SRC) &&\
@@ -85,6 +86,9 @@ android_kernel_modules: $(INSTALLED_KERNEL_TARGET) $(ACP)
$(MAKE) O=$(KERNEL_OUT) ARCH=$(ARCH) CROSS_COMPILE=$(KERNEL_TOOLS_PREFIX) KCFLAGS="$(TARGET_EXTRA_CFLAGS) -fno-pic $(LOCAL_CFLAGS)" LD=$$LD modules_install INSTALL_MOD_PATH=$(KERNEL_OUT)/modules_for_android
mkdir -p $(TARGET_OUT)/modules
find $(KERNEL_OUT)/modules_for_android -name "*.ko" -exec $(ACP) -fpt {} $(TARGET_OUT)/modules/ \;
+else
+android_kernel_modules:
+endif
#NOTE: the gator driver's Makefile wasn't done properly and doesn't put build
# artifacts in the O=$(KERNEL_OUT)