Have buildbot-build.sh create dummy hidden API lists
Buildbots are broken because the build now depends on the framework
generating hidden API lists, but these changes are not in the buildbot
manifest. Change the script to create dummy API lists. These are empty
but we do not want these rules to be enforced in the buildbot anyway.
Test: art/tools/buildbot-build.sh --target
Bug: 64382372
Change-Id: Ibb9f93bae44e3e342f6f3669a3856e19bf68ca13
diff --git a/tools/buildbot-build.sh b/tools/buildbot-build.sh
index fd9ad0b..8956e98 100755
--- a/tools/buildbot-build.sh
+++ b/tools/buildbot-build.sh
@@ -74,7 +74,14 @@
make_command+=" dx-tests"
mode_suffix="-host"
elif [[ $mode == "target" ]]; then
- make_command="make $j_arg $extra_args $showcommands build-art-target-tests $common_targets"
+ # Create dummy hidden API lists which are normally generated by the framework
+ # but which we do not have in the buildbot manifest. These are empty because
+ # we do not want to enforce these rules in the buildbots anyway.
+ hiddenapi_out_dir=${out_dir}/target/common/obj/PACKAGING
+ make_command="mkdir -p ${hiddenapi_out_dir} && "
+ make_command+="touch ${hiddenapi_out_dir}/hiddenapi-{blacklist,dark-greylist,light-greylist}.txt && "
+
+ make_command+="make $j_arg $extra_args $showcommands build-art-target-tests $common_targets"
make_command+=" libjavacrypto-target libnetd_client-target linker toybox toolbox sh"
make_command+=" ${out_dir}/host/linux-x86/bin/adb libstdc++ "
make_command+=" ${out_dir}/target/product/${TARGET_PRODUCT}/system/etc/public.libraries.txt"
@@ -89,4 +96,4 @@
echo "Executing $make_command"
-$make_command
+bash -c "$make_command"