zephyr/misc
David Brown fe7aa3f4fa misc: Allow flash image size to be constrained
The CONFIG_FLASH_LOAD_OFFSET allows the zephyr image to be placed at
an offset from the start of flash.  This is useful for situations,
such as with a bootloader, to allow the image to not occupy the very
beginning of flash.

Complement this by adding a CONFIG_FLASH_LOAD_SIZE config, that can
constrain the size of the flash image.  With the default of zero, the
behavior is as before, with the image allowed to occupy the rest of
the flash.  It can also be defined to a non-zero value which will
constrain the image to occupy that many bytes of flash.

Although this is defined generally, it is currently only supported on
cortex-m targets.

Change-Id: I6e4a0e79c8459f931cd4757c932d20dac740f5f6
Signed-off-by: David Brown <david.brown@linaro.org>
2017-04-14 01:35:59 +00:00
..
generated build: remove old kernel support 2016-11-07 11:34:18 -08:00
Kconfig misc: Allow flash image size to be constrained 2017-04-14 01:35:59 +00:00
Makefile debug: move debug features from misc to subsys/debug 2016-12-19 19:58:40 +00:00
cpp_ctors.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_dtors.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_init_array.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_virtual.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_vtable.cpp license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
printk.c misc/printk: Add a function to get the current hook function. 2017-01-27 12:35:52 +02:00
reboot.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ring_buffer.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00