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

[microTVM][Zephyr][projectAPI] Minimize project build commands #12209

Merged
merged 6 commits into from
Jul 29, 2022

Conversation

mehrdadh
Copy link
Member

@mehrdadh mehrdadh commented Jul 27, 2022

This PR changes Zephyr template project to populate all configs in Cmake file and minimize the command to build the project.

Before this PR we had to do this:

cmake -DARG1 -DARG2 ..
cd build
make -j2

After this PR:

cmake ..
cd build
make -j2

This PR also removes some of the redundancies in passing project options like zephyr_board.

cc @alanmacd @gromero @guberti

@github-actions github-actions bot requested a review from gromero July 27, 2022 22:23

if not zephyr_board:
raise RuntimeError(
f"Zephyr Board is not found in the {API_SERVER_DIR / CMAKELIST_FILENAME}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this message be changed to "No Zephyr board defined in the {API_SERVER_DIR / CMAKELIST_FILENAME}" ? Or "set in the ..." ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@gromero
Copy link
Contributor

gromero commented Jul 28, 2022

Otherwise, LGTM 👍

Copy link
Member Author

@mehrdadh mehrdadh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gromero thanks for the review! PTAL


if not zephyr_board:
raise RuntimeError(
f"Zephyr Board is not found in the {API_SERVER_DIR / CMAKELIST_FILENAME}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@gromero gromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mehrdadh Thanks for addressing the comments. LGTM!

I'll just let the CI finish and give some time if somebody else wants to review it too.

Copy link
Contributor

@gromero gromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are new changes since my last approval, I'm doing another review cycle. PTAL.

[pathlib.Path("./tvmc_relative_path_test"), pathlib.Path(tempfile.mkdtemp())],
[
pathlib.Path("./tvmc_relative_path_test"),
# pathlib.Path(tempfile.mkdtemp())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that line really to be a comment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching, fixed it

Copy link
Contributor

@gromero gromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll just let the CI finish and give some time if somebody else wants to review it too.

@mehrdadh mehrdadh merged commit d183a4f into apache:main Jul 29, 2022
@mehrdadh mehrdadh deleted the micro/make_build_simple branch July 29, 2022 14:21
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…e#12209)

* move cmake args to generate project

* remove zephyr board from flash and run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants