Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev_build: add option to explicitly pass config #63

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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