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
boards: add a dedicated Qemu variant based on MPS2_AN385 #11284
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11284 +/- ##
=========================================
- Coverage 48.22% 48.13% -0.1%
=========================================
Files 279 279
Lines 43285 43272 -13
Branches 10357 10356 -1
=========================================
- Hits 20875 20827 -48
- Misses 18270 18302 +32
- Partials 4140 4143 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems better. FWIW: you could eliminate some of the pasted hardware stuff, as AFAIK there's no qemu emulation support for stuff like gpio and i2c (but... maybe I'm wrong, no idea).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than duplicating this, why not just add a second defconfig, and Kconfig to the MPS2_AN385 for qemu.
79f3d5d
to
d585bfe
Compare
fixed now |
It is not going to be a duplication, all files have been changed for the qemu target now, this is going to be similar to qemu_riscv32 |
@galak please revisit |
@galak ping |
|
||
#include <arm/armv7-m.dtsi> | ||
|
||
/ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, why we duplicate all this, instead of #include'ing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
including it from where?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From real mps_an385 DTS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not an exact copy, we have removed anything that does not apply to running in qemu.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, seems like we're just eager to complicate our own life here. If the only (?) problem with mps2_an385 vs qemu variant of it is the need to disable tickless mode, why do more work than that?
fc19ffd
to
3bffae9
Compare
Found the following issues, please fix and resubmit: License/Copyright issues
|
We need to be able to change the board definition for usage in Qemu and apply workarounds based on the board, so it does not make sense to change a HW model for Qemu usage, thus creating this alias. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This is the result of issues we had in #10556 related to running in Qemu.
Edit by @pfalcon: specific pointer: #10556 (comment)