mgmt: correct MPU_ALLOW_FLASH_WRITE selection
Select MPU_ALLOW_FLASH_WRITE when ARM_MPU is enabled, not CPU_HAS_MPU. MPU_ALLOW_FLASH_WRITE is only defined as a symbol when ARM_MPU is enabled. ARM_MPU is only defined when CPU_HAS_MPU is defined, so the CPU_HAS_MPU dependency can be dropped. This fixes a build error when MCUMGR_CMD_IMG_MGMT is enabled but ARM_MPU is not. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
ab3e778f47
commit
b90c62ac7b
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ endif
|
|||
menuconfig MCUMGR_CMD_IMG_MGMT
|
||||
bool "Enable mcumgr handlers for image management"
|
||||
select FLASH
|
||||
select MPU_ALLOW_FLASH_WRITE if CPU_HAS_MPU
|
||||
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
|
||||
select IMG_MANAGER
|
||||
help
|
||||
Enables mcumgr handlers for image management
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue