soc: native: Convert to HWMv2

Add a soc.yml and reorganize the Kconfig options

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras
2024-02-14 17:22:03 +01:00
committed by Carles Cufi
parent 24ca0febfc
commit 04cbad174e
13 changed files with 12 additions and 17 deletions

View File

@@ -1,6 +1,10 @@
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config SOC_POSIX
select ARCH_POSIX
select CPU_HAS_FPU
config NATIVE_SIMULATOR_MCU_N
int "CPU Number this image targets"
range 0 15

View File

@@ -1,9 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_POSIX
bool "Native port"
select ARCH_POSIX
select CPU_HAS_FPU
bool
help
SOC for to the POSIX arch. It emulates a CPU running at an infinitely fast
clock. That means the CPU will always run in zero time until completion after
@@ -13,3 +11,6 @@ config SOC_POSIX
sleep. Therefore do not use busy waits while waiting for something to happen
(if needed use k_busy_wait()).
Note that the interrupt handling is provided by the board.
config SOC
default "native" if SOC_POSIX

View File

@@ -0,0 +1,4 @@
family:
- name: native
socs:
- name: native

View File

@@ -1,8 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
if(SOC_FAMILY)
add_subdirectory(${SOC_FAMILY})
else()
add_subdirectory(${SOC_NAME})
endif()

View File

@@ -1,6 +0,0 @@
# Copyright (c) 2017 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC
default "inf_clock"
depends on SOC_POSIX