build/utils: modify detect_root to use list instead of files
This is required to be able to use this with runfiles.
Change-Id: I73021136d622c2b70303a57b05ff768ebc316479
Reviewed-on: https://review.monogon.dev/c/monogon/+/4100
Tested-by: Jenkins CI
Reviewed-by: Jan Schär <jan@monogon.tech>
diff --git a/third_party/linux/def.bzl b/third_party/linux/def.bzl
index a1d4c3d..dd2a70f 100644
--- a/third_party/linux/def.bzl
+++ b/third_party/linux/def.bzl
@@ -58,7 +58,7 @@
image_format = ctx.attr.image_format
# Root of the given Linux sources.
- root = detect_root(ctx.attr.kernel_src)
+ root = detect_root(ctx.attr.kernel_src.files.to_list())
# Figure out target CC toolchain
cc_toolchain = find_cpp_toolchain(ctx)