2020-07-16 13:53:45 +02:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
config CPU_ARCH_NATIVE
|
|
|
|
bool
|
|
|
|
select HAS_ARCH_32BIT
|
2020-07-23 20:34:20 +02:00
|
|
|
select HAS_ARCH_NATIVE
|
2020-07-16 13:53:45 +02:00
|
|
|
select HAS_CPP
|
|
|
|
select HAS_CPU_NATIVE
|
2020-07-23 20:34:20 +02:00
|
|
|
select HAS_LIBSTDCPP
|
2020-07-16 13:53:45 +02:00
|
|
|
select HAS_PERIPH_CPUID
|
|
|
|
select HAS_PERIPH_EEPROM
|
2021-02-05 18:23:10 +01:00
|
|
|
select HAS_PERIPH_FLASHPAGE
|
|
|
|
select HAS_PERIPH_FLASHPAGE_PAGEWISE
|
2020-07-16 13:53:45 +02:00
|
|
|
select HAS_PERIPH_HWRNG
|
|
|
|
select HAS_PERIPH_PM
|
|
|
|
select HAS_PERIPH_PWM
|
2021-02-22 22:09:06 +01:00
|
|
|
select HAS_PERIPH_TIMER_PERIODIC
|
2020-07-16 13:53:45 +02:00
|
|
|
select HAS_SSP
|
2021-09-22 09:22:51 +02:00
|
|
|
select HAVE_MTD_NATIVE
|
2020-07-16 13:53:45 +02:00
|
|
|
|
2020-09-09 16:56:49 +02:00
|
|
|
# needed modules
|
|
|
|
select MODULE_PERIPH if TEST_KCONFIG
|
2022-03-14 09:28:05 +01:00
|
|
|
select MODULE_NATIVE_CLI_EUI_PROVIDER if MODULE_EUI_PROVIDER
|
2020-09-09 16:56:49 +02:00
|
|
|
|
2020-07-16 13:53:45 +02:00
|
|
|
config CPU_CORE_NATIVE
|
|
|
|
bool
|
|
|
|
select CPU_ARCH_NATIVE
|
|
|
|
|
|
|
|
config CPU_FAM_NATIVE
|
|
|
|
bool
|
|
|
|
select CPU_CORE_NATIVE
|
|
|
|
|
|
|
|
config CPU_MODEL_NATIVE
|
|
|
|
bool
|
|
|
|
select CPU_FAM_NATIVE
|
|
|
|
select NATIVE_OS_LINUX if "$(OS)" = "Linux"
|
|
|
|
select NATIVE_OS_FREEBSD if "$(OS)" = "FreeBSD"
|
|
|
|
|
|
|
|
## Declaration of specific features
|
|
|
|
config HAS_ARCH_NATIVE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the architecture being used is 'native'.
|
|
|
|
|
|
|
|
config HAS_CPU_NATIVE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the cpu being used is 'native'.
|
|
|
|
|
|
|
|
## OS Variants
|
|
|
|
config NATIVE_OS_LINUX
|
|
|
|
bool
|
2020-09-04 10:41:56 +02:00
|
|
|
select HAS_PERIPH_CAN
|
2019-10-04 15:48:46 +02:00
|
|
|
select HAS_PERIPH_GPIO
|
|
|
|
select HAS_PERIPH_GPIO_IRQ
|
2020-07-16 13:53:45 +02:00
|
|
|
select HAS_PERIPH_SPI
|
2021-04-02 18:42:34 +02:00
|
|
|
select HAS_RUST_TARGET if "$(OS_ARCH)" = "x86_64"
|
2020-07-16 13:53:45 +02:00
|
|
|
|
|
|
|
config NATIVE_OS_FREEBSD
|
|
|
|
bool
|
|
|
|
|
|
|
|
## CPU Common symbols
|
|
|
|
config CPU_ARCH
|
|
|
|
default "native" if CPU_ARCH_NATIVE
|
|
|
|
|
|
|
|
config CPU_CORE
|
|
|
|
default "native" if CPU_CORE_NATIVE
|
|
|
|
|
|
|
|
config CPU_FAM
|
|
|
|
default "native" if CPU_FAM_NATIVE
|
|
|
|
|
|
|
|
config CPU_MODEL
|
|
|
|
default "native" if CPU_MODEL_NATIVE
|
|
|
|
|
|
|
|
config CPU
|
|
|
|
default "native" if CPU_MODEL_NATIVE
|
2020-11-10 10:35:38 +01:00
|
|
|
|
|
|
|
menu "Native modules"
|
|
|
|
depends on CPU_ARCH_NATIVE
|
|
|
|
|
|
|
|
rsource "backtrace/Kconfig"
|
2022-03-14 09:28:05 +01:00
|
|
|
rsource "cli_eui_provider/Kconfig"
|
2020-11-10 10:35:38 +01:00
|
|
|
|
|
|
|
endmenu # Native modules
|
2020-11-10 17:12:21 +01:00
|
|
|
|
|
|
|
rsource "periph/Kconfig"
|
2021-11-17 15:50:21 +01:00
|
|
|
rsource "vfs/Kconfig"
|