From 2078438662a5343cb32eb799daf9de7693c63def Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 23 Jun 2013 11:32:31 +0200 Subject: Add multi images support This adds the make infrastructure to build multiple SoC or board specific images from a single barebox binary. The basic idea is that we no longer have a single pbl, but instead multiple pbls, one per image if necessary. Each pbl is defined by its entry function so that each pbl can do exactly what a given board needs. Additionally the pbls together with a self extracting barebox binary can be encapsulated in specific image formats. squashed in build fixes from Lucas Stach for make version >= 3.82: Split Multimage Makefile rule in explicit and implicit parts Fixes build with make version >=3.82 Frome the make 3.82 NEWS file: * WARNING: Backward-incompatibility! In previous versions of make it was acceptable to list one or more explicit targets followed by one or more pattern targets in the same rule and it worked "as expected". However, this was not documented as acceptable and if you listed any explicit targets AFTER the pattern targets, the entire rule would be mis-parsed. This release removes this ability completely: make will generate an error message if you mix explicit and pattern targets in the same rule. Signed-off-by: Sascha Hauer Signed-off-by: Lucas Stach --- pbl/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'pbl') diff --git a/pbl/Kconfig b/pbl/Kconfig index 5c7f62eefe..a37c97610a 100644 --- a/pbl/Kconfig +++ b/pbl/Kconfig @@ -1,6 +1,9 @@ config HAVE_PBL_IMAGE bool +config HAVE_PBL_MULTI_IMAGES + bool + config HAVE_IMAGE_COMPRESSION bool @@ -8,6 +11,19 @@ config PBL_IMAGE bool "Pre-Bootloader image" depends on HAVE_PBL_IMAGE +config PBL_MULTI_IMAGES + bool + select PBL_IMAGE + select PBL_RELOCATABLE + depends on HAVE_PBL_MULTI_IMAGES + default y + +config PBL_SINGLE_IMAGE + bool + depends on PBL_IMAGE + depends on !HAVE_PBL_MULTI_IMAGES + default y + config PBL_FORCE_PIGGYDATA_COPY bool help -- cgit v1.2.3