1

我正在尝试使用本教程为我的 Droid 构建 AOSP Gingerbread来修补源代码,但出现此错误:

Nathan-Camposs-MacBook-Pro:AOSP Nathan$ lunch generic_sholes-userdebug
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
build/core/product_config.mk:194: *** _nic.PRODUCTS.[[device/motorola/sholes/sholes.mk]]: "build/target/product/small_base.mk" does not exist.  Stop.

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

Nathan-Camposs-MacBook-Pro:AOSP Nathan$

我究竟做错了什么?我应该怎么办?

4

1 回答 1

1

当您在运行 lunch 之前运行 source build/envsetup.sh 时,构建系统会从名为 vendorsetup.sh 的文件中收集每个产品的产品规格。这是我的 envsetup.sh 中搜索这些文件的行:

# Execute the contents of any vendorsetup.sh files we can find. for f in /bin/ls vendor/*/vendorsetup.sh vendor/*/*/vendorsetup.sh device/*/*/vendorsetup.sh 2> /dev/null

您还应该看到它找到的每个产品的脚本的输出。build/envsetup.sh 找不到您的vendorsetup.sh,或者您没有创建一个来定义您的产品,在这种情况下,请查看其他产品的vendorsetup.sh 脚本以获取灵感。

于 2012-02-24T10:18:41.160 回答