Skip to content

Commit

Permalink
dev_build: add option to explicitly pass config
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Sep 25, 2023
1 parent 056a719 commit 5a0db3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dev_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
CWD = Path.cwd()
BUILD_DIR = CWD / "tmp_build"

microkit_config = "debug"


def find_releases():
releases = []
Expand Down Expand Up @@ -68,6 +66,11 @@ def main():
help="Example to build",
required=True
)
parser.add_argument(
"--config",
default="debug",
help="Config option to be passed to the tool"
)
args = parser.parse_args()

# TODO: Support choosing a release by specifying on command line
Expand All @@ -83,7 +86,7 @@ def main():
make_env = environ.copy()
make_env["BUILD_DIR"] = str(BUILD_DIR.absolute())
make_env["MICROKIT_BOARD"] = args.board
make_env["MICROKIT_CONFIG"] = microkit_config
make_env["MICROKIT_CONFIG"] = args.config
make_env["MICROKIT_SDK"] = str(release)

# Choose the makefile based on the `--example-from-sdk` command line flag
Expand Down

0 comments on commit 5a0db3f

Please sign in to comment.