Browse Source

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>
pull/69687/head
Alberto Escolar Piedras 1 year ago committed by Carles Cufi
parent
commit
04cbad174e
  1. 0
      soc/native/inf_clock/CMakeLists.txt
  2. 4
      soc/native/inf_clock/Kconfig
  3. 7
      soc/native/inf_clock/Kconfig.soc
  4. 0
      soc/native/inf_clock/native_tasks.c
  5. 0
      soc/native/inf_clock/posix_board_if.h
  6. 0
      soc/native/inf_clock/posix_native_task.h
  7. 0
      soc/native/inf_clock/posix_soc.h
  8. 0
      soc/native/inf_clock/soc.c
  9. 0
      soc/native/inf_clock/soc.h
  10. 4
      soc/native/inf_clock/soc.yml
  11. 0
      soc/native/inf_clock/soc_irq.h
  12. 8
      soc/soc_legacy/posix/CMakeLists.txt
  13. 6
      soc/soc_legacy/posix/inf_clock/Kconfig.defconfig

0
soc/soc_legacy/posix/inf_clock/CMakeLists.txt → soc/native/inf_clock/CMakeLists.txt

4
soc/soc_legacy/posix/inf_clock/Kconfig → soc/native/inf_clock/Kconfig

@ -1,6 +1,10 @@ @@ -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

7
soc/soc_legacy/posix/inf_clock/Kconfig.soc → soc/native/inf_clock/Kconfig.soc

@ -1,9 +1,7 @@ @@ -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 @@ -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

0
soc/soc_legacy/posix/inf_clock/native_tasks.c → soc/native/inf_clock/native_tasks.c

0
soc/soc_legacy/posix/inf_clock/posix_board_if.h → soc/native/inf_clock/posix_board_if.h

0
soc/soc_legacy/posix/inf_clock/posix_native_task.h → soc/native/inf_clock/posix_native_task.h

0
soc/soc_legacy/posix/inf_clock/posix_soc.h → soc/native/inf_clock/posix_soc.h

0
soc/soc_legacy/posix/inf_clock/soc.c → soc/native/inf_clock/soc.c

0
soc/soc_legacy/posix/inf_clock/soc.h → soc/native/inf_clock/soc.h

4
soc/native/inf_clock/soc.yml

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

0
soc/soc_legacy/posix/inf_clock/soc_irq.h → soc/native/inf_clock/soc_irq.h

8
soc/soc_legacy/posix/CMakeLists.txt

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

6
soc/soc_legacy/posix/inf_clock/Kconfig.defconfig

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