我从以下文档复制了构建命令:
https://source.android.com/docs/setup/build/building-kernels
这是构建命令:
tools/bazel build //common:kernel_aarch64_dist -- --dist_dir=out/dist
错误如下:
ERROR: Skipping '-dist_dir=out/dist': couldn't determine target from filename '-dist_dir=out/dist'
ERROR: couldn't determine target from filename '-dist_dir=out/dist'
INFO: Elapsed time: 0.158s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
我尝试先创建“
out/dist
”,也尝试用“/tmp/dist
”替换它,但错误是相同的“couldn't determine target from filename
”。
构建Android内核时如何指定
--dist_dir
?
例如,您需要
run
来创建发行版
tools/bazel run //common:kernel_aarch64_dist -- --dist_dir=out/dist