From f308ec7c397581feea62b1666138c6fa1f634622 Mon Sep 17 00:00:00 2001 From: Jian-Min Liu Date: Tue, 25 Jun 2024 17:22:38 +0000 Subject: [PATCH] kleaf: Add p4root symlink into conftest group The execution of conftest currently relies on the GNU toolchain located in the P4ROOT path. However, since kleaf is a hermetic build, the P4ROOT environment variable is cleaned up during the kleaf setup. To address this, we create a symlink to connect the original P4ROOT path to the kleaf build path. Bug 4344670 Change-Id: I7877fd5d5543f73001dd1a017dfd0cc552802658 Signed-off-by: Jian-Min Liu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3161994 Reviewed-by: Laxman Dewangan Reviewed-by: svcacv GVS: buildbot_gerritrpt --- scripts/conftest/BUILD.bazel | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/conftest/BUILD.bazel b/scripts/conftest/BUILD.bazel index bd9860d5..280dd991 100644 --- a/scripts/conftest/BUILD.bazel +++ b/scripts/conftest/BUILD.bazel @@ -10,5 +10,7 @@ filegroup( name = "conftest_headers", srcs = glob(["**"], allow_empty = False, - ), + ) + [ + "//nvidia-build/kleaf:p4root_symlink", + ], )