-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
hwmv2: qemu_x86: acrn: Port to HWMv2 #68078
hwmv2: qemu_x86: acrn: Port to HWMv2 #68078
Conversation
hmm, is |
dadd0a0
to
6879f75
Compare
@nashif, is it known and considered acceptable: with the HWMv2 board names Twister creates additional levels of directory structure under
|
No, was not aware of this. This is a mess :( I do not like the slash in the board names and IMO this is going to be a problem and a blocker. FYI @tejlmand |
two problems with CI twister tests currently on this PR:
|
@tejlmand - could you please provide some feedback - is this PR on track with the general v1 to v2 migration principles ? |
regarding twister, would be nice to patch twister to replace |
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.
looks very nice.
Only minor nits observed.
boards/v2/qemu/qemu_x86/board.yml
Outdated
socs: | ||
- name: ia32 | ||
revision: | ||
format: custom |
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.
with hwmv2 it is now possible to actually implement a board revision check here:
zephyr/boards/v2/qemu/qemu_x86/revision.cmake
Lines 4 to 5 in dcd3130
# We can't really do board_check_revision() here | |
# as it will apply to all qemu_x86* boards. |
revision: format: custom
will now load this file.
All other boards in this folder / yaml file will ignore the revision.cmake
file.
Note, this comment is not blocking for this PR, more an extra piece of info.
should be as simple as having twister sanitize the name before creating the folder structure, but would need to see if twister in other places than folder creation is also constructing the path based on board names. |
added as open task here: #51831 |
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.
approved, nits can be addressed in followup.
6879f75
to
ccd3729
Compare
ccd3729
to
caf7049
Compare
@@ -1,7 +1,5 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
|
|||
CONFIG_SOC_IA32=y |
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.
These files are named wrongly, the base here is qemu_x86 which will be included for all the qemu_x86/* boards (but not qemu_x86_64/* boards), but for variants, the soc name needs to be included, so above where you have identifier: qemu_x86/ia32/nommu
this can be used to work out the filename, replace / with _ to get: qemu_x86_ia32_nommu
- this is the name of the files for this variant e.g. qemu_x86_ia32_nommu.dts
, qemu_x86_ia32_nommu_defconfig
, qemu_x86_ia32_nommu.yaml
etc.
Note that for the nommu config, it will do this for deconfig: qemu_x86_defconfig
+ qemu_x86_ia32_defconfig
+ qemu_x86_ia32_nommu_defconfig
and combine them in that order
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.
thank you, file names are adjusted
caf7049
to
76e464a
Compare
0555239
to
8cf89c3
Compare
rebased, now it needs #68801 |
@nordicjm it seems |
8cf89c3
to
51c2a64
Compare
@nordicjm do you have objections to merge this PR ?
|
Needs another approval |
51c2a64
to
f4a5d15
Compare
rebased to last changes at |
f4a5d15
to
a0e0c99
Compare
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.
acrn
board needs fixing
@nordicjm , it is planned as separate PR to follow on this one.
|
Can you put the commits here? Trying to fix up CI on collab-hwm not make it worse |
Move and convert soc/x86/lakemont to HWMv2 Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Move and convert soc/x86/ia32 to HWMv2. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Move and convert qemu_x86 board configurations to HWMv2. Several board configurations have changed their identifiers to the HWMv2 scheme: - qemu_x86_nokpti --> qemu_x86/ia32/nokpti - qemu_x86_nommu --> qemu_x86/ia32/nommu - qemu_x86_nopae --> qemu_x86/ia32/nopae - qemu_x86_virt --> qemu_x86/ia32/virt - qemu_x86_xip --> qemu_x86/ia32/xip - qemu_x86_64_nokpti --> qemu_x86_64/ia32/nokpti Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Remove duplicated Kconfig default options from qemu_x86 board variants' configuration keeping only differences in regard of the appropriate board configurations. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Change `qemu_x86_tiny@768` board revision to `qemu_x86_tiny/ia32/768` board variant configuration. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Adjust qemu_x86 board configuration names to HWMv2 scheme. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
Move and convert to HWMv2 `acrn` and `acrn_ehl_crb` board configurations. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
a0e0c99
to
58baa2b
Compare
@nordicjm, done, |
577afec
into
zephyrproject-rtos:collab-hwm
Port qemu_x86 to HWMv2 as well as SoCs it depends on:
Several qemu_x86 board configurations have changed their identifiers to the HWMv2 scheme:
qemu_x86_nokpti
-->qemu_x86/ia32/nokpti
qemu_x86_nommu
-->qemu_x86/ia32/nommu
qemu_x86_nopae
-->qemu_x86/ia32/nopae
qemu_x86_virt
-->qemu_x86/ia32/virt
qemu_x86_xip
-->qemu_x86/ia32/xip
qemu_x86_64_nokpti
-->qemu_x86/ia32/nokpti
qemu_x86_tiny@768
-->qemu_x86_tiny/ia32/768
Also
x86/acrn
boards:acrn
andacrn_ehl_crb