-
Notifications
You must be signed in to change notification settings - Fork 7k
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: Native targets covert to HW model v2 #69034
Changes from 1 commit
14c8d1f
8e62996
8a05889
8109792
ec70926
aecb641
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,25 @@ config BOARD_NATIVE_POSIX | |
imply NATIVE_POSIX_TIMER | ||
select POSIX_ARCH_CONSOLE | ||
select NATIVE_APPLICATION | ||
help | ||
Native POSIX - 32 bit version | ||
Will produce a console Linux process which can be executed natively | ||
as a 32-bit executable. | ||
It provides some minimal needed models: | ||
An interrupt controller, timer (system tick), and redirects kernel prints to | ||
stdout. | ||
|
||
config BOARD_NATIVE_POSIX_64 | ||
bool | ||
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. This represents an issue @tejlmand |
||
select BOARD_NATIVE_POSIX | ||
select 64BIT | ||
help | ||
Native POSIX - 64 bit version | ||
Will produce a console Linux process which can be executed natively | ||
as a 64-bit executable. | ||
It provides some minimal needed models: | ||
An interrupt controller, timer (system tick), and redirects kernel prints to | ||
stdout. | ||
|
||
if BOARD_NATIVE_POSIX | ||
|
||
|
@@ -22,6 +41,6 @@ config NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME | |
case the zephyr kernel and application cannot tell the difference unless they | ||
interact with some other driver/device which runs at real time. | ||
|
||
source "boards/boards_legacy/$(ARCH)/common/sdl/Kconfig" | ||
source "boards/native/common/sdl/Kconfig" | ||
|
||
endif # BOARD_NATIVE_POSIX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NATIVE_POSIX | ||
select SOC_POSIX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NATIVE_POSIX_64 | ||
select SOC_POSIX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boards: | ||
- name: native_posix | ||
vendor: Zephyr | ||
socs: | ||
- name: native | ||
- name: native_posix_64 | ||
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. should it be the board or the soc that is considered 64bit ? Meaning, should we instead have:
Considering the SoC 64bit then that would also remove the need for:
as the 64bit is then selected by the soc and there is no need to @nordicjm thoughts ? 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.
I intended to do that as a follow up. In this PR I hoped to bring everything back to working order in the hwmv2 format while keeping the PR reasonably sized. The next steps were to define this and the nrf5340 as having different socs , change all tests and BT test infra accordingly, and then remove this "backwards compatible" board definitions. @nordicjm 's pointed issue would still apply for the nrf*bsim boards, there the nrf52 will remain separate from the nrf53 anyhow. 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. true, and it's a side-effect of allowing multiple boards being defined in board.yml. Something which would needs to be addressed. |
||
vendor: Zephyr | ||
socs: | ||
- name: native |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_SOC_POSIX=y | ||
CONFIG_BOARD_NATIVE_POSIX_64BIT=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_SOC_POSIX=y | ||
CONFIG_BOARD_NATIVE_POSIX_32BIT=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NATIVE_SIM | ||
select SOC_POSIX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NATIVE_SIM_64 | ||
select SOC_POSIX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
boards: | ||
- name: native_sim | ||
vendor: Zephyr | ||
socs: | ||
- name: native | ||
- name: native_sim_64 | ||
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. I guess similar comment regarding the board or soc being 64bit applies here. |
||
vendor: Zephyr | ||
socs: | ||
- name: native |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_SOC_POSIX=y | ||
CONFIG_BOARD_NATIVE_SIM_64BIT=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_SOC_POSIX=y | ||
CONFIG_BOARD_NATIVE_SIM_32BIT=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000 |
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.
why is this using a path from zephyr base, and not relative to current folder ?
Such as:
seems a bit safer.
However, current proposal is also ok, as I don't expect we'll be moving boards around so much more.