From f4d0e1adf2a1ee1711d9290f918e59b86dfcacbe Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 30 Aug 2017 18:39:07 -0400 Subject: [PATCH] zephyr: turn off I2C Upstream Zephyr is making a habit of enabling subsystems on any board that supports them. That's a potential security risk if any of those allow interference with the running bootloader, and is currently exceeding mcuboot's flash allowance on some STM32 targets, e.g. 96b_carbon. Turn off I2C to restore the build for those. Signed-off-by: Marti Bolivar --- boot/zephyr/prj.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/zephyr/prj.conf b/boot/zephyr/prj.conf index 510fe905..27efab57 100644 --- a/boot/zephyr/prj.conf +++ b/boot/zephyr/prj.conf @@ -14,7 +14,8 @@ CONFIG_HEAP_MEM_POOL_SIZE=16384 CONFIG_FLASH=y CONFIG_MPU_ALLOW_FLASH_WRITE=y -### Disable Bluetooth by default -# CONFIG_BT is not set - CONFIG_MULTITHREADING=n + +### Zephyr keeps turning on major subsystems by default that we don't want. +# CONFIG_BT is not set +# CONFIG_I2C is not set