blob: ee13bf985e166bba4da483b7ec671fb60c0785c7 [file] [log] [blame]
Chris Frantz340e6232021-08-25 15:56:28 -07001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
5package(default_visibility = ["//visibility:public"])
6
7exports_files(glob(["**"]))
Drew Macrae399af402021-11-01 18:15:09 +00008
9genrule(
10 name = "ot_version_file",
11 outs = ["ot_version.txt"],
12 cmd = """awk '/BUILD_GIT_VERSION/ { print $$2 }' bazel-out/volatile-status.txt > $@""",
13 stamp = 1, # this provides volatile-status.txt
14)