zephyr: direct inclusion of the hooks file
This patch removes CONFIG_BOOT_IMAGE_ACCESS_HOOKS_FILE option
which was used to point to hooks implementation file.
It is better that the project customization is up to add required
files instead. This gives more flexibility in provisioning these
sources (there may be multiple files).
This also simplifies Kconfig options.
In order to keep possibility for build-test the Hooks feature
hooks_sample.c will be included into the build if commandline
will specify -DTEST_BOOT_IMAGE_ACCESS_HOOKS=Y option.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/boot/zephyr/sample.yaml b/boot/zephyr/sample.yaml
index 5d51273..393c279 100644
--- a/boot/zephyr/sample.yaml
+++ b/boot/zephyr/sample.yaml
@@ -44,6 +44,7 @@
sample.bootloader.mcuboot.hooks_multi:
extra_args: DTC_OVERLAY_FILE=./boards/nrf52840dk_ram_multi.overlay
OVERLAY_CONFIG=./boards/nrf52840dk_hooks_sample_overlay.conf
+ TEST_BOOT_IMAGE_ACCESS_HOOKS=Y
platform_allow: nrf52840dk_nrf52840
integration_platforms:
- nrf52840dk_nrf52840