➜ android source build/envsetup.sh && lunch ceres_c3-eng
including device/softwinner/common/vendorsetup.sh
dirname: missing operand
Try 'dirname --help' for more information.
vendor_env_setup:9: no matches found: //../*/device/config/chips
vendor_env_setup:13: no matches found: ${longan_path_list[@]}
Error fetch build system for kernel!
PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=10 TARGET_PRODUCT=ceres_c3 TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-a TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv8-a TARGET_2ND_CPU_VARIANT=generic HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.13.0-52-generic-x86_64-Ubuntu-20.04.3-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=QP1A.191105.004 OUT_DIR=out
重装 Ubuntu 20.04 后,解压一样的安卓 10 源码,执行上面的命令时报错了。
虽然有错误,但是可以成功编译, 但生成的镜像没有 adb
1
zinwalin OP 找到原因了,是因为 zsh 的问题,换成 bash 后,就可以正常执行。
|