基于linux的Android内核构建

基于linux的Android内核构建,android,linux,linux-kernel,linux-device-driver,embedded-linux,Android,Linux,Linux Kernel,Linux Device Driver,Embedded Linux,要创建可引导的android映像, 我用/build.sh-psun4i\u crane-k3.0构建了linux内核。 然后,对于构建Android源代码,设置环境sourcebuild/envsetup.sh 选择一个平台“午餐”命令 root@arge16-HP-600B:/home/arge1-6/workspace/extroid/android4.0# lunch You're building on Linux Lunch menu... pick a combo:

要创建可引导的android映像, 我用
/build.sh-psun4i\u crane-k3.0
构建了linux内核。 然后,对于构建Android源代码,设置环境
sourcebuild/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\u evb\u mmc
这个文件是一个makefile,并将其更改为
crane\u 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 \

有人有建议吗?

午餐
希望您提供一个板(
crane\u evb\u mmc
)以及一个构建变量{user,userdebug,eng}。仅提供电路板是不够的。尝试:

$ lunch crane_evb_mmc-eng

你的问题的答案在这本书中:谢谢@m-ric我会得到这本书的谢谢@m-ric,没关系