Support a board-specific manifest overlay for hftests
When an Android boards needs to break out of the hftest test-reboot
loop, it may need more permissions than granted to the primary VM
in the generic hftest manifests. For example, the primary VM may need to
perform SMC calls not included in the SMC whitelist.
To this end, support specifying a manifest overlay in toolchain_args and
use it when generating test initrds.
Change-Id: I5e0de4c25a6ae286b4040825a9d17e471b735134
diff --git a/test/linux/BUILD.gn b/test/linux/BUILD.gn
index 0be5630..0807b2f 100644
--- a/test/linux/BUILD.gn
+++ b/test/linux/BUILD.gn
@@ -14,6 +14,7 @@
import("//build/image/image.gni")
import("//build/toolchain/platform.gni")
+import("//test/hftest/args.gni")
executable("test_binary") {
include_dirs = [
@@ -58,6 +59,7 @@
testonly = true
manifest = "manifest.dts"
+ manifest_overlay = hftest_manifest_overlay
primary_name = "vmlinuz"
primary_vm = "//third_party/linux:linux__prebuilt"
primary_initrd = ":linux_test_initrd"