Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] cmake: multi image build support with IMAGE prefix
Note: This was originally submitted upstream in zephyrproject-rtos#13672 and was rejected. NCS is carrying it as a noup for now. Another, more upstream-friendly approach will be needed. We are seeing the need to boot Zephyr applications in multiple stages, a real-world use-case of even a 3-stage bootloader has been identified and tested. Each bootloader needs to be individually upgrade-able and have it's own configurations of Zephyr libraries. To achieve this each bootloader is organized as it's own executable. The problem is that the build system can only build one executable. This creates a usability issue as the user must invoke a large set of arcane commands to build, sign, and flash each bootloader. To resolve this we re-organize the build system such that it can build multiple executables. To work within CMake restrictions that logical target names must be globally unique (among other naming restrictions), we add an IMAGE variable which is used to name the current Zephyr application being built. Signed-off-by: Sebastian Bøe <[email protected]> Signed-off-by: Håkon Øye Amundsen <[email protected]> Signed-off-by: Øyvind Rønningstad <[email protected]> Signed-off-by: Robert Lubos <[email protected]> Signed-off-by: Ruth Fuchss <[email protected]> Signed-off-by: Marti Bolivar <[email protected]> (cherry picked from commit b4d8e6d) (cherry picked from commit 611e46e) (cherry picked from commit 0b31f6a) (cherry picked from commit 1b48170)
- Loading branch information