You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to allow other Bazel modules to depend on OpenTitan in order to access our toolchain, software, tools, etc. for things like downstream demos, operating systems, etc.
CC @pamaury and @nbdd0121, do you have any thoughts on the include problem? Would it be too messy to inline rust.MODULE.bazel and python.MODULE.bazel into the main MODULE.bazel?
I also do not understand this limitation of include. I think putting everything into one file would be very messy. An idea would be to generate MODULE.bazel from a template where the includes are replaced by textual inclusion, check-in that file. This would make MODULE.bazel very messy but this would not be the main file that people edit?
That could work, but I think the extra step required to generate MODULE.bazel would cancel out the simplification of being able to split out sub-files.
Description
It would be useful to allow other Bazel modules to depend on OpenTitan in order to access our toolchain, software, tools, etc. for things like downstream demos, operating systems, etc.
There are some issues preventing this:
OpenTitan is not in the central registry.
git_override
, however this can only be used in root modules.For some reason Bazel only allows
include
directives in the rootMODULE.bazel
and not those of dependencies.include
which may complicate our repo.@engdoreis has found that the
.llvm
extension from https://github.com/bazel-contrib/toolchains_llvm that we use to get a toolchain for bindgen can only be used from the root module.libc++
from somewhere still.@engdoreis also found that we cannot use
@//
in theMODULE.bazel
, it should be@@//
or just//
. That's an easy fix.The text was updated successfully, but these errors were encountered: