瀏覽代碼

camera-kernel: Add kbuild options from Android.mk to Makefile

Change-Id: If982033e4f8196ef757341a9b3628a42de471c98
Signed-off-by: chandu078 <[email protected]>
Arian 2 年之前
父節點
當前提交
fb532581b7
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      qcom/opensource/camera-kernel/Makefile

+ 3 - 1
qcom/opensource/camera-kernel/Makefile

@@ -1,8 +1,10 @@
 # Makefile for use with Android's kernel/build system
 # Makefile for use with Android's kernel/build system
 
 
-KBUILD_OPTIONS += CAMERA_KERNEL_ROOT=$(shell pwd)
+KBUILD_OPTIONS += CAMERA_KERNEL_ROOT=$(KERNEL_SRC)/$(M)
 KBUILD_OPTIONS += KERNEL_ROOT=$(ROOT_DIR)/$(KERNEL_DIR)
 KBUILD_OPTIONS += KERNEL_ROOT=$(ROOT_DIR)/$(KERNEL_DIR)
 KBUILD_OPTIONS += MODNAME=camera
 KBUILD_OPTIONS += MODNAME=camera
+KBUILD_OPTIONS += BOARD_PLATFORM=pineapple
+KBUILD_OPTIONS += KBUILD_EXTRA_SYMBOLS=$(OUT_DIR)/../sm8650-modules/qcom/opensource/mmrm-driver/Module.symvers
 
 
 all: modules
 all: modules