Collect generated rbc files under one folder
Mk2rbc takes a .mk file and produces a .rbc file under the same path, but with a different stem. For example: build/test/foo.mk becomes out/build/test/foo.rbc This makes it difficult to see everything that mk2rbc has generated in the out folder. Move the generated files to out/rbc instead, so they have a common stem that is separate from the rest of the build outputs. Fixes: 202249430 Test: m RBC_PRODUCT_CONFIG=1 nothing Change-Id: If3edba3feef9c2d3631244d533b997ef0b8b4e8b
This commit is contained in:
@@ -8,9 +8,9 @@ set -eu
|
||||
declare -r output_root="${OUT_DIR:-out}"
|
||||
declare -r runner="${output_root}/soong/rbcrun"
|
||||
declare -r converter="${output_root}/soong/mk2rbc"
|
||||
declare -r launcher="${output_root}/launchers/run.rbc"
|
||||
declare -r launcher="${output_root}/rbc/launcher.rbc"
|
||||
declare -r makefile="$1"
|
||||
shift
|
||||
"${converter}" -mode=write -r --outdir "${output_root}" --launcher="${launcher}" "${makefile}"
|
||||
"${converter}" -mode=write -r --outdir "${output_root}/rbc" --launcher="${launcher}" "${makefile}"
|
||||
"${runner}" RBC_OUT="make,global" RBC_DEBUG="${RBC_DEBUG:-}" $@ "${launcher}"
|
||||
|
||||
|
Reference in New Issue
Block a user