Re-arrange condition logic from the last change to avoid having STM32-specific conditional logic outside of the STM32 sandbox.

This commit is contained in:
Gregory Nutt 2015-02-04 07:24:19 -06:00
parent 2393a074e5
commit 011c6e0c7e
2 changed files with 9 additions and 1 deletions

View File

@ -169,6 +169,7 @@ config ARCH_CHIP_STM32L162ZD
select STM32_STM32L15XX
select STM32_ENERGYLITE
select STM32_HIGHDENSITY
select STM32_HAVE_AES
---help---
STM32L 144-pin EnergyLite, 384KB FLASH, 48KB SRAM, 12KB EEPRROM with
8x40 LCD interface
@ -1149,6 +1150,13 @@ config STM32_CCMDATARAM
default n
depends on STM32_STM32F40XX
config STM32_AES
bool "128-bit AES"
default n
depends on STM32_HAVE_AES
select CRYPTO_AES192_DISABLE
select CRYPTO_AES256_DISABLE
config STM32_CEC
bool "CEC"
default n

View File

@ -227,6 +227,6 @@ ifeq ($(CONFIG_DEBUG),y)
CHIP_CSRCS += stm32_dumpgpio.c
endif
ifeq ($(CONFIG_CRYPTO_AES),y)
ifeq ($(CONFIG_STM32_AES),y)
CHIP_CSRCS += stm32_aes.c
endif