arm: atmel: define soc family in correct Kconfig

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-09-30 07:57:59 -04:00 committed by Anas Nashif
parent 7c60eadd58
commit be9a0b35ee
2 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,19 @@
#
# Copyright (c) 2016 Piotr Mienkowski
# SPDX-License-Identifier: Apache-2.0
#
config SOC_FAMILY_SAM
bool
# omit prompt to signify a "hidden" option
default n
if SOC_FAMILY_SAM
config SOC_FAMILY
string
default atmel_sam
endif #SOC_FAMILY_SAM
# Select SoC Part No. and configuration options
source "arch/arm/soc/atmel_sam/*/Kconfig.soc"

View File

@ -4,20 +4,10 @@
# SPDX-License-Identifier: Apache-2.0
#
config SOC_FAMILY_SAM
bool
# omit prompt to signify a "hidden" option
default n
if SOC_FAMILY_SAM
config SOC_FAMILY
string
default atmel_sam
config WATCHDOG
def_bool y
endif #SOC_FAMILY_SAM
endif
source "arch/arm/soc/atmel_sam/*/Kconfig.defconfig.series"