summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-03 17:03:01 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-03 18:09:15 +0800
commit5c3db111daa298b0fdab421e1fbd87427e9a108c (patch)
tree251925b6bf3e2c8a66e1ccfa887d26d4d2e7675a /common/Kconfig
parent53391b5a8dda0b8d33b5433db21e43c82cb5246d (diff)
downloadbarebox-5c3db111daa298b0fdab421e1fbd87427e9a108c.tar.gz
barebox-5c3db111daa298b0fdab421e1fbd87427e9a108c.tar.xz
Add compressed image support
This allows for creating a lzo compressed binary unsing the pbl. Only copy the piggydata if needed. Add CONFIG_PBL_FORCE_PIGGYDATA_COPY option In some case we need to copy the PIGGYDATA as the link address as example we run from SRAM and shutdown the SDRAM/DDR for reconfiguration but most of the time we just need to copy the executable code. based on Sascha Hauer Add compressed image support Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig12
1 files changed, 11 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 7b5a3077ea..828fc050c4 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -111,11 +111,20 @@ config PBL_IMAGE
bool "Pre-Bootloader image"
depends on HAVE_PBL_IMAGE
+config PBL_FORCE_PIGGYDATA_COPY
+ bool
+ help
+ In some case we need to copy the PIGGYDATA as the link address
+ as example we run from SRAM and shutdown the SDRAM/DDR for
+ reconfiguration but most of the time we just need to copy the
+ executable code.
+
if PBL_IMAGE
config IMAGE_COMPRESSION
- bool "Compressed image"
+ bool
depends on HAVE_IMAGE_COMPRESSION
+ default y
if IMAGE_COMPRESSION
@@ -511,6 +520,7 @@ config DEFAULT_ENVIRONMENT
config DEFAULT_ENVIRONMENT_COMPRESSED
bool
depends on DEFAULT_ENVIRONMENT
+ depends on !IMAGE_COMPRESSION_LZO
default y if ZLIB
default y if BZLIB
default y if LZO_DECOMPRESS