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:
committed by
Carles Cufi
parent
24ca0febfc
commit
04cbad174e
@@ -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
|
||||
@@ -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
|
||||
4
soc/native/inf_clock/soc.yml
Normal file
4
soc/native/inf_clock/soc.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
family:
|
||||
- name: native
|
||||
socs:
|
||||
- name: native
|
||||
@@ -1,8 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(SOC_FAMILY)
|
||||
add_subdirectory(${SOC_FAMILY})
|
||||
else()
|
||||
add_subdirectory(${SOC_NAME})
|
||||
endif()
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC
|
||||
default "inf_clock"
|
||||
depends on SOC_POSIX
|
||||
Reference in New Issue
Block a user