公司在新的QC基线上开发新项目,发现创建之后camera无法使用,基线上是好的。由于之前建项目都是copy整个目录,没啥问题,不过这次有可能是新平台(P)的缘故,可能还需要其他配置,故提case询问QC。
-
Initial the workspace and source tree
(1)$ source build/envsetup.sh
(2)$ cd device
(3)$ mkdir -p <customer_name>/demo_product
-
Create & edit/update required makefile in demo product directory
(1)$ echo "include device/qcom/msm8960/AndroidBoard.mk" > <customer_name>/demo_product/AndroidBoard.mk
(2)$ cp qcom/msm8960/Android.mk <customer_name>/demo_product/Android.mk
(3)$ echo "PRODUCT_MAKEFILES := $(LOCAL_DIR)/demo_product.mk" > <customer_name>/demo_product/AndroidProducts.mk
(4)$ echo "include device/qcom/msm8960/BoardConfig.mk“> <customer_name>/demo_product/BoardConfig.mk
(5)$ echo "include device/qcom/msm8960/msm8960.mk PRODUCT_NAME := demo_product PRODUCT_DEVICE := demo_product“ > <customer_name>/demo_product/demo_product.mk
-
Copy mandatory files from QC target product to demo product
(1)$ cp qcom/msm8960/system.prop <customer_name>/demo_product/.
(2)$ cp qcom/msm8960/recovery.fstab <customer_name>/demo_product/.
-
Add demo_product to the PRODUCT_LIST
diff --git a/config/device-vendor.mk b/config/device-vendor.mk
index ab33d8f..458f532 100644
--- a/config/device-vendor.mk
+++ b/config/device-vendor.mk
@@ -23,6 +23,7 @@ PRODUCT_LIST += qsd8250_ffa
PRODUCT_LIST += qsd8650a_st1x
PRODUCT_LIST += msm8660_csfb
PRODUCT_LIST += msm8960
+PRODUCT_LIST += demo_product
PRODUCT_LIST += msm8974
PRODUCT_LIST += mpq8064
PRODUCT_LIST += copper
- change the path to include BoardConfig.mk if needed
diff --git a/config/device-vendor.mk b/config/device-vendor.mk
index ab33d8f..1ac1401 100644
--- a/config/device-vendor.mk
+++ b/config/device-vendor.mk
@@ -41,7 +41,7 @@ FOTA_PRODUCT_LIST := msm7627a
ifneq (, $(filter $(PRODUCT_LIST), $(TARGET_PRODUCT)))
- include device/qcom/$(TARGET_PRODUCT)/BoardConfig.mk
+ include
device/<customer_name>/$(TARGET_PRODUCT)/BoardConfig.mk
ifeq ($(call is-board-platform,msm8660),true)
PREBUILT_BOARD_PLATFORM_DIR := msm8660_surf
详细QC文档,有需要的可以下载:
https://download.csdn.net/download/qq_28534581/11207440