[英]Can not locate config makefile for product “cm_oneplus2”
我一直在嘗試為OnePlus Two構建AOSP ROM。
我在我的ubuntu's home
做了一個working-dir
文件夾。 安裝了所有必需的工具和腳本,如java,python,make,git和一些lib文件。
我已經下載了壓縮源(包括No .repo
文件夾),所以我只有aosp5.1.0
文件夾。 我在這里下載了它們。 ( 重壓縮Android源碼 )。 使用終端將它們提取到working-dir
。
我從這個存儲庫中克隆了device tree
https://github.com/krishna422/android_device_oneplus_oneplus2進入working-dir / device / oneplus / oneplus2
kernel source
https://github.com/krishna422/android_kernel_oneplus_msm8994進入working-dir / kernel / oneplus / oneplus2
vendor tree
https://github.com/krishna422/proprietary_vendor_oneplus進入working-dir / vendor / oneplus / oneplus2
所以working-dir
中的文件是,
aosp5.1.0,設備,內核,供應商
aosp5.1.0
中的文件是
我復制了
working-dir / device / oneplus / folder進入aosp5.1.0 / device
然后,我打開cmd,導航到aosp5.1.0
文件夾類型的source build/envsetup.sh
我有
krishna@krishna:~/working-dir/aosp5.1.0$ source build/envsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including evice/oneplus/android_device_oneplus_oneplus2/vendorsetup.sh
including sdk/bash_completion/adb.bash
然后我打了lunch
,
krishna@krishna:~/working-dir/aosp5.1.0$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. m_e_arm-userdebug
8. mini_emulator_arm64-userdebug
9. mini_emulator_x86_64-userdebug
10. mini_emulator_x86-userdebug
11. mini_emulator_mips-userdebug
12. cm_oneplus2-user
13. cm_oneplus2-userdebug
14. cm_oneplus2-eng
Which would you like?
當我選擇12,13,14
,我收到以下錯誤,其他人運行良好。
build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_oneplus2". Stop.
** Don't have a product spec for: 'cm_oneplus2'
** Do you have the right repo manifest?
krishna@krishna:~/working-dir/aosp5.1.0$
請幫忙
您需要在設備樹中有一個名為AndroidProducts.mk
的文件。 在其中加入如下內容。
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/oneplus2.mk
它應該與vendorsetup.sh
中的內容vendorsetup.sh
, oneplus2.mk
應該存在。
請參閱LineageOS倉庫中的示例
https://github.com/LineageOS/android_device_oneplus_oneplus2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.