-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[microTVM] Add QEMU build to RVM image #8190
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
Changes from all commits
78f92f8
c2c8d74
daa572b
30a2d79
6750395
33fef63
b2ad212
560cce0
bfb3b5c
4b3b232
7e690a2
7f62f78
085ef28
c04818b
e14c83b
9420eec
30cc890
bfa7423
f6d3498
2332383
139dc8b
5999db9
96cde66
0ab5af2
05c0347
91654d6
dd64216
53a130f
38cc261
b7dd894
b8591f6
76fe98c
aa07329
721a18a
c4eb9cd
5fd7f73
ed9f0c4
153aeac
b3dcdc8
3a14c49
3a2af66
21c35df
70f3c7d
87b4721
ca9981a
510e4fa
635db46
b535e84
b43c3da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash -e | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| # Using this script we can reuse docker/install scripts to configure the reference | ||
| # virtual machine similar to CI QEMU setup. | ||
| # | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| source ~/.profile | ||
|
|
||
mehrdadh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Init Zephyr | ||
| cd ~ | ||
| # Using most recent commit that passes all the tests. | ||
| ~/ubuntu_init_zephyr_project.sh ~/zephyr v2.5-branch --commit dabf23758417fd041fec2a2a821d8f526afac29d | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe comment if there is anything special about this commit
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing special about it, this is just to show the most recent RVM build is using this commit and has been tested up to this point. I like this better because otherwise you have to download the RVM and check the commit. |
||
|
|
||
| # Build QEMU | ||
| sudo ~/ubuntu_install_qemu.sh --target-list arm-softmmu | ||
|
|
||
| # Cleanup | ||
| rm -f *.sh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/bin/bash -e | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| # Usage: base_box_test.sh <MICROTVM_PLATFORM> | ||
| # Execute microTVM Zephyr tests. | ||
| # | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| if [ "$#" -lt 1 ]; then | ||
| echo "Usage: base_box_test.sh <MICROTVM_PLATFORM>" | ||
| exit -1 | ||
| fi | ||
|
|
||
| microtvm_platform=$1 | ||
|
|
||
| pytest tests/micro/zephyr/test_zephyr.py --microtvm-platforms=${microtvm_platform} | ||
|
|
||
| if [ $microtvm_platform == "stm32f746xx" ]; then | ||
| echo "NOTE: skipped test_zephyr_aot.py on $microtvm_platform -- known failure" | ||
| else | ||
| pytest tests/micro/zephyr/test_zephyr_aot.py --microtvm-platforms=${microtvm_platform} | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,14 @@ | ||
| { | ||
| "stm32f746xx": { | ||
| "vid_hex": "0483", | ||
| "pid_hex": "374b", | ||
| "test_cmd": ["pytest", "tests/micro/zephyr/test_zephyr.py", "--microtvm-platforms=stm32f746xx"] | ||
| "pid_hex": "374b" | ||
| }, | ||
| "nrf5340dk": { | ||
| "vid_hex": "1366", | ||
| "pid_hex": "1055", | ||
| "test_cmd": ["pytest", "tests/micro/zephyr/test_zephyr.py", "--microtvm-platforms=nrf5340dk"] | ||
| "pid_hex": "1055" | ||
| }, | ||
| "mps2_an521": { | ||
| "vid_hex": "", | ||
mehrdadh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "pid_hex": "" | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.