gpt4 book ai didi

基于 Linux 构建的 Android 内核

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:55:30 25 4
gpt4 key购买 nike

为了创建一个可引导的安卓镜像,我用 ./build.sh -p sun4i_crane -k 3.0 清楚地构建了 linux 内核。然后为 Building Android Sources 设置环境 source build/envsetup.sh
用于选择平台“午餐”命令

root@arge16-HP-600B:/home/arge1-6/workspace/extroid/android4.0# lunch

You're building on Linux

Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_maguro-userdebug
5. full_tuna-userdebug
6. crane_3g-eng
7. crane_evb_mmc
8. crane_m1003h6-eng
9. crane_MID9742_sc3052-userdebug
10. full_panda-eng

选择 mmc,编号 7 然后我在下面收到此警告

Which would you like? [full-eng] 7

** Invalid variant: 'crane_evb_mmc'
** Must be one of user userdebug eng

我发现这个 crane_evb_mmc 这个文件是一个 makefile 并且改变了它 crane_evb然后这次我收到了这个警告

Which would you like? [full-eng] 7
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/softwinner/crane-evb_mmc/crane_evb_mmc.mk]]: "device/softwinner/crane-evb_mmc/crane_evb_mmc.mk" does not exist. Stop.

** Don't have a product spec for: 'crane_evb_mmc'
** Do you have the right repo manifest?

** Invalid variant: 'crane_evb_mmc'
** Must be one of user userdebug eng

我搜索了这个,有一个解决方案,我按如下方式编辑我的 AndroidProducts.mk,但那里没有任何变化

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/crane_evb_mmc.mk \

有人有什么建议吗?

最佳答案

lunch 期望您提供板 (crane_evb_mmc) 以及构建变体 {user,userdebug,eng}。仅提供电路板是不够的。尝试:

$ lunch crane_evb_mmc-eng

关于基于 Linux 构建的 Android 内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26486488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com